[PATCH] Add keyboard event addon

Matthew Garrett mjg59 at srcf.ucam.org
Wed Feb 8 06:40:38 PST 2006


On Wed, Feb 08, 2006 at 09:29:30AM -0500, David Zeuthen wrote:

> when pressing all the non-standard keys. Notably I didn't get events
> from the following buttons

These are the X keycodes, presumably? Would it be possible to get the 
kernel keycodes (easiest way to grab them is to use evtest - 
http://floam.sh.nu/files/misc/evtest.c has a copy) and see if they 
appear in /usr/include/linux/input.h ? It's possible that it generates 
keycodes outside the range that we currently have defined (the 
keycode->X mapping is strange and scary and hard to predict)

> Are these keys standardized? Also, it doesn't seem to me we can get any
> useful vendor or product id out of this just yet, so if they're not
> standardized.. maybe atkbd.c needs the magic though it would be nice to
> do this from user space.

PS/2 has no mechanism for providing vendor and product IDs, and the 
codes produced by the keyboard can vary. There's no terribly good 
solution for this right now. 

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


More information about the hal mailing list