Take the 2-minute tour ×  While running alpha/beta Ubuntu, I
have often had problems where X freezes and I would have to
restart X.  During this freeze, I'm able to switch to a tty and
shutdown the programs. I either use top and kill the running
apps[evolution/firefox/etc,..], or use killall commands.  But
when I use those kill commands, the application shuts-down
abruptly and when opening in the next session it 'recovers'. ex:
Firefox needs to restore all the web-pages I was viewing, so if
I had 20-30 tabs open it will literally freeze for a few mins.
evolution would not have deleted messages in trash, etc..  Is
there a command I can use to shutdown applications cleanly from
a tty? [apps that i use regularly are
firefox,evolution,transmission,xchat]  share|improve this
question I don't know much about X internals, but I guess you
could somehow deliver the close window event to the proper
window handler, however it would not work on your case because X
itself which haandles the messages is hang. To make thing