thinkpad-acpi: rework brightness support
commitcf32eb8107bcde23b693bbf7caf6f6936ebfda72
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Apr 2009 13:33:05 +0000 (18 10:33 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Apr 2009 13:33:05 +0000 (18 10:33 -0300)
tree94571dcb468fde123f6b1067acb6a37804c075f8
parentf55cb074642b86f938c17d82e2faa026bd3442e8
thinkpad-acpi: rework brightness support

Refactor and redesign the brightness control backend...

In order to fix bugzilla #11750...

Add a new brightness control mode: support direct NVRAM checkpointing
of the backlight level (i.e. store directly to NVRAM without the need
for UCMS calls), and use that together with the EC-based control.
Disallow UCMS+EC, thus avoiding races with the SMM firmware.

Switch the models that define HBRV (EC Brightness Value) in the DSDT
to the new mode.  These are: T40-T43, R50-R52, R50e, R51e, X31-X41.

Change the default for all other IBM ThinkPads to UCMS-only.  The
Lenovo models already default to UCMS-only.

Reported-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/laptops/thinkpad-acpi.txt
drivers/platform/x86/thinkpad_acpi.c