Created attachment 22064 [details] Output of acpidump. The power button and the lid-switch on the vaio vgn-sz61mn does not generate any acpi events.
Will you please also attach the output of lspci -vxxx? Will you please do the following test on your box? a. kill the process using /proc/acpi/event (use the command of "lsof /proc/acpi/event" to get the process ID) b. grep -R . /sys/firmware/acpi/interrupts/* > interrupts_before c. press the LID/power button several times d. grep -R . /sys/firmware/acpi/interrupts/* > interrupts_after After the test, please attach the above outputs. thanks.
Created attachment 22098 [details] patch: always register fixed power button devices please apply this patch and attach the content of /sys/firmware/acpi/interrupts/ff_pwr_btn after pressing the power button for several times.
Created attachment 22109 [details] grep -R . /sys/firmware/acpi/interrupts/* before pressing the buttons
Created attachment 22110 [details] grep -R . /sys/firmware/acpi/interrupts/* after pressing the buttons
Created attachment 22111 [details] lspci output
I applied the patch from comment #2 and the output of the mentioned file is 0 enabled no matter how often i press the power button.
hmmm, what do you get when you run "ls /sys/bus/acpi/drivers/button/"?
Hi, Sebastian Can you confirm whether the button driver is loaded after applying the patch in comment #2? Please add the boot option of "initcall_debug" and attach the output of dmesg. Will you please also the do the test again after executing the command of " setpci -s 00:00:1f.0 b9.b=0x80"? Thanks.
ls /sys/bus/acpi/drivers/button/ gives the following: LNXPWRBN:00 PNP0C0C:00 PNP0C0D:00 bind uevent unbind
Hey after executing setpci -s 00:00:1f.0 b9.b=0x80 The Power button works!
Hi, Sebastian thanks for the test. From the test it seems that the power button event is triggered by the power button device defined in AML code, which is controlled by EC. And after the EC can work well, the power button event can be generated correctly. And from the test it seems that this issue is also related with the incorrect GPIO routing, which is defined in 00:00:1f.0 LPC bridge. If it is not configured correctly, there is no EC GPE interrupt. In such case the EC notification event can't be processed, which also causes that the power button event can't be sent. From the above analysis it seems that this is a duplicated bug of 1752. Hi, Rui How about marking this bug as the duplicated bug of 1752? thanks.
*** This bug has been marked as a duplicate of bug 1752 ***