Problem with LCD brightness buttons
- X60, X60s with BIOS 2.x
- T60, T60p with BIOS 2.x
- R60 with BIOS 2.x
- Probably all newer ThinkPads since the Lenovo acquisition
A recent change in one of the newer Lenovo BIOS updates changed the behavior of the brightness up/down keys, so that they also provide ACPI video brighness up/down events. This made ThinkPad users suffer from a bug in the Linux kernel handling of ACPI video events.
One problem is that when the brightness upor brightness down key is pressed, that event is processed twice. It will seem to the user, that the brightness up/down keys work in steps of 2. For example, starting from 0, the brightness level will go up to 2, 4, 6, 8, 10, 12, 14, then 15. But from 15, the brightness level will go down to 13, 11, 9, 7, 5, 3, 1, then 0. It's weird behavior.
The Linux kernel handling for the ACPI video event brighness up is not implemented by the ACPI video module before Linux 2.6.20-rc?, which results in the brightness up key not working, even if the event is handled correctly.
To make matters worse, the ACPI video module in kernels up to 22.214.171.124 has a hideous bug that gets many ACPI video events wrong, and this is the probable cause for the "tries to switch video output" effect some users observed, which can cause serious problems in certain configurations, like X server hangs.
There are a number of workarounds for this problem. After applying the workarounds, you will be able to use brightness upand brightness down to increase and decrease the LCD brightness as normal.
Don't load the ACPI video module
Don't load the ACPI video module, or don't compile in the ACPI_VIDEO option on Linux kernels that have not been patched to fix this issue. The ThinkPad BIOS will do the right thing.
For Fedora Core 6 users, issue the following command and reboot:
# rename ko ko.old /lib/modules/$(uname -r)/kernel/drivers/acpi/video.ko
Specify a parameter for video.ko
As an alternative, one might also specify
video.ko parameters. With this parameter, all functionality of
video.ko remains but without the brightness control and reaction to brightness ACPI events.
There is a number of ways to introduce this parameter, one of them is creating a configuration file for modprobe. The next command works on Debian 6 (and maybe some other systems):
# echo options video brightness_switch_enabled=0 | tee /etc/modprobe.d/video-br.conf
Modify the parameter for video.ko at runtime
Another alternative, one can issue this command or put it in
echo N > /sys/module/video/parameters/brightness_switch_enabled
Update Grub loading
Add to GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub
Even with 2.6.20-rc3 ACPI video, things are still not perfect. This time, it may be Lenovo's fault.
The fixed ACPI video module will use the ACPI DSDT to increase video brighness, but the new BIOS DSDTs apparently do not keep the CMOS NVRAM completely up-to-date, so tpb and other utilities that provide on-screen-display do not get to know there was a brightness up event.
This can be argued to be a deficiency of these tools, however. The foolproof, safe way to know the current ThinkPad display brightness in Linux is to ask ibm-acpi. Note that ibm-acpi support for this functionality is new, which explains why the current tools don't use it.
Due to the fact that when nothing handles the ACPI video brighness up event, the BIOS does the right thing, it is unclear at this time exactly where the blame for this remaining issue should lie.