** Description changed: - I'm using 18.04 on Lenovo T480. Suspending on lid close is not possible with external monitor attached. + 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 + 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.
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1819471 Title: gsd-power is not using lid-close-suspend-with-external-monitor value To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1819471/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs