Public bug reported: Using a pure install of the "xfce4" and "xfce4-power-manager" packages after a clean install of Ubuntu 18.04 LTS does not lock the screen when closing a laptop lid without manually adding the following property to the local or global xfconf database(/etc/xdg/xfce4/xfconf/xfce- perchannel-xml/xfce4-session.xml):
<property name="LockCommand" type="string" value="xscreensaver-command -lock"/> This property is undiscoverable and not well documented, if at all. There was a patch to add this property back in 2015 @ https://git.xfce.org/xfce/xfce4-session/commit/settings/xfce4-session.xml?id=570093ffafa8a6226ce9dd0ee29e9e64539d4bc9, but it does not appear to be in the current Ubuntu source. Manually adding this prpoerty is accomplished by the following command: $xfconf-query -c xfce4-session -p /general/LockCommand -s 'xscreensaver- command -lock' -v -n -t string Without this parameter and a named running screen locking daemon(XScreenSaver by default), the system will Suspend---but, not be locked upon Resume when triggered by a laptop lid-switch. Please add or patch the Ubuntu version to provide this basic functionality as "systemd-logind.service" is not overriding by default: $ systemd-inhibit --list Who: NetworkManager (UID 0/root, PID 936/NetworkManager) What: sleep Why: NetworkManager needs to turn off networks Mode: delay Who: ModemManager (UID 0/root, PID 895/ModemManager) What: sleep Why: ModemManager needs to reset devices Mode: delay Who: UPower (UID 0/root, PID 1564/upowerd) What: sleep Why: Pause device polling Mode: delay Who: xfce4-power-manager (UID 1000/chris, PID 1614/xfce4-power-man) What: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch Why: xfce4-power-manager handles these events Mode: block 4 inhibitors listed. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: xfce4-session 4.12.1-3ubuntu3 ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18 Uname: Linux 4.15.0-29-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.2 Architecture: amd64 CurrentDesktop: XFCE Date: Thu Jul 26 16:00:40 2018 InstallationDate: Installed on 2018-06-23 (33 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: xfce4-session UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: xfce4-session (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic suspend-resume -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1783895 Title: Screen locking fails on Suspend/Resume for laptop lid-switch To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
