Laptop sleep on lid close apparently blocked by unity-settings

Bug #1577906 reported by Neil Woolford
6
This bug affects 1 person
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-daemon is blocking the lid close action is that systemd-inhibit gives the following output.

     Who: neilw (UID 1000/neilw, PID 1669/unity-settings-)
    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-daemon:
  Installed: 15.04.1+16.04.20160209-0ubuntu1
  Candidate: 15.04.1+16.04.20160209-0ubuntu1
  Version table:
 *** 15.04.1+16.04.20160209-0ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Neil Woolford (neil-neilwoolford) wrote :

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.

Revision history for this message
Neil Woolford (neil-neilwoolford) wrote :

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.

This correct behaviour has now survived a cold boot.

So perhaps just one of those things - the settings appear to have sorted themselves out after adding and removing an external monitor.

I shall leave this open just in case it helps anyone else.

Love and peace,

Neil

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, could you add a ~/.cache/upstart/unity-settings-daemon.log next time you get the issue?

Changed in unity-settings-daemon (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Neil Woolford (neil-neilwoolford) wrote :

I'm afraid it's not recurred. I think it may just have been a one-off glitch, perhaps related to the upgrade process to 16.04.

If the problem returns I'll file more details as requested.

Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, closing then, feel free to reopen or send a new bug if you get the issue again though

Changed in unity-settings-daemon (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Neil Woolford (neil-neilwoolford) wrote :

Cool. The problem hasn't recurred.

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.