thinkpad_acpi: unhandled HKEY event 0x6050
On a Thinkpad T530, BIOS 2.07:
Event 0x6050 is generated when there's a brightness change generated by the firmware (not from the kernel through _BCM). This only happens when the ACPI video driver is not loaded, or acpi_backlight=vendor. (actually, when _BCL has not been called).
It should probably be ignored, like TP_HKEY_EV_BRGHT_CHANGED (0x5010).
Whether _BCL has been called is stored in variable \NBCF.
ACPI dump is here:
http://www.bjencks.net/t530/acpidump.out.xz
The full logic in the firmware appears to be:
When a brightness key is pressed:
If the key is unmasked:
Report the key to thinkpad-acpi
If _BCL has been called:
Report the key (video event) to acpi video
Else:
Adjust the brightness
Report event 0x6050 to thinkpad-acpi
This results in correct behavior when acpi video is loaded, since thinkpad-acpi automatically masks the brightness keys in that case. However, without acpi video the keys are unmasked, so keypresses generate two brightness changes -- one from the firmware and one from userspace.
It seems like the brightness keys should always be masked on this type of firmware.
-Ben Jencks
Quoted 25 lines · Ben Jencks
On a Thinkpad T530, BIOS 2.07:
Event
0x6050is generated when there's a brightness change generated by the firmware (not from the kernel through_BCM). This only happens when the ACPI video driver is not loaded, or acpi_backlight=vendor. (actually, when_BCLhas not been called).It should probably be ignored, like
TP_HKEY_EV_BRGHT_CHANGED(0x5010).Whether
_BCLhas been called is stored in variable \NBCF.ACPI dump is here:
http://www.bjencks.net/t530/acpidump.out.xzThe full logic in the firmware appears to be:
When a brightness key is pressed:
If the key is unmasked:
Report the key to thinkpad-acpi
If_BCLhas been called:
Report the key (video event) to acpi video
Else:
Adjust the brightness
Report event0x6050to thinkpad-acpi
Quoted 8 lines
This results in correct behavior when acpi video is loaded, since thinkpad-acpi automatically masks the brightness keys in that case. However, without acpi video the keys are unmasked, so keypresses generate two brightness changes -- one from the firmware and one from userspace.
It seems like the brightness keys should always be masked on this type of firmware.
Thanks for the detailed report!
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh