gsd-power is not using lid-close-suspend-with-external-monitor value

Bug #1819471 reported by Karol Pucyński
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
New
Unknown
systemd
New
Undecided
Unassigned
gnome-settings-daemon (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I'm using 18.10 on Lenovo T480. Suspending on lid close is not possible with external monitor attached.
Even if everything is set properly:
$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
true
$ dconf read /org/gnome/settings-daemon/plugins/power/lid-close-suspend-with-external-monitor
true

gsp-power is still blocking system suspend:
$ systemd-inhibit --list --mode=block
     Who: kpucynski (UID 1000/kpucynski, PID 1956/gsd-power)
    What: handle-lid-switch
     Why: Multiple displays attached
    Mode: block

Even with LidSwitchIgnoreInhibited=yes set systemd-logind is not ignoring it:

$ grep -v ^# /etc/systemd/logind.conf

[Login]
HandleSuspendKey=suspend
HandleHibernateKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend
SuspendKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes

$ journalctl -f -u systemd-logind
mar 11 16:08:43 kp-t480 systemd-logind[4822]: Lid closed.
mar 11 16:08:43 kp-t480 systemd-logind[4822]: device-enumerator: scan all dirs
mar 11 16:08:43 kp-t480 systemd-logind[4822]: device-enumerator: scanning /sys/bus
mar 11 16:08:43 kp-t480 systemd-logind[4822]: device-enumerator: scanning /sys/class
mar 11 16:08:43 kp-t480 systemd-logind[4822]: External (1) displays connected.
mar 11 16:08:43 kp-t480 systemd-logind[4822]: Refusing operation, handle-lid-switch is inhibited.
mar 11 16:08:43 kp-t480 systemd-logind[4822]: device-enumerator: scan all dirs
mar 11 16:08:43 kp-t480 systemd-logind[4822]: device-enumerator: scanning /sys/bus
mar 11 16:08:43 kp-t480 systemd-logind[4822]: device-enumerator: scanning /sys/class
mar 11 16:08:43 kp-t480 systemd-logind[4822]: Refusing operation, handle-lid-switch is inhibited.

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

Thank you for your bug report, the key is ubuntu specific and buggy, but the feature request is also discussion upstream on https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/111

Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in gnome-settings-daemon:
status: Unknown → New
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.