On 2012-01-06 23:46:36 +0100, Vincent Lefevre wrote: > "/lib/udev/keymap -i input/event17" doesn't always return a scan code: > > (no scan code received) key code: 102nd > (no scan code received) key code: grave > (no scan code received) key code: brightnessdown > (no scan code received) key code: brightnessup > (no scan code received) key code: scale > (no scan code received) key code: dashboard > (no scan code received) key code: kbdillumdown > (no scan code received) key code: kbdillumup > (no scan code received) key code: previoussong > (no scan code received) key code: playpause > (no scan code received) key code: nextsong > (no scan code received) key code: mute > (no scan code received) key code: volumedown > (no scan code received) key code: volumeup
I wonder whether this is a bug in udev. If really the scan code information is not provided, it could be obtained by a reverse look-up. > Moreover the map dump is empty: > > $ sudo /lib/udev/keymap input/event17 > ### evdev 1.0.1., driver 'Apple, Inc Apple Keyboard' > > This seems to be due to the fact that scan codes are large, e.g. > > scan code: 0x70014 key code: q > scan code: 0x7001A key code: w > scan code: 0x70008 key code: e > scan code: 0x70004 key code: a > scan code: 0x70016 key code: s > scan code: 0x70007 key code: d > scan code: 0x7001D key code: z > scan code: 0x7001B key code: x > scan code: 0x70006 key code: c > scan code: 0x70029 key code: esc One can get the dump with a shift, e.g. by replacing for (scancode = 0; scancode < MAX_SCANCODES; scancode++) by for (scancode = 0x70000; scancode < 0x70000 + MAX_SCANCODES; scancode++) If udev can't get the first value, it could be provided by the user as an argument after doing an interactive test. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org