[ltp] brightness keys not working correctly on T61

Yves-Alexis Perez linux-thinkpad@linux-thinkpad.org
Sun, 28 Oct 2007 14:16:57 +0100


Hi,

I have a new T61 8897CTO (4/3 SXGA+ with intel grapics). I'm running a
vanilla 2.6.24-rc1 kernel, and the brightness keys don't work.

I can echo to /proc/acpi/ibm/brightness
or /sys/class/backlight/thinkpad_screen/brightness and it does change
the brightness. I can use xbacklight too and it works. But I can't use
Fn+Home and Fn+End to do the job, because they don't seem to work
correctly:

Fn+Home gives:
Oct 28 14:13:25 hidalgo acpid: received event "ibm/hotkey HKEY 00000080
00001010" 
Oct 28 14:13:25 hidalgo acpid: notifying client 3532[0:0] 
Oct 28 14:13:25 hidalgo acpid: notifying client 3465[101:104] 
Oct 28 14:13:25 hidalgo acpid: executing action "/etc/acpi/default.sh
ibm/hotkey HKEY 00000080 00001010" 
Oct 28 14:13:25 hidalgo logger: acpid: increase brightness
Oct 28 14:13:25 hidalgo acpid: action exited with status 0 
Oct 28 14:13:25 hidalgo acpid: completed event "ibm/hotkey HKEY 00000080
00001010" 
Oct 28 14:13:26 hidalgo acpid: received event "video LCD0 00000086
00000000" 
Oct 28 14:13:26 hidalgo acpid: notifying client 3532[0:0] 
Oct 28 14:13:26 hidalgo acpid: notifying client 3465[101:104] 
Oct 28 14:13:26 hidalgo kernel: thinkpad_acpi: unknown LID-related HKEY
event: 0x5010
Oct 28 14:13:26 hidalgo acpid: executing action "/etc/acpi/default.sh
video LCD0 00000086 00000000" 
Oct 28 14:13:26 hidalgo logger: ACPI group video / action LCD0 is not
defined
Oct 28 14:13:26 hidalgo acpid: action exited with status 0 
Oct 28 14:13:26 hidalgo acpid: completed event "video LCD0 00000086
00000000" 
Oct 28 14:13:26 hidalgo acpid: received event "ibm/hotkey HKEY 00000080
00005010" 
Oct 28 14:13:26 hidalgo acpid: notifying client 3532[0:0] 
Oct 28 14:13:26 hidalgo acpid: notifying client 3465[101:104] 
Oct 28 14:13:26 hidalgo acpid: executing action "/etc/acpi/default.sh
ibm/hotkey HKEY 00000080 00005010" 
Oct 28 14:13:26 hidalgo logger: apcid: decrease brightness
Oct 28 14:13:26 hidalgo acpid: action exited with status 0 
Oct 28 14:13:26 hidalgo acpid: completed event "ibm/hotkey HKEY 00000080
00005010" 

(yes ibm/hotkey "increase" then video LCD then ibm/hotkey "decrease")

Fn+End gives:
Oct 28 14:14:30 hidalgo acpid: received event "ibm/hotkey HKEY 00000080
00001011" 
Oct 28 14:14:30 hidalgo acpid: notifying client 3532[0:0] 
Oct 28 14:14:30 hidalgo acpid: notifying client 3465[101:104] 
Oct 28 14:14:30 hidalgo acpid: executing action "/etc/acpi/default.sh
ibm/hotkey HKEY 00000080 00001011" 
Oct 28 14:14:30 hidalgo logger: acpid: ibm/hotkey HKEY 00000080 00001011
is not defined
Oct 28 14:14:30 hidalgo acpid: action exited with status 0 
Oct 28 14:14:30 hidalgo acpid: completed event "ibm/hotkey HKEY 00000080
00001011" 
Oct 28 14:14:31 hidalgo acpid: received event "video LCD0 00000087
00000000" 
Oct 28 14:14:31 hidalgo acpid: notifying client 3532[0:0] 
Oct 28 14:14:31 hidalgo acpid: notifying client 3465[101:104] 
Oct 28 14:14:31 hidalgo kernel: thinkpad_acpi: unknown LID-related HKEY
event: 0x5010
Oct 28 14:14:31 hidalgo acpid: executing action "/etc/acpi/default.sh
video LCD0 00000087 00000000" 
Oct 28 14:14:31 hidalgo logger: ACPI group video / action LCD0 is not
defined
Oct 28 14:14:31 hidalgo acpid: action exited with status 0 
Oct 28 14:14:31 hidalgo acpid: completed event "video LCD0 00000087
00000000" 
Oct 28 14:14:31 hidalgo acpid: received event "ibm/hotkey HKEY 00000080
00005010" 
Oct 28 14:14:31 hidalgo acpid: notifying client 3532[0:0] 
Oct 28 14:14:31 hidalgo acpid: notifying client 3465[101:104] 
Oct 28 14:14:31 hidalgo acpid: executing action "/etc/acpi/default.sh
ibm/hotkey HKEY 00000080 00005010" 
Oct 28 14:14:31 hidalgo logger: apcid: decrease brightness
Oct 28 14:14:31 hidalgo acpid: action exited with status 0 
Oct 28 14:14:31 hidalgo acpid: completed event "ibm/hotkey HKEY 00000080
00005010" 

ibm/hotkey "unknown" then video LCD then ibm/hotkey "decrease")

The problem seems to be in the events generated by the keys, not the
backlight itself.

If somebody knows how to fix this (hmh for example, as said on the ML),
I would be glad :)

Regards,
-- 
Yves-Alexis Perez