When X and GNOME are working normally, I can just hit Ctrl-Alt-F2 to leave GNOME and use the terminal on the second virtual console.  To switch back to GNOME, I can just hit Alt-F1.Today, X or GNOME stopped working normally for me and I was unable to get to a virtual console.  I was still able to move my mouse cursor around but I wasn't able to click anything.  As far as I could tell, my keyboard was unresponsive, but maybe the right keyboard shortcut would have helped.  I ended up pressing the power button on the computer to gracefully shut it down, but what could I have done to avoid this?I'm using CentOS 6.0 and GNOME 2.28.
How can I get to a terminal or virtual console when Ctrl-Alt-F2 fails?
gnome;xorg;centos
Connecting over the network (e.g. with SSH) is by far the method that has the best chance of working and the least chance of causing damage that might otherwise be avoidable (such as killing your X session).If the mouse is working but not the keyboard, it means that X is not completely hosed. Try plugging the keyboard out and back in: this can help if the problem is in the keyboard driver. (It rarely is.) If you have a root terminal or can get one without the help of the keyboard, try typing chvt 2 there (where typing means copy-pasting the letters).Another thing you can try is the magic SysRq key: press Alt+SysRq+R to switch the keyboard away from raw mode, and try Ctrl+Alt+F1 again: this time the key combination should be handled by the kernel and not by X.