aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/thinkpad-acpi.txt
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2007-10-30 15:46:20 -0400
committerLen Brown <len.brown@intel.com>2007-11-05 13:07:11 -0500
commita3f104c02ab842574e699186cf953551aafe2ca9 (patch)
tree8cee0bbd37ac14b8a9bb9a88e594a65b424e8ff9 /Documentation/thinkpad-acpi.txt
parente927c08da53e5c87ca07f7a828d4a0048e7bacf0 (diff)
ACPI: thinkpad-acpi: support 16 levels of brightness (v3)
Lenovo ThinkPads often have 16 brightness levels in EC, and not just eight levels like older ThinkPads. They also have standard ACPI backlight brightness control. We detect the number of brightness levels by the presence of a BCLL package with 16 entries. If BCLL is not there, we assume eight levels (Z6*). If it is there, but it doesn't have 16 entries, we assume eight levels (T60). Otherwise we assume sixteen levels (T61, X61, etc). We don't use _BCL because it can have side-effects in thinkpads. Thanks to Thomas Renninger <trenn@suse.de> for notifying me of this potential problem. Using the standard ACPI backlight brightness control *instead* of the native thinkpad backlight control is a better idea, though. A different patch will take care of this. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Cc: Thomas Renninger <trenn@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation/thinkpad-acpi.txt')
-rw-r--r--Documentation/thinkpad-acpi.txt61
1 files changed, 35 insertions, 26 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt
index ec499265deca..a743bfa62b95 100644
--- a/Documentation/thinkpad-acpi.txt
+++ b/Documentation/thinkpad-acpi.txt
@@ -923,19 +923,26 @@ sysfs backlight device "thinkpad_screen"
923This feature allows software control of the LCD brightness on ThinkPad 923This feature allows software control of the LCD brightness on ThinkPad
924models which don't have a hardware brightness slider. 924models which don't have a hardware brightness slider.
925 925
926It has some limitations: the LCD backlight cannot be actually turned on or off 926It has some limitations: the LCD backlight cannot be actually turned on or
927by this interface, and in many ThinkPad models, the "dim while on battery" 927off by this interface, and in many ThinkPad models, the "dim while on
928functionality will be enabled by the BIOS when this interface is used, and 928battery" functionality will be enabled by the BIOS when this interface is
929cannot be controlled. 929used, and cannot be controlled.
930 930
931The backlight control has eight levels, ranging from 0 to 7. Some of the 931On IBM (and some of the earlier Lenovo) ThinkPads, the backlight control
932levels may not be distinct. 932has eight brightness levels, ranging from 0 to 7. Some of the levels
933 933may not be distinct. Later Lenovo models that implement the ACPI
934There are two interfaces to the firmware for brightness control, EC and CMOS. 934display backlight brightness control methods have 16 levels, ranging
935To select which one should be used, use the brightness_mode module parameter: 935from 0 to 15.
936brightness_mode=1 selects EC mode, brightness_mode=2 selects CMOS mode, 936
937brightness_mode=3 selects both EC and CMOS. The driver tries to autodetect 937There are two interfaces to the firmware for direct brightness control,
938which interface to use. 938EC and CMOS. To select which one should be used, use the
939brightness_mode module parameter: brightness_mode=1 selects EC mode,
940brightness_mode=2 selects CMOS mode, brightness_mode=3 selects both EC
941and CMOS. The driver tries to autodetect which interface to use.
942
943When display backlight brightness controls are available through the
944standard ACPI interface, it is best to use it instead of this direct
945ThinkPad-specific interface.
939 946
940Procfs notes: 947Procfs notes:
941 948
@@ -947,11 +954,11 @@ Procfs notes:
947 954
948Sysfs notes: 955Sysfs notes:
949 956
950The interface is implemented through the backlight sysfs class, which is poorly 957The interface is implemented through the backlight sysfs class, which is
951documented at this time. 958poorly documented at this time.
952 959
953Locate the thinkpad_screen device under /sys/class/backlight, and inside it 960Locate the thinkpad_screen device under /sys/class/backlight, and inside
954there will be the following attributes: 961it there will be the following attributes:
955 962
956 max_brightness: 963 max_brightness:
957 Reads the maximum brightness the hardware can be set to. 964 Reads the maximum brightness the hardware can be set to.
@@ -961,17 +968,19 @@ there will be the following attributes:
961 Reads what brightness the screen is set to at this instant. 968 Reads what brightness the screen is set to at this instant.
962 969
963 brightness: 970 brightness:
964 Writes request the driver to change brightness to the given 971 Writes request the driver to change brightness to the
965 value. Reads will tell you what brightness the driver is trying 972 given value. Reads will tell you what brightness the
966 to set the display to when "power" is set to zero and the display 973 driver is trying to set the display to when "power" is set
967 has not been dimmed by a kernel power management event. 974 to zero and the display has not been dimmed by a kernel
975 power management event.
968 976
969 power: 977 power:
970 power management mode, where 0 is "display on", and 1 to 3 will 978 power management mode, where 0 is "display on", and 1 to 3
971 dim the display backlight to brightness level 0 because 979 will dim the display backlight to brightness level 0
972 thinkpad-acpi cannot really turn the backlight off. Kernel 980 because thinkpad-acpi cannot really turn the backlight
973 power management events can temporarily increase the current 981 off. Kernel power management events can temporarily
974 power management level, i.e. they can dim the display. 982 increase the current power management level, i.e. they can
983 dim the display.
975 984
976 985
977Volume control -- /proc/acpi/ibm/volume 986Volume control -- /proc/acpi/ibm/volume