Don't set keymap if already set

Richard Hughes hughsient at gmail.com
Fri Jun 8 04:07:18 PDT 2007


Henrique (thinkpad_acpi maintainer) wanted to make sure we were not
setting scancode->keycode mappings for keys that had already been
assigned. We could assign the keys in the kernel driver using dmi
mapping or in userspace by already using setkeycodes in hotkey-setup.

The attached (untested) patch fixes this, but also has the side effect
of not letting the use change the fdi file mappings while testing
without rebooting or reloading the thinkpad_acpi module.

Good thing / bad thing? Patch attached for comments.

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-dont-set-keymap-if-mapped.patch
Type: text/x-patch
Size: 2944 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070608/9c452184/attachment.bin 


More information about the hal mailing list