Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bind key combo to shutdown
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Cadynum
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2007
Posts: 122

PostPosted: Mon Aug 20, 2007 1:26 am    Post subject: Bind key combo to shutdown Reply with quote

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
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Mon Aug 20, 2007 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Cadynum
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2007
Posts: 122

PostPosted: Mon Aug 20, 2007 1:16 pm    Post subject: Reply with quote

jstead1 wrote:
...

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum