When I have a Linux desktop (Ubuntu/gnome in this case but I'm guessing this is a more general problem) that freezes/hangs in a way that I still have the ability to switch to another tty with ctrl+alt+F1..12, how can I regain access to the [GUI] applications still running in that unresponsive X session on tty7?

I've encountered variations of this problem over my brief but ongoing experience with Linux, the most recent and frustrating was after trying to load a "Guest session" (clicking through the user switcher at the top right panel). The session failed to load leaving nothing but a mouse cursor on a white background. Notification sounds continued to play from my original login, including incoming IM messages. I was able to start a new session from tty2 with startx -- :2.

Is there a way to do one or more of the following (in order of preference): A) Pull those running applications over to the new X screen? B) Send some sort of signal to unfreeze the original X screen (something like ctrl+alt+backspace but that would actually preserve the running programs)? C) Send a signal that would tell all running programs to save data before exiting?

When faced with a similar situation in Windows I can usually recover with ctrl+alt+delete, Task Manager and/or Log Out (even the most stubbornly locked programs will sometimes snap out of it and offer a "Save before exit?" prompt when Windows signals an impending log out). With Linux, I'm a bit lost as where to start. Please note I'm not really asking for a diagnosis of this particular white screen hang; maybe the best question to sum it all up is:

"What is your recovery checklist when a gnome desktop session goes bad?"

link|improve this question

50% accept rate
feedback

1 Answer

I usually fire up htop or top to find out what process is causing the mess and then I kill that process. In 99% of cases my gnome session then becomse usable again. Kind of like the Windows task manager solution.

link|improve this answer
What's Plan B when nothing appears to be hanging in top? The only thing I could see to terminate was Xorg and that wipes out the running programs along with it. – rymo Aug 12 '09 at 6:30
I usualll have some kind of idea. It's not like this is happening radmonly and on a daily basis. "Which application have I been using that could have caused the trouble?" is the question that you need to answer (and which usually can be answered). – innaM Aug 12 '09 at 6:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.