! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Stops working after system suspends and resumes
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-screensaver
Component:
General

Comments

Description doug.hs 2019-06-23 16:09:02 CEST
DESCRIPTION:
It is no longer running after the system suspends and resumes. After suspend, any attempts at executing `xflock`, be it through the usual keyboard shortcuts or menu buttons, do nothing.

Running `xfce4-screensaver-command --lock` returns:

** Message: 11:00:34.866: Screensaver is not running!

As a consequence, whenever the system suspends, the screen doesn't lock. If I suspend my system right now and walk away, anyone who gets a hold of my computer will find the session completely unlocked.

See system log attached.

SYSTEM:
I am running Arch Linux with the xfce4-screensaver AUR package (version 0.1.4-2): https://aur.archlinux.org/packages/xfce4-screensaver/

ADDITIONAL INFO:
The screen locks successfully when left idle for 10 minutes. After 30 minutes, it suspends. Upon resuming, xfce4-screensaver is no longer running.
Comment 1 doug.hs 2019-06-23 16:12:14 CEST
Created attachment 8669 
output of `journalctl | grep screensaver`

Attached `journalctl | grep screensaver` output.
Comment 2 unhammer+dill 2019-10-29 09:28:41 CET
Also, the return value of `xfce4-screensaver-command --lock` is 0 when xfce4-screensaver isn't running, so xflock4 never tries the next possible lock command, just exits with 0 and no output.
Comment 3 unhammer+dill 2019-10-29 09:38:38 CET
(a quick workaround is to use 
$ xfconf-query -c xfce4-session -p /general/LockCommand -s 'light-locker-command --lock' 
to make xflock4 go back to light-locker until this is fixed)
Comment 4 Jarno Suni 2020-02-08 23:32:56 CET
(In reply to unhammer+dill from comment #2)
> Also, the return value of `xfce4-screensaver-command --lock` is 0 when
> xfce4-screensaver isn't running, so xflock4 never tries the next possible
> lock command, just exits with 0 and no output.

See Bug #15945
Comment 5 martin.babutzka 2020-02-09 22:06:41 CET
Can confirm this bug. Actually the xfce4-screensaver server just stops working. A manual restart (e.g. in user space with nohup) makes it working again. Still not a good thing because you can occassionally not notice your PC actually locked which makes the safety of the "lock" questionable. Consider increasing the priority.

Is it the best way to run the xfce4-screensaver on login in userspace via /etc/xdg/autostart? Maybe a systemd service autorestarting itself is more reliable as long as the screenlocker server is instable.

Next time the server crashes I will try to get a log of it.
Comment 6 Michael Wyraz 2020-02-25 20:17:02 CET
Maybe related: #16102
Comment 7 Sean Davis editbugs 2020-03-23 00:52:37 CET
Fairly certain this is related to #16102. Marking as a duplicate.

*** This bug has been marked as a duplicate of bug 16102 ***

Bug #15633

Reported by:
doug.hs
Reported on: 2019-06-23
Last modified on: 2020-03-23

People

Assignee:
Sean Davis
CC List:
6 users

Version

Attachments

Additional information