FS#27201 - [acpid] "button/lid" event triggered for both lid open and lid close events since kernel 3.1.
Attached to Project:
Arch Linux
Opened by Erik Johnson (archtaku) - Monday, 21 November 2011, 04:12 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 24 November 2011, 01:30 GMT
Opened by Erik Johnson (archtaku) - Monday, 21 November 2011, 04:12 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 24 November 2011, 01:30 GMT
|
Details
Description:
When using pm-utils to suspend automatically on lid close (by adding /usr/sbin/pm-suspend to the "button/lid" match in the case statement within /etc/acpi/handler.sh), the laptop suspends immediately after resuming when the lid is opened. Additional info: * package version(s) acpid 2.0.12-1 with linux 3.1-4 and 3.1.1-1. * config and/or log files etc. /etc/acpi/handler.sh Steps to reproduce: Add the following line to the "button/lid" section of the case statement: logger -t acpid "button/lid triggered. Arguments: $@" Close the lid, open it, and grep the appropriate log for "acpid". You'll notice that there will be two events that were logged: button/lid LID close button/lid LID open As both start with "button/lid", both trigger that event in /etc/acpi/handler.sh. I've attached a patch that checks argument #3 to differentiate between open and close events. |
This task depends upon
Closed by Eric Belanger (Snowman)
Thursday, 24 November 2011, 01:30 GMT
Reason for closing: Fixed
Additional comments about closing: acpid-2.0.13-1
Thursday, 24 November 2011, 01:30 GMT
Reason for closing: Fixed
Additional comments about closing: acpid-2.0.13-1
Oh well, I think you get the idea.