You are not logged in.
i'm running kodi 17 on devuan2.0.
while on kodi, devuan's screensaver kicks in every time, how do i prevent screensaver turning itself on?
Offline
Well, are you looking to just disable the screensaver completely? Just remove xscreensaver from whatever startup scripts or xdg autostart type stuff you have.
If you want it disabled only when running kodi, you could investigate running the command
xscreensaver-command -deactivate
periodically somehow.
I found that at https://wiki.archlinux.org/index.php/XS … a_playback, which had other ideas. It looks like Arch Linux also bundles up https://github.com/graysky2/kodi-prevent-xscreensaver which is really just a shell script which runs the above command every so many seconds.
This space intentionally left blank.
Offline
From the author's FAQ:
When you want to watch a movie, fire up xscreensaver-demo and select Mode: Disable Screen Saver from the option menu, which means not to blank the screen at all. When you're done watching the movie, re-select your previous mode.
https://www.jwz.org/xscreensaver/faq.html#dvd
And yes, jwz knows this is lame...
EDIT: better version of graysky's script:
#!/bin/sh
[ -z $(which xscreensaver-command) ] && exit 1
while sleep 49; do
if [ -n "$(pgrep kodi)" ]; then
xscreensaver-command -deactivate > /dev/null 2>&1
fi
done
POSIX ftw!
Last edited by Head_on_a_Stick (2020-03-13 20:16:18)
Brianna Ghey — Rest In Power
Offline