Re: [PATCH] Map volume and brightness events on thinkpads
From: Henrique de Moraes Holschuh
Date: Tue Oct 16 2007 - 04:36:33 EST
On Mon, 15 Oct 2007, Jesse Barnes wrote:
> On Monday, October 15, 2007 2:07 pm Henrique de Moraes Holschuh wrote:
> > As for Lenovo thinkpads, brightness control is to be processed by the
> > ACPI video module, so brightness hot keys are not to be reported by
> > default there either. I am not so sure about the volume keys, but
> > your patch touches the IBM keymap *and* you provide no testing
> > information for the various Lenovo models, so I have to NAK it as
> > well until more information is available.
>
> No, on Lenovo (and in general actually) the firmware should *not* touch
> the backlight. Otherwise if another driver touches it the driver and
This is not an option on IBM ThinkPads, unless you patch the DSDT on
non-ancient ACPI-based models, and unless you patch the BIOS (and maybe even
the EC control program) itself on the really ancient models. It is that
simple.
On *new* Lenovo ThinkPad BIOSes (the z60 that Lenovo has given up on act
just like IBM ThinkPads), the firmware reports brightness changes through
the proper ACPI messages, which are processed by the ACPI video module. So I
will repeat myself here: brightness control is to be processed by the ACPI
video module, so brightness hot keys are not to be reported by default in
Lenovo thinkpads.
You want ACPI video to just pass the messages to userspace when X.org is
driving the backlight? Fine with me. That *still* doesn't make it right to
get these messages as hot key presses over the input layer through the
thinkpad-acpi driver. So the NAK stands. Any changes should be done to the
ACPI video driver in this case.
If the user has any real need to get these messages from thinkpad-acpi for
whichever particular reasons, he can use the standard interface to input
event drivers to remap the scan codes to whatever he wants.
> firmware will be out of sync, causing unexpected and undesirable
> behavior. We intend to fix this for the Intel driver at least
> (requiring both ACPI video driver and gfx driver updates), others will
> probably follow eventually.
Good luck, and please interface it properly to the backlight class while
at it. There's no reason to make the waters mudier :-)
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
-
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/