Here is something who are looking to restore your current session without loosing your unsaved work.
Open tty1 by using the Ctrl+Alt+F1 combination.
kaushik:~$ pstree -p|grep lightdm
|-lightdm(1254)-+-Xorg(1301)-+-{Xorg}(1507)
| |-lightdm(2062)-+-gnome-session(2253)-+-compiz(27013)-+-{compiz}(27014)
| | `-{lightdm}(2209)
| |-{lightdm}(1298)
| `-{lightdm}(1302)
kaushik:~$
You'll see a gnome-session running as child to lightdm. Note down the gnome-session's PID.
My common sense says that killing gnome-session should end my session abruptly but it didn't actually do so. On previous occasions I killed lightdm and messed up my session. So I just gave a try killing gnome-session and it worked (that was the best I could think of). I tried killing again to confirm. What happens is tty7 goes blank for fraction of second and then everything restores peacefully. However, please do it at your own risk, don't hold me responsible; I'm not an expert :)
pkill -KILL -P ITS_PID
(Replace ITS_PID with what you just noted down. 2253 in my case)
Once you're done, come back to tty7. Use Ctrl+Alt+F7 combination.
I run Ubuntu 12.04 64bit and Compiz by the way. Would be nice to have some expert opinion on this, I'm lazy to do some research on this.
chrome 2> ~/messages1 1> ~/messages2
, reproduce the bug and provide the contents ofmessages1
andmessages2
. Also providetail /var/log/syslog
andtail /var/log/Xorg.0.log
. – edwin Jul 13 '13 at 03:15