Bug 16328

Summary: FN+PgUp (thinklight) doesn't generate event (acpi, xev, showkey)
Product: ACPI Reporter: Pavol Klačanský (pavol)
Component: OtherAssignee: Zhang Rui (rui.zhang)
Status: REJECTED INSUFFICIENT_DATA    
Severity: normal CC: acpi-bugzilla, pavol, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.32-22-generic Subsystem:
Regression: No Bisected commit-id:
Attachments: output after pressing hotkey
output before pressing hotkey
acpidump
custom _Q14 method
dmesg after hotkey pressing
dmesg (thinklight on)
dmesg (thinklight off)
grep acpi output

Description Pavol Klačanský 2010-07-03 10:00:21 UTC
Hallo, this key's combination generates no event, but light is working

Vista: works

dist Ubuntu: not work (no event, but light works)

acpi_listen: no event
showkey: no event
Comment 1 Pavol Klačanský 2010-07-03 10:01:05 UTC
Thinkpad T500
Comment 2 Zhang Rui 2010-07-05 01:21:00 UTC
please attach the acpidump output.
please attach the output of "grep . /sys/firmware/acpi/interrupts/*" both before and after pressing the hotkeys.
Comment 3 Pavol Klačanský 2010-07-05 10:58:56 UTC
I hope I do it well
Comment 4 Pavol Klačanský 2010-07-05 10:59:33 UTC
Created attachment 27018 [details]
output after pressing hotkey
Comment 5 Pavol Klačanský 2010-07-05 10:59:56 UTC
Created attachment 27019 [details]
output before pressing hotkey
Comment 6 Pavol Klačanský 2010-07-05 11:03:42 UTC
Created attachment 27020 [details]
acpidump
Comment 7 Zhang Rui 2010-07-14 01:51:16 UTC
Created attachment 27097 [details]
custom _Q14 method

please
1. build the latest upstream kernel with CONFIG_ACPI_DEBUG=y
2. boot with acpi.debug_level=0x02
3. make sure the debugfs is mounted
4. apply the custom _Q14 method by running "cat _Q14 > /sys/kernel/debug/acpi/custom_method"
5. try to increase the backlight via hotkeys.
6. attach the dmesg output after the test.
Comment 8 Pavol Klačanský 2010-09-06 21:53:45 UTC
Hallo, I am working on this info, I am sorry, I must forgot :/

Please, could you explain, why numbers in /sys/firmware/acpi/interrupts/* are after hotkey press increased by 2? thanks
Comment 9 Pavol Klačanský 2010-09-08 17:14:38 UTC
It can be handled by commands
sudo sh -c "echo on > /proc/acpi/ibm/light"
sudo sh -c "echo off > /proc/acpi/ibm/light"

cat /proc/acpi/ibm/light
status:		off
commands:	on, off

but I need event, at weekend I am going to compile latest kernel with debug flags (I have limited intertned data transfer)
Comment 10 Zhang Rui 2010-09-27 01:28:58 UTC
please set CONFIG_ACPI_DEBUG, and reboot with acpi.debug_layer=0x04 acpi.debug_level=0x04.
please attach the dmesg output after pressing the hotkey.

And please do the test in comment #7
Comment 11 Pavol Klačanský 2010-10-07 11:55:20 UTC
Created attachment 32662 [details]
dmesg after hotkey pressing
Comment 12 Pavol Klačanský 2010-10-07 12:06:41 UTC
Created attachment 32672 [details]
dmesg (thinklight on)
Comment 13 Pavol Klačanský 2010-10-07 12:08:06 UTC
Created attachment 32682 [details]
dmesg (thinklight off)
Comment 14 Zhang Rui 2010-10-08 06:54:54 UTC
(In reply to comment #11)
> Created an attachment (id=32662) [details]
> dmesg after hotkey pressing

nothing interesting. I'm wondering if CONFIG_ACPI_DEBUG is set or not. :p
please attach the output of "grep . /sys/module/acpi/parameters/*" at this time.

And could you please do the test in comment #7 in a kernel newer than 2.6.35? follow the steps below.

(In reply to comment #7)
> Created an attachment (id=27097) [details]
> custom _Q14 method
> 
> please
> 1. build the latest upstream kernel with CONFIG_ACPI_DEBUG=y
> 2. boot with acpi.debug_level=0x02
> 3. make sure the debugfs is mounted
> 4. apply the custom _Q14 method by running "cat _Q14 >
> /sys/kernel/debug/acpi/custom_method"
5. echo 1 > /sys/module/acpi/aml_debug_output
6. try to increase the backlight via hotkeys.
7. attach the dmesg output after the test.
Comment 15 Pavol Klačanský 2010-10-08 13:57:58 UTC
I am idiot, I cannot find it in grep output, but in .config file, there is "CONFIG_ACPI_DEBUG=y" (it has been my first kernel compilation)

this is not about thinklight (has two states, on/off)

tomorrow, I will compile latest sources, but I really don't know, why it was compiled without ACPI debug
Comment 16 Pavol Klačanský 2010-10-08 13:58:22 UTC
Created attachment 32892 [details]
grep acpi output
Comment 17 Zhang Rui 2010-10-09 05:17:27 UTC
oh, the grep acpi output shows that CONFIG_ACPI_DEBUG is set
but /sys/module/acpi/parameters/debug_layer:debug_layer = 0x00000000 ( * = enabled)

can you please echo 4 > /sys/module/acpi/parameters/debug_layer as root user and then
1. dmesg -c
2. press the hotkey for several times
3. attach the dmesg output
Comment 18 Pavol Klačanský 2010-10-09 14:52:18 UTC
dmesg output is empty :/
Comment 19 Zhang Rui 2010-10-11 05:02:18 UTC
is the custom _Q14.aml applied?
Comment 20 Pavol Klačanský 2010-10-11 12:53:58 UTC
yes, is "acpi.debug_level=0x02" required also?
Comment 21 Zhang Rui 2010-10-13 00:34:51 UTC
(In reply to comment #20)
> yes, is "acpi.debug_level=0x02" required also?

no if you can make sure /sys/module/acpi/aml_debug_output equals 1.
Comment 22 Zhang Rui 2010-12-27 01:26:06 UTC
bug closed as there is no response from the bug reporter.
please feel free to re-open it if the problem still exists in the latest upstream kernel.