2019-03-11 15:10:25 |
Karol Pucyński |
description |
I'm using 18.04 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 |
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. |
|