Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-02-26 10:58:52

guayaseal
Member
Registered: 2022-07-14
Posts: 17
LinuxFirefox 134.0

screensaver

According to Arch documentation ( https://wiki.archlinux.org/title/Xfce#Lock_the_screen ):

xflock4 is the reference Shell script which is used to lock an Xfce session.

It tries to lock the screen with either xfce4-screensaver (also part of xfce4-goodies), xscreensaver or light-locker. It consecutively looks for the corresponding binary or exits with return code 1 if it fails to find any of these.

Well. I have this script. I have xscreensaver installed. For the lock screen to work I need to start it first manually (or by entering screensaver's configuration) but I doesn't start via applet/action buttons/etc by default.

What I'm missing? How can I debug it?

(BTW: on one of my notebooks I works, on two others - doesn't; my colleagues experience the same problem...)

Offline

#2 2025-02-26 13:15:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,791
LinuxFirefox 134.0

Re: screensaver

The screensaver daemon must be running. Is it in your autostart list and enabled?


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2025-02-26 13:18:52

guayaseal
Member
Registered: 2022-07-14
Posts: 17
LinuxFirefox 134.0

Re: screensaver

Could you, please, say more precisely: what "autostart list" do you mean?

Offline

#4 2025-02-26 13:44:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,791
LinuxFirefox 134.0

Re: screensaver

Settings Manager > Session and Startup > Autostart Applications. This lists all the applications/programs that start when you login. Check to see if xscreensaver is listed there and whether its enabled.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2025-02-26 13:48:46

guayaseal
Member
Registered: 2022-07-14
Posts: 17
LinuxFirefox 134.0

Re: screensaver

If I do it manually then it works. But take a look at the fragment of the documentation I have pasted in the first post.

Offline

#6 2025-02-26 14:28:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,791
LinuxFirefox 134.0

Re: screensaver

Yes, for this to work, the screensaver of choice must be running its daemon (listening service) so to initiate the screensaver action - just like when you run it manually. If you don't want to have to run it manually first, then you can autostart the daemon at log in so that xflock4 will work later on. To do so, you would either enable or create an entry in the Autostart Applications dialog.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2025-02-27 07:33:15

guayaseal
Member
Registered: 2022-07-14
Posts: 17
LinuxFirefox 134.0

Re: screensaver

How about enabling it by default for all users (existing and newly created)?

Offline

#8 2025-02-27 11:25:37

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,791
LinuxFirefox 135.0

Re: screensaver

That would be something that the xscreensaver package should do. It could be accomplished simply by placing a .desktop file in /etc/xdg/autostart or creating a systemd user unit.

Have you tried xfce4-screensaver? It is more integrated and a part of Xfce.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2025-03-06 20:24:25

guayaseal
Member
Registered: 2022-07-14
Posts: 17
LinuxFirefox 136.0

Re: screensaver

I have copied:

# cp /usr/share/applications/xscreensaver.desktop /etc/xdg/autostart/

and added "--no-splash" option to it and it works perfectly fine for my home computers. But it hasn't resolved the problem on the computers at work. Why?

Offline

#10 2025-03-06 21:55:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,791
LinuxFirefox 135.0

Re: screensaver

Which distro are you using at work? Some distros use different xdg directory locations.

echo $XDG_CONFIG_DIRS

Is there an entry in Settings Manager > Session and Startup > Application startup for xscreensaver and is it enabled?


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 559.55 KiB (Peak: 576.39 KiB) ]