View previous topic :: View next topic |
Author |
Message |
Cadynum Tux's lil' helper
Joined: 15 Apr 2007 Posts: 122
|
Posted: Mon Aug 20, 2007 1:26 am Post subject: Bind key combo to shutdown |
|
|
Hi, is it possible to bind a key combo to shutdown the system (e.g. Ctrl+Alt+F10)?
Sometimes the nvidia driver decides to stop working and no X/tty will be displayed.
The system nearly never crashes, but I have a hard time to execute the shutdown command without a display. _________________ How many Microsoft Programmers does it take to screw in a lightbulb? A: It cannot be done. You will need to upgrade your house. |
|
Back to top |
|
|
jstead1 Guru
Joined: 01 Aug 2003 Posts: 427 Location: Oswego, NY where the snow is deep
|
Posted: Mon Aug 20, 2007 2:11 am Post subject: |
|
|
If you can't ctrl+alt+backspace to kill X, I doubt any other key combinations will work...
except these, because they are magic. (you will need the CONFIG_MAGIC_SYSRQ=y in the kernel config)
The SysRq key is the Print Screen key, usually up at the top of the keyboard to the right of all the F# keys
Alt+SysRq+K - Kills all processes (SIGKILL / kill -9)
Alt+SysRq+E - Terminates all processes (SIGTERM / kill -15)
Alt+SysRq+I - Interrupts all processes (SIGINT / kill -2)
Alt+SysRq+U - Force unmount and remount of all filesystems readonly
Alt+SysRq+S - Syncs all disks
Alt+SysRq+B - Reboots
Sometimes you can get everything unstuck after Alt+SysRq+K, but I usually reboot normally after that anyway.
I wrote KEIUSB on the bottom of my keyboard, because I always forget the letters, and at that point, you can't google it. _________________ jim |
|
Back to top |
|
|
Cadynum Tux's lil' helper
Joined: 15 Apr 2007 Posts: 122
|
Posted: Mon Aug 20, 2007 1:16 pm Post subject: |
|
|
Thanks, I'll try them out later. _________________ How many Microsoft Programmers does it take to screw in a lightbulb? A: It cannot be done. You will need to upgrade your house. |
|
Back to top |
|
|
|