[Bug 1148128] New: xfce4-power-manager doesn't lock screen on laptop lid close with xlock
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128 Bug ID: 1148128 Summary: xfce4-power-manager doesn't lock screen on laptop lid close with xlock Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Xfce Assignee: bnc-team-xfce@forge.provo.novell.com Reporter: ginkobonsai@gmx.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I like to use i3lock instead of xscreensaver, so I removed xscreensaver from my TW 20190822 and installed i3lock and i3lock-xlock-compat. I also set xfce's LockCommand to /usr/bin/xlock in order to use it: xfconf-query -c xfce4-session -p /general/LockCommand -s "/usr/bin/xlock" --create -t string Now the xfce action buttons lock my screen perfectly fine, but closing my laptop's lid does nothing. Laptop lid actions set in the Power Manager settings are "Lock screen" for both battery and plugged in. Running the power manager in debug mode and opening/closing the lid twice produces this: xfce4-power-manager --no-daemon --debug > pm.log 2>&1 [...] TRACE[xfpm-power-common.c:189] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic TRACE[xfpm-manager.c:725] xfpm_manager_tray_update_icon(): updating icon TRACE[xfpm-manager.c:709] xfpm_manager_tray_update_tooltip(): updating tooltip TRACE[xfpm-manager.c:442] xfpm_manager_lid_changed_cb(): LID close event: ((XfpmLidTriggerAction) LID_TRIGGER_LOCK_SCREEN) TRACE[xfpm-manager.c:475] xfpm_manager_lid_changed_cb(): LID opened: ((XfpmLidTriggerAction) LID_TRIGGER_LOCK_SCREEN) TRACE[xfpm-dpms.c:279] xfpm_dpms_force_level(): start TRACE[xfpm-dpms.c:311] xfpm_dpms_force_level(): No need to change DPMS mode, current_level=0 requested_level=0 TRACE[xfpm-manager.c:442] xfpm_manager_lid_changed_cb(): LID close event: ((XfpmLidTriggerAction) LID_TRIGGER_LOCK_SCREEN) TRACE[xfpm-manager.c:475] xfpm_manager_lid_changed_cb(): LID opened: ((XfpmLidTriggerAction) LID_TRIGGER_LOCK_SCREEN) TRACE[xfpm-dpms.c:279] xfpm_dpms_force_level(): start TRACE[xfpm-dpms.c:311] xfpm_dpms_force_level(): No need to change DPMS mode, current_level=0 requested_level=0 [...] Running xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch gives: false Looks to me like xfce4-power-manager doesn't use /general/LockCommand? Is there a workaround to tell xfce4-power-manager to use xlock to lock the screen on laptop lid close? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128#c1
Maurizio Galli
Is there a workaround to tell xfce4-power-manager to use xlock to lock the screen on laptop lid close?
I'm not familiar with i3 lock nor xlock but I believe it should work. The script called for locking is in /usr/bin/xflock4. You could place a custom version of such script in /usr/local/bin/xflock4 Please report this upstream at https://bugzilla.xfce.org/ for xfce4-session Seife, do you have any input? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128#c2
--- Comment #2 from Stefan Seyfried
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128
http://bugzilla.opensuse.org/show_bug.cgi?id=1148128#c3
Ginko Bonsai
participants (1)
-
bugzilla_noreply@novell.com