mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ACPI: thinkpad-acpi: allow use of CMOS NVRAM for brightness control
It appears that Lenovo decided to break the EC brightness control interface in a weird way in their latest BIOSes. Fortunately, the old CMOS NVRAM interface works just fine in such BIOSes. Add a module parameter that allows the user to select which strategy to use for brightness control: EC, NVRAM, or both. By default, do both (which is the way thinkpad-acpi used to work until now) on IBM ThinkPads, and use NVRAM only on Lenovo ThinkPads. Signed-off-by: Henrique de Moraes Holschuh <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
d5a2f2f1d6
commit
24d3b77467
4 changed files with 67 additions and 9 deletions
|
|
@ -860,6 +860,12 @@ cannot be controlled.
|
|||
The backlight control has eight levels, ranging from 0 to 7. Some of the
|
||||
levels may not be distinct.
|
||||
|
||||
There are two interfaces to the firmware for brightness control, EC and CMOS.
|
||||
To select which one should be used, use the brightness_mode module parameter:
|
||||
brightness_mode=1 selects EC mode, brightness_mode=2 selects CMOS mode,
|
||||
brightness_mode=3 selects both EC and CMOS. The driver tries to autodetect
|
||||
which interface to use.
|
||||
|
||||
Procfs notes:
|
||||
|
||||
The available commands are:
|
||||
|
|
|
|||
Loading…
Reference in a new issue