I was playing Gnu FreeDink and when I exited out it just sort of crashed and stayed fullscreen with the music playing. I couldn't for the life of me get back to the desktop, alt-tab did nothing, same with ctrl-alt-delete, esc, etc.
I've had this happen with fullscreen games, and I usually wind up have to hard-reset to get back. Pretty frustrating.
I googled around and found xkill
, but that wont launch on a fullscreen app. I tried ctrl-alt-F2 which puts me to terminal, I can run top but it wouldn't kill freedink and it wouldn't let me start the x server again. I really didn't know what I was doing.
At least in windows 7 you can usually get to the task manager and kill the program, but I haven't found anything like Ubuntu to get me back.
Anything I can do?
Best Answer
If Control+Alt+F1 works you can use it to drop to a hard terminal. From there you can:
Try killing the application. I use
htop
to find and nuke something (sudo apt-get install htop
) but you can also just use commands likekill
andpkill
if you're happy with them. I preferhtop
because it lets me see what is schizing out.It's then Control+Alt+F7 (sometimes F8 or F9) to return to your X session.
If that doesn't work (X is still locked up) or the X server is somehow damaged (tons of artefacts, wrong resolution, etc), and I don't have any unsaved work, I'd try restarting
gdm
(the beast that launches X and manages logins etc).That should automatically pull you back into X but all your applications die with X so that's why I say this is really for when you've got nothing open that you should have saved.
If you can't get to a TTY, or SSH in from another system (if you're running a SSH server and have another computer or phone with SSH client) and can't do the above, you might have to try the magic restart keyboard combination. It's somewhat safer than pulling the plug.
Hold Alt + PrintScr/SysRq and then slowly type: r e i s u b
A handy mnemonic for remembering this is: Reboot Even If System Utterly Broken
If that doesn't work, go postal on the power button.