Laptop fails to suspend when lid already closed and AC removed

Bug #1451482 reported by Kim Nguyễn
8
This bug affects 1 person
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.

Revision history for this message
Kim Nguyễn (kim.nguyen) wrote :
Revision history for this message
Kim Nguyễn (kim.nguyen) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

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.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.0 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-rc2-vivid/

Changed in linux (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.