On Thu, Dec 18, 2008 at 5:38 PM, Manish Katiyar <[email protected]> wrote:

> Hi all,
>
> Sorry for spamming the list because this is really not a kernel
> question, but I am also not sure if this can be done in userspace
> entirely. While working on my laptop today somehow I screwed my Xorg
> settings and thus my whole X session. I had to reinitialize/restart X,
> but that also meant I had to close all my important open windows :-(


Hi,
   Have come across this  problem :-s
What kind of applications were open ? Generally, I used to have an editor
session(emacs) running in a `konsole` to do the coding
and, an instance of firefox for browsing. Media player ran from inside emacs
or konsole.

.........
>
> I felt it would be nice if I could have stored all the current running
> processes in some file (just like hibernate) and just restarted X with
> that file (possibly as an argument). That would also mean I can save
> different sessions :-) and then hibernate and then come back with
> whatever session I wish.
>
> Is anyone aware of any tool/project that tries to do this ??


Sandeep already has mentioned process checkpointing tools. The thing, i am
not sure about is - do they work for all cases, especially open
sockets(tcp/udp) and audio devices ? TCP sockets can be migrated using
connection passing, but i do not know whether it has been merged into the
kernel ?
     The way i got around this problem was to use a terminal multiplexer. I
used `screen`. Not only does it keep your session safe when X crashes, it
offers an added advantage that, you can easily reattach to your existing
session(over a simple ssh/telnet connection) from any other machine(home?)
if you need to (say, while you are taking a conf call).
     About Firefox, a session saving extension like tabs mix plus takes good
care of saving the session.
Another curious question about process checkpointing is - do cryopid etc let
the process continue to run after checkpointing ? or are they suspended when
checkpointed ?

My 2 cents...
Kindly CMIIW and, ignore if you already knew it :)

Best regards,
Pranav
http://pranavsbrain.peshwe.com

Reply via email to