On Sun, 2006-12-10 at 00:47 +0000, Richard Hughes wrote: > 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?
You probably really want to map this to a linux kernel keycode first, see the small tool that runs on startup that does some keyboard poking with evdev ioctls. I forget the exact name of the tool, but its in the 'olpc-utils' RPM or something like that. Dan > Richard. > > > _______________________________________________ > Devel mailing list > [email protected] > http://mailman.laptop.org/mailman/listinfo/devel _______________________________________________ Devel mailing list [email protected] http://mailman.laptop.org/mailman/listinfo/devel
