Other stuff, and Power Management

Matthew Garrett mjg59 at srcf.ucam.org
Tue Dec 12 05:10:26 EST 2006


On Sun, Dec 10, 2006 at 12:47:27AM +0000, Richard Hughes wrote:

> Something like XF86XK_PowerOff would be great as this is the same key as
> some USB keyboards generate, and also what the ACPI layer will also be
> sending in the future for power button events.

The ACPI layer doesn't send X keycodes. The power key ought to generate 
linux keycode 116 (KEY_POWER) - how that's mapped to an X keysym will 
depend on the X keymap. If it's generating something other than 116, 
then that's probably something that needs fixing...

(Note that X and Linux keycode are entirely different, and the mapping 
between them is massively non-trivial)

-- 
Matthew Garrett | mjg59 at srcf.ucam.org



More information about the Devel mailing list