thinkpad-acpi: rework brightness support
commit56f329f34828ebbff4a9ce60a531cd529ca6033b
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Apr 2009 00:20:00 +0000 (17 21:20 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Apr 2009 00:20:00 +0000 (17 21:20 -0300)
tree8fedcb6453ec266bbc42c53a6fb511d5a36c5cfa
parentcf0af3c56129065e9ddc6bf362beb924387022ce
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