Re: [PATCH 2.6.18-mm2] acpi: add backlight support to the sony_acpi driver

From: Dmitry Torokhov
Date: Wed Oct 11 2006 - 15:09:17 EST


On 10/11/06, Yu Luming <luming.yu@xxxxxxxxx> wrote:
> > It would have to be DMI-based to some extent - not all Sonys use the
> > same keys for the same purpose. Misery ensues.
>
> Then we need to add keymap table to the sonypi's input device so that
> keymap can be changed from userspace.
If some key is physically broken, I agree configurable keymap is the only
solution. But, I don't see any other benefit of doing so, if we expect
platform specific driver report meaningful key code to input layer.


As Matthew said different Sony models use different mapping. DMI-based
keymap solution requires kernel upgrade every time new model is out
whereas configurable keymap can be loaded easily form userspace. Also
user might want to remap keys to do different stuff. For example I
never change brigtness on my laptop now that I found settings that I
like. So I could map one key to start kmail and another one to build
kernel for example ;)

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/