Don't set keymap if already set

Lennart Poettering mzuny at 0pointer.de
Fri Jun 8 04:18:25 PDT 2007


On Fri, 08.06.07 12:07, Richard Hughes (hughsient at gmail.com) wrote:

> 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.

Really bad thing!

Please don't do this!

I have two laptops here, from two different vendors (FIC, MSI), and
both have a few keys that are mapped to wrong keycodes by default by
the Linux kernel. If you disallow overwriting these mappings the whole
HAL keymapping thing becomes unsuable for these laptops. And I am sure
that my two laptops here are not the only ones which suffer by this
problem!

Also, I don't see why Henrique wants to see this feature in the first
place? Is he afraid that HAL would break already properly set up
keycodes? If so this would probably be a bug in an .fdi file -- and
should be fixed there.

Please, don't do this!

Thanks,
        Lennart


-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the hal mailing list