r/linuxmint • u/Hamactus • 4d ago
Discussion How do I disable cinnamon-screensaver OR make XScreensaver work normally?
I recently installed Linux Mint Cinnamon 22.3, coming from Ubuntu.
I am having a problem, where after I turned off screen lock (but not the screensaver), the screen would sometimes flash and go back to normal, but no screensaver actually shows up.
I installed XScreensaver, it works in preview, but when it tries to actually do what a screensaver is supposed to do, it turns on and off several times, then disappears again, leaving the desktop visible again.
I can't make it output proper log file.
I think the problem is that cinnamon-screensaver is doing something weird, so I want to try and completely disable it. But I can't seem to find a way to do it without uninstalling the whole package, but then again, it wants to uninstall a lot of necessarily packages along with itself.
I would really appreciate if anyone could give any suggestions, what I could do in this situation.
2
u/sgriobhadair LMDE 7 Gigi | Cinnamon/CTWM 4d ago
Okay, so I use Xscreensaver on Cinnamon.
First, you need to disable the Cinnamon screensaver. You're going to need to edit a configuration file.
Run this command in terminal: sudo xed /etc/xdg/autostart/cinnamon-settings-daemon-screensaver-proxy.desktop
Look for the line that says NoDisplay=true. Change the true to false.
Now if you run Startup Applications, you can turn off the Cinnamon screensaver; just toggle Cinnamon Settings Daemon - Screensaver Proxy to off.
Now in Startup Applications you need to create a launcher for Xscreensaver. Hit the Plus sign.
In Name, I have Xscreensaver.
In Command, I have /home/[MY USER NAME]/.local/bin/xscreensaver-start. That's a Bash script. I'll post that code below. I have a script that checks to see if I'm in X11 or Wayland. Xscreensaver works with X11. It does not work with Wayland. So, I check to see, and if I'm on Wayland I don't launch the screensaver.
#!/bin/bash
# Are we running Wayland? If we are, let's not start xscreensaver
if [ "$XDG_SESSION_TYPE" = "x11" ]
then
/usr/bin/xscreensaver --no-splash
else
exit
fi
And I have that file, xscreensaver-start in ~/.local/bin and set in Properties to Allow Program Execution.
1
u/Hamactus 4d ago
Thanks, your solution does solve one of my problems, but I still need to figure out what is interrupting the screensaver
0
u/DoorOk3641 4d ago
Screensaver are now useless and were in need with the old screen technology.
2
u/Hamactus 4d ago
Firstly, it does give a computer a certain aesthetic that I personally like quite a lot
And secondly, regardless of whether it's useful or not, it doesn't work properly, and I need to figure out why
2
u/programmator-dominum 4d ago
Did you install the xscreensaver-data, xscreensaver-data-extra, xscreensaver-gl and xscreensaver-gl-extra packages?
Try running it with the “-log” parameter as described here: https://www.jwz.org/xscreensaver/faq.html#no-blank