After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327076 - gnome-power-manager should listen for the sleep keyboard press
gnome-power-manager should listen for the sleep keyboard press
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
SVN TRUNK
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-01-15 15:33 UTC by Richard Hughes
Modified: 2006-02-18 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Hughes 2006-01-15 15:33:19 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.
Comment 1 Ray Strode [halfline] 2006-01-18 17:31:06 UTC
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.
Comment 2 David Zeuthen (not reading bugmail) 2006-01-29 00:55:43 UTC
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...
Comment 3 Richard Hughes 2006-01-29 12:18:55 UTC
I think Matthew Garrett is working on a generic HAL addon to listen on the keyboard input for stuff like sleep keys.
Comment 4 Richard Hughes 2006-02-18 20:13:57 UTC
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).