GNOME Bugzilla – Bug 327076
gnome-power-manager should listen for the sleep keyboard press
Last modified: 2006-02-18 20:13:57 UTC
Some multimedia keyboards have brightness up, down, sleep and hibernate hot-keys. g-p-m should listen from the keyboard events like it currently does for the hardware key event. This would probably involve registering an accellerator of these keys.
I think you probably want to add hooks into gnome-settings-daemon (part of gnome-control-center). global keybindings are split between it and metacity right now, I think.
We should probably listen for these keys in HAL instead... also note that it varies what the key code is; we probably want hal fdi files that tell us...
I think Matthew Garrett is working on a generic HAL addon to listen on the keyboard input for stuff like sleep keys.
2006-02-18 David Zeuthen <davidz@redhat.com> * src/gpm-hal-monitor.c (watch_device_condition): Use details if the button type is the empty string. Makes g-p-m do the right thing if I'm pressing the Sleep button on my keyboard (thanks to the hal patch from Matthew Garrett).