Screensavers on Wayland
2026-06-23 15:44 UTC
Replies (11)
-
@Scipitie@lemmy.dbzer0.com 2026-06-23 15:52
If there are any plans I don’t know but what I can tell you is that there’s currently no way to circumvent these “restrictions” - because there are none. Although from a user perspective it feels like something got taken away from Wayland perspective it’s the other way arou d: screensavers want rights that Wayland simply doesn’t provide to any user space application. A screensaver needs to track user interaction globally (for the timeout), overlay over existing apps, manipulate viewport properties, manage the session and similar things, depending on the details. Depending on what you want there might be ways to hack something together though. Then there’s of course the disclaimer that although I’m not ab LLM my training data (aka experience) might be out of date :D
-
@Kongar@lemmy.dbzer0.com 2026-06-23 16:18
Full screensaver functionality is tough on Wayland, if not impossible right now. They apparently don’t know how to have fun over there. That said, it’s worth noting that you can install dosbox, fire up win3.11 on it, and then run your nostalgic screensavers full screen from there. Afterdark and whatnot. Dosbox keeps the computer alive so the screen saver runs forever and the computer doesn’t lock - so it’s not really full functionality. But if you’re just looking for some fun - that works great. (I do love my flying toasters)
-
@picandocodigo@lemmy.world 2026-06-23 15:49
Until they fix being able to use screensavers -XScreenSaver at the very least- on Wayland, we’ll never have the “Year of Linux on the desktop".
-
@Zamundaaa@discuss.tchncs.de 2026-06-23 16:34
What do you mean? Screen savers have been possible for many, many years…
-
@Maiq@piefed.social 2026-06-23 16:37
Just installed xscreensaver and it works more or less. i don’t think it can screenlock but haven’t tested everything. Just popped up a terminal and ran xscreensaver-settings and it asked if I wanted to run the server. Picked a few savers off the list changed the times and waited. Only working on one desktop but that doesn’t bother me. A little buggy, hard to get it to stop with a mouse wiggle or keypress. Have to switch desktops and kill the pid. Better than it was a year ago though. Might work better in kde than in hyprland? Using Arch, wayland, xorg-wayland
-
@SnotFlickerman@lemmy.blahaj.zone 2026-06-23 16:56
I’m on Kubuntu 24.04 and I got xscreensaver working in Wayland. You have to log into an X11 session first and set up xscreensaver how you want it. Once it’s set up and working, log out of the X11 session and log back into the Wayland session. Go to the System Settings and look for Autostart. Make an autostart entry for xscreensaver here. Then check the xscreensaver.desktop file that created and make sure it looks like this: [Desktop Entry] Comment[en_US]= Comment= Exec=xscreensaver --no-splash GenericName[en_US]= GenericName= Icon=xscreensaver MimeType= Name[en_US]=XScreenSaver Name=XScreenSaver Path= StartupNotify=true Terminal=false TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username= X-Ubuntu-Gettext-Domain=xscreensaver As long as this is set to autostart, you will have a working xscreensaver in Kubuntu, if nothing else. I cannot confirm it working on any other systems and you absolutely do need both X11 and Wayland as sign in options for this to work. If you want to change settings you will have to switch back to X11 or I use scripts to edit the .xscreensaver configuration file. For example I wrote two small python scripts for changing the length of time before the screen saver activates, and use cron to run them in the morning and evening. This is the one for the morning: import os import sys import fileinput # Read in the file with open('.xscreensaver', 'r') as file: filedata = file.read() # Replace the target string filedata = filedata.replace('timeout: 0:05:00', 'timeout: 1:00:00') # Write the file out again with open('.xscreensaver', 'w') as file: file.write(filedata) and this is what it would look like in your crontab: 0 7 * * * python3 /home/yourusername/screensavermorning.py
-
@tekato@lemmy.world 2026-06-23 18:31
Set a systemd timer to start mpv in fullscreen with whatever you want as the screensaver in a loop
-
@Bonje@lemmy.world 2026-06-23 20:31
Might be able to with a quickshell. Some of them have idle timeout plugins then just start mpv or terminal pipes in full screen.
-
@communism@lemmy.ml 2026-06-23 20:33
There’s screen lockers. Is there a reason why programs like swaylock couldn’t play an animation instead of showing a static image? Am I missing a reason why it’s structurally impossible?
-
@Eggymatrix@sh.itjust.works 2026-06-24 20:04
Why are screensavers still used? Nothing that causes pixels to change color “saves” anything these days, unless you have some kind of old LCD display. Wayland has no limitations for how a traditional screensaver should work, nobody bothered to implement one, that is why there isn’t one yet IMO. Hate to be the guy but if you need one you either need to hack something on top of xscreensaver like others in the thread said, or implement something native for those that need it to protect their old monitor. That said, in case you don’t actually need a screensaver but a looping video for a kiosk type of situation you might just setup a videoplayer in a loop and turn off screen power saving.
-
@isVeryLoud@lemmy.ca 2026-06-29 05:06
It would need to be implemented in the compositor. Either as a Wayland protocol that a patched version of xscreensaver can hook into, or baked into the compositor. The compositor is the most analogous replacement to the xorg server. It would be Mutter on GNOME or KWin on KDE.