[patch] Add keymap remapping to HAL

Richard Hughes hughsient at gmail.com
Thu Jun 7 13:28:07 PDT 2007


On 05/06/07, Richard Hughes <hughsient at gmail.com> wrote:
> This patch adds keymap remapping to HAL and should fix all the issues
> mentioned.

On testing this new code on my lenovo (i8042 KBD), I've noticed the output

hal-setup-keymap: parsed e016:wlan to (e016, 238)
hal-setup-keymap: failed to set scancode e016 to keycode 238: Invalid argument
hal-setup-keymap: parsed e017:sleep to (e017, 142)
hal-setup-keymap: failed to set scancode e017 to keycode 142: Invalid argument
hal-setup-keymap: parsed e018:suspend to (e018, 205)
hal-setup-keymap: failed to set scancode e018 to keycode 205: Invalid argument

And the keys are not mapped.

With the attached patch the keys work, and I get:

hal-setup-keymap: parsed e016:wlan to (e016, 238)
hal-setup-keymap: parsed e017:sleep to (e017, 142)
hal-setup-keymap: parsed e018:suspend to (e018, 205)

In my initial testing I was using scancodes less that 127, and thus didn't
pick up on this problem. The conversion code is the same as used in setkeycodes.

Comments? Okay to commit?

Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-keycodes.patch
Type: text/x-patch
Size: 698 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070607/2e403bce/attachment.bin 


More information about the hal mailing list