30-keymap-module-sony-laptop.fdi
John Hughes
john at Calva.COM
Mon Mar 10 09:13:09 PDT 2008
At the start of the file we see:
<!-- These are buttons synthesized in the sony-laptop kernel module
You can find the scancodes in /usr/include/linux/sonypi.h -->
Which is not the case:
$ cat /usr/include/linux/sonypi.h
[...]
#define SONYPI_EVENT_JOGDIAL_DOWN 1
#define SONYPI_EVENT_JOGDIAL_UP 2
#define SONYPI_EVENT_JOGDIAL_DOWN_PRESSED 3
#define SONYPI_EVENT_JOGDIAL_UP_PRESSED 4
#define SONYPI_EVENT_JOGDIAL_PRESSED 5
#define SONYPI_EVENT_JOGDIAL_RELEASED 6 /* obsolete */
#define SONYPI_EVENT_CAPTURE_PRESSED 7
#define SONYPI_EVENT_CAPTURE_RELEASED 8 /* obsolete */
#define SONYPI_EVENT_CAPTURE_PARTIALPRESSED 9
[...]
The truth is out there:
http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-modules-data.html#sony
Scancode Event Description
0x00 Capture Pressed
0x01 Capture Released
0x02 Capture Partialpressed
0x03 Capture Partialreleased
0x04 Fn Esc
0x05 Fn F1
0x06 Fn F2
0x07 Fn F3
...
in effect the scancodes are the SONYPI_EVENT thingies offset by 7
Should fix the comment?
More information about the hal
mailing list