Laptop fails to suspend when lid already closed and AC removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Hi,
I have configured my power-setting in the control panel as followed:
- on AC, when lid is closed : do nothing
- on Battery, when lid is closed : suspend
Now this works only if I close the lid when the AC has already been unplugged. If I close the lid first and unplug the laptop afterwards, the laptop does not go to suspend. This is a regression w.r.t. previous versions of ubuntu (until 14.10 included). This led me to put my still powered laptop in my bag (which in turn triggered the hardware failsafe when it overheated…).
From my understanding, this is a consequence of moving to systemd since systemd now handles the lid open/close event but do not handle AC plug/unplug.
A workaround is to install add the appropriate script in acpid's config file to detect that the AC has been unplugged, check the screen status [possibly find the current user of the laptop, check his power preferences] and suspend the laptop. The part in [ ... ] might be a bit tricky though.
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1451482
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.