Bug 9232 - Laptop powers-on when closing lid - Acer Aspire 1511LMi
Summary: Laptop powers-on when closing lid - Acer Aspire 1511LMi
Status: CLOSED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Off (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-27 05:04 UTC by Christian Casteyde
Modified: 2008-06-13 21:33 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.24-rc1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
acpidump for 2.6.23.1 (108.27 KB, text/plain)
2007-10-29 12:26 UTC, Christian Casteyde
Details
wakeup for 2.6.23.1 (287 bytes, text/plain)
2007-10-29 12:27 UTC, Christian Casteyde
Details
Now the dumps for 2.6.24-rc1 (108.27 KB, text/plain)
2007-10-29 12:33 UTC, Christian Casteyde
Details
wakeup for 2.6.24-rc1 (287 bytes, text/plain)
2007-10-29 12:34 UTC, Christian Casteyde
Details

Description Christian Casteyde 2007-10-27 05:04:46 UTC
Most recent kernel where this bug did not occur:
2.6.23.1 (this is a regression).

Distribution:
Bluewhite64 12 (64 bit version of Slackware 12).

Hardware Environment:
Laptop Acer Aspire 1511LMi, Athlon 64 3000, nForce3 chipset

Software Environment: None / hardware bug

Problem Description:
When I boot the laptop, then issue a shutdown request (from KDE main menu), the laptop shuts down and power off correctly. However, once it is off, it restarted as soon as I close the lid. So I have to reopen the lid to get access to the power button and force a power off by pressing it 5s. Then I can close the lid and it stays off.
So it seems the ACPI power off code issue a "restart on lid" (and maybe other kind events), even if the laptop was not suspended but really shut down. For information, suspend to RAM seem to work nicely (I use the lid event to go to hibernation mode, and the opening of the lid restarts correctly, but it should do it only after a suspend).

Steps to reproduce:
It may be hardware / BIOS dependant, but simply shuts down a laptop with "shutdown -Ph 0" then close the lid, it would restart.
Comment 1 Zhang Rui 2007-10-29 03:04:51 UTC
Hi, Christian,
Please attach the acpidump and the result of "cat /proc/acpi/wakeup".
Comment 2 Christian Casteyde 2007-10-29 12:26:43 UTC
Created attachment 13323 [details]
acpidump for 2.6.23.1

That is for comparison with a working kernel.
Comment 3 Christian Casteyde 2007-10-29 12:27:08 UTC
Created attachment 13324 [details]
wakeup for 2.6.23.1
Comment 4 Christian Casteyde 2007-10-29 12:33:23 UTC
Created attachment 13325 [details]
Now the dumps for 2.6.24-rc1
Comment 5 Christian Casteyde 2007-10-29 12:34:10 UTC
Created attachment 13326 [details]
wakeup for 2.6.24-rc1
Comment 6 Christian Casteyde 2007-10-31 11:52:31 UTC
Just for info:
As requested in http://bugzilla.kernel.org/show_bug.cgi?id=9221, I added CONFIG_POWER_SUPPLY and battery in my config. I re-did the test, the lid closure still restarts the computer (not related to that misconfiguration therefore).
Comment 7 Christian Casteyde 2007-11-04 13:41:07 UTC
An interesting new fact that can help:
If I unplug the power cord of the laptop before shutting it down, then it doesn't restart when I close the lid. It restarts only when it was shut down with the cord plugged in, not when operating on battery.
Quite curious, isn't it?
Comment 8 Zhang Rui 2007-11-06 22:11:33 UTC
Since this is a regression from 2.6.23 to 2.6.24-rc1.
Christian, can you do a git bisect to found out which patch caused this regression please?
Comment 9 Christian Casteyde 2007-11-07 10:22:15 UTC
How do you do a git bitsect please?
I guess this would be only on ACPI patches?
Comment 10 Christian Casteyde 2007-11-07 10:55:24 UTC
Never mind, the problem has disappeared with 2.6.24-rc2.
Don't know why, but I cannot reproduce it anymore, so all is fine.
Comment 11 Zhang Rui 2007-11-07 17:13:58 UTC
OK.
Close this bug and mark it as CODE_FIX.
Christian,
Please reopen it if you can reproduce this problem.

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