[Vivid] laptop do not suspend if lid is closed before the AC is unplugged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-settings-daemon (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Consider the following PM configuration, set by the user from the control-center
* on Battery, when lid is closed, suspend
* on AC, when lif is closed, do nothing
On Trusty and Utopic, if the user first closes the lid and then unplugs its laptop, gsd-power-mangager correctly applies the "lid closed" policy in response to the AC unplug event
On Vivid, the laptop does not suspend.
I have tested it straight from the live-usb images. I booted on Trusty and Utopic, changed the default policy (which is to suspend even on AC on lid closed), closed the lid and then unplugged.
The same test with a Vivid live-usb images exhibits the bad behaviour.
After some digging I worked my way from ACPI events to Logind to Upower to unity-settings-
I belive the change in behaviour occurend when gsd-power-manager was updated to UPower 0.99, that is:
http://
The solution (at least a proof of concept) seems to also trigger the lid callback on AC events.
I'm attaching a trivial patch (lightly tested) which restores the expected behaviour. I'll upload it to my ppa for wider testing.
Note that this problem might also affect gnome-settings-
Related branches
- Iain Lane: Approve
-
Diff: 12 lines (+2/-0)1 file modifiedplugins/power/gsd-power-manager.c (+2/-0)
Changed in unity-settings-daemon (Ubuntu): | |
status: | New → Confirmed |
A patched unity-settings- daemon is available in my ppa.