Bug 6090 - S3: mutiple button of lid events: Thinkpad X21
Summary: S3: mutiple button of lid events: Thinkpad X21
Status: CLOSED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: acpi_power-sleep-wake
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 15:21 UTC by Eric Jorgensen
Modified: 2006-08-26 18:42 UTC (History)
0 users

See Also:
Kernel Version: 2.6.15
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Eric Jorgensen 2006-02-17 15:21:14 UTC
Most recent kernel where this bug did not occur: N/A
Distribution: Debian/Etch
Hardware Environment: Thinkpad X21 2662-RRG
Problem Description:

I did not attempt to use ACPI prior to 2.6.14, and have had this issue with 2.6.14 and 2.6.15. 

Upon resume from S3 (echo -n "mem" > /sys/power/state), my 'sleep' action script for acpid will 
completely finish, and be immediately called again by acpid. 

This always happens exactly twice. I have to wake up the laptop three times for every time i suspend 
to ram. 

Example log snippet: 

[Fri Feb 17 15:06:38 2006] received event "button/lid LID 00000080 00000076"
[Fri Feb 17 15:06:38 2006] executing action "/etc/acpi/actions/sleep.sh button/lid LID 00000080 
00000076"
[Fri Feb 17 15:07:24 2006] action exited with status 0
[Fri Feb 17 15:07:24 2006] completed event "button/lid LID 00000080 00000076"
[Fri Feb 17 15:07:24 2006] received event "button/lid LID 00000080 00000077"
[Fri Feb 17 15:07:24 2006] executing action "/etc/acpi/actions/sleep.sh button/lid LID 00000080 
00000077"
[Fri Feb 17 15:08:07 2006] action exited with status 0
[Fri Feb 17 15:08:07 2006] completed event "button/lid LID 00000080 00000077"
[Fri Feb 17 15:08:07 2006] received event "button/lid LID 00000080 00000078"
[Fri Feb 17 15:08:07 2006] executing action "/etc/acpi/actions/sleep.sh button/lid LID 00000080 
00000078"
[Fri Feb 17 15:08:50 2006] action exited with status 0
[Fri Feb 17 15:08:50 2006] completed event "button/lid LID 00000080 00000078"

fwiw, the power button is the only way to wake up the thinkpad when it's in S3. With APM, it would 
wake up automatically when the lid was opened.
Comment 1 Len Brown 2006-08-09 21:43:42 UTC
please test with 2.6.18-rc4 or later -- there was a fix to discard
extra button events.

Re: power button vs lid
curious, because the log above is showing LID events, not BUTTON events.

Please paste the contents of /proc/acpi/wakeup
Comment 2 Eric Jorgensen 2006-08-25 19:41:08 UTC
Sorry for slow response. Been busy. 

I do not see multiple events in 2.6.18-pre4, thanks for the fix. 

As requested, the contents of /proc/acpi/wakeup

Device  Sleep state     Status
 LID       3            * enabled
SLPB       3            * enabled
PCI0       4            disabled
 USB       1            disabled
UART       3            disabled


I always suspend the thinpad with the lid. I briefly had a configuration that 
allowed me to resume by opening the lid, but in that configuration i had 
several issues with peripherals. I don't recall what the configuration was. 

In general, I can only resume by pressing the power button briefly. If you want 
to troubleshoot that as an additional bug, let me know what data you need, and 
I'll open another bug. 
Comment 3 Len Brown 2006-08-26 18:42:52 UTC
if LID and power button don't both work as wakeup devices, 
then it is a bug, go ahead and file it. 

Note You need to log in before you can comment on or make changes to this bug.