Comment 127 for bug 1574120

Revision history for this message
Gaute (gaute-div) wrote :

I have a similar problem on 18.04 on a Lenovo V330.
Suspend works fine without external monitor, but no matter what I do it's inhibited when its connected. I want it to suspend always.

$ grep -i lid /etc/systemd/logind.conf
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#LidSwitchIgnoreInhibited=yes

$ dconf read /org/gnome/settings-daemon/plugins/power/lid-close-suspend-with-external-monitor
true

$ systemd-inhibit --list --mode=block
<snip>
     Who: gdm (UID 121/gdm, PID 5935/gsd-power)
    What: handle-lid-switch
     Why: Multiple displays attached
    Mode: block

     Who: gaute (UID 1000/gaute, PID 1713/gsd-power)
    What: handle-lid-switch
     Why: Multiple displays attached
    Mode: block

Only the second of these goes away when monitor is unplugged, but lid close still works.

This is possibly due to a bug in gsd-power which is mentioned in the following guthub issues.
https://github.com/systemd/systemd/issues/7137
https://github.com/linuxmint/cinnamon-settings-daemon/issues/224
https://github.com/linuxmint/Cinnamon/issues/7347