Other stuff, and Power Management

Richard Hughes hughsient at gmail.com
Sat Dec 9 19:47:27 EST 2006


On Sat, 2006-12-09 at 10:18 -1000, Mitch Bradley wrote:
> The power button does generate keycodes...

Ahh I see, keycode 124.

>From what I understand keycodes are not that useful, keysyms are
probably what userspace wants.

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.

Now, I'm not pretending to actually understand in detail all this input
stuff, so I'm not exactly sure where the keycode 124 -> XF86XK_PowerOff
mapping would be done. Any ideas?

Richard.





More information about the Devel mailing list