Magic Key
If your computer freeze or seems to stop responding, you can try to use magic keys to restart properly. For that you have to go to a tty (ctrl-alt-F1) then you can type the following shortcuts :
- Alt-Sys-R : put the keyboard into raw mode
- Alt-Sys-S : instantly sync all hards disks
- Alt-Sys-E : send the terminate signal to all process
- Alt-Sys-I : stop all process (kill signal)
- Alt-Sys-U : put filesystems into 'read only' mode
- Alt-Sys-B : Reboot
- Alt-Sys-O : Switch off
If you compile your own kernel, you should activate the "Magic SysRq Key" option.
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!
Comments (18)
Are there no "magic keys for an emergancy reboot"?
That sort of magic....? ;-)
As my english is not so good, I just wrote the french version and hoped that someone would have translated it…
Note the advice to kill the X-server (CTRL-ALT-BACKSPACE) after putting keyboard into 'raw' mode.
So far from being DUMB, this emergency features are a possible solution for the lockup problem that you point out. Sure there is cases were all is dead, motherboard fried and proc melted where no Magic Keys will save you but it gives us in some cases another chance to save a system. DUMB you say ? Maybe you should review your definition of dumb, or think twice before flaming out ?
Personally, I find that USB is the cause of most lockups, so I have a PS/2 mouse connected, and a shell script on the desktop to shutdown.
What would be really nice is a SysRQ key which does (in one step)
*Take me to the console. Log me in as root (or give me a password prompt). Take keyboard focus (restarting the usb system if necessary). Stop all other tasks. (eg so that a 100%CPU process, or a fork-bomb can be stopped)
At any rate, I'd really like to see "kill -STOP" in addition to "kill -15" and "kill -9".
As for freda2999:
Raw mode on the keyboard is to prevent the "locked" process from stealing your keyboard commands. Example: to be able to switch to VT1 and login, then stopping the "hung" process or doing a "clean" reboot.
Syncing the HD is to write out any cached data to disk ( so it isn't lost! ).
There are many more reasons for being able to access the kernel directly. Most of which are beyond my knowledge.
Let it suffice to say, you'll be glad you could do these things when you have that 100,000 word novel in a word processor that you just got locked out of.