Laptop sleep on lid close apparently blocked by unity-settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-settings-daemon (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Since upgrading to 16.04LTS my HP 255 laptop no longer suspends when the lid is closed. The power management gui settings are correct, and suspend used to work perfectly in 14.04LTS.
Suspend is still available from the system menu, and works correctly when manually invoked from there or after a short power button press.
The reason I suspect unity-settings-
Who: neilw (UID 1000/neilw, PID 1669/unity-
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
I do not have multiple displays attached, xrandr gives;
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.07*+ 40.04
1280x720 59.86
1152x768 59.78
1024x768 59.92
800x600 59.86
848x480 59.66
720x480 59.71
640x480 59.38
HDMI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
The version installed is as follows;
unity-settings-
Installed: 15.04.1+
Candidate: 15.04.1+
Version table:
*** 15.04.1+
500 http://
100 /var/lib/
Curiouser and curiouser.
I've just tried plugging in an external display (for the first time since upgrading to 16.04).
Both gui and randr reported the correct display configuration and both displays worked.
Now that I've unplugged that display again, the systemd inhibit block has disappeared and the system will now suspend on lid close both on mains and battery power.
I shall test further, particularly to see if this behaviour survives a reboot.