Well, this does not help since it is about acpi events and I am using HAL events. Since the keycode is hardcoded in the driver, I probably won't be able to unlink it. One solution that comes across would be to override the keycode with a fdi file for HAL. Now, the question is how to find out the appropriate scancode, for example [1]:
<match key="system.hardware.vendor" prefix="LENOVO">
<match key="system.hardware.version" contains="3000">
<append key="input.keymap.data" type="strlist">e016:wifi</append> <!-- Fn+F5 Wireless -->
<append key="info.capabilities" type="strlist">input.keymap</append>
</match>
</match>
So, how do I find out the equivalent of e016:wifi on my box? The only information I have is:
showkey gives: Keycode 238
the driver[2] defines: {KE_KEY, 0x0E, KEY_WLAN }, 0x0E being the hex scancod
Are 0x0E and e016 both hex values, equivalent format? So can I use 0x0e:wifi?
Thanks for your support and kind regards,
Quentin
[1]
http://hal.freedesktop.org/quirk/quirk-keymap-try.html
[2]
http://github.com/tetromino/lenovo-s...vo-sl-laptop.c