<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=8156&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Xscreensaver kicking in when a video is playing with mpv or mplayer]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8156</link>
		<description><![CDATA[The most recent posts in Xscreensaver kicking in when a video is playing with mpv or mplayer.]]></description>
		<lastBuildDate>Wed, 19 Aug 2026 10:07:59 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Xscreensaver kicking in when a video is playing with mpv or mplayer]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=65251#p65251</link>
			<description><![CDATA[<p>Here&#039;s another (better) script:</p><div class="codebox"><pre><code>#!/bin/bash

sleep 40

sleep_period=4m

while true; do
 
###high=&quot;$(ps -eo %C --sort -%cpu | awk &#039;NR==2&#039;)&quot;

if ps -eo %C --sort -%cpu | awk &#039;NR==2 { exit !($1&gt;8); }&#039;; then
      xdotool key shift
  fi
  sleep ${sleep_period}
done</code></pre></div><p>I gave up a long time ago trying to fix that screensaver problem. If you&#039;re binge watching something it is most annoying. This script works better than the other one. I think. Using it now.</p>]]></description>
			<author><![CDATA[dummy@example.com (swanson)]]></author>
			<pubDate>Wed, 19 Aug 2026 10:07:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=65251#p65251</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xscreensaver kicking in when a video is playing with mpv or mplayer]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=65244#p65244</link>
			<description><![CDATA[<p>Thanks, but I &#039;m not looking for a workaround (there should not be any need for one as it&#039;s supposed to work without one just like it does with XFCE-screensaver), I&#039;m trying to figure out why XScreenSaver is not working correctly with the Devuan elogind and mplayer/mpv/firefox.</p><p>There seems to be a bug either in XScreenSaver or the Devuan elogind that causes this problem (or I&#039;m missing some crucial config option), but I lack the skills to debug this (unless someone can give me some hints on how to debug this).</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Tue, 18 Aug 2026 13:46:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=65244#p65244</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xscreensaver kicking in when a video is playing with mpv or mplayer]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=65243#p65243</link>
			<description><![CDATA[<p>Here&#039;s a script I use for just that:</p><div class="codebox"><pre><code>#!/bin/sh

sleep 600
while true #runs forever
do
	a=`cut -d &#039; &#039; -f 3 /proc/loadavg` #set a = load avg.
	if [ $(echo &quot;$a &gt; 0.25&quot; | bc) -ne 0 ]; then #If load avg. is less than .25
		xdotool key F2 &gt; /dev/null 2&gt;&amp;1
	else #If it&#039;s greater than .25
		sleep 600 #Wait ten minutes (600 seconds) and try again
	fi
done</code></pre></div><p>Start it at login. It requires Xdotool only. It needs some tweaking for your usecase. Load average might be different (or to taste)</p>]]></description>
			<author><![CDATA[dummy@example.com (swanson)]]></author>
			<pubDate>Tue, 18 Aug 2026 13:39:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=65243#p65243</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xscreensaver kicking in when a video is playing with mpv or mplayer]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=65241#p65241</link>
			<description><![CDATA[<p>not sure if this is the right repo,</p><p>but used something like this in the past to achieve the effect of disabling suspend during playback of video via mpv</p><p><a href="https://git.sr.ht/~anteater/mpv-inhibit-suspend" rel="nofollow">https://git.sr.ht/~anteater/mpv-inhibit-suspend</a></p><p>it is not for disabling screensaver, but could have the same effect. now on kde there it can be effected easily in tray, just activate @presentation mode&lt;<br />similarly, on mate, i use sometimes @caffeine to inhibit sleep bevaviour.</p><p>[color]<strong>---</strong>[/color]<br />OH sorry i did not read your question properly, please disregard my post.</p>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 18 Aug 2026 07:35:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=65241#p65241</guid>
		</item>
		<item>
			<title><![CDATA[Xscreensaver kicking in when a video is playing with mpv or mplayer]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=65237#p65237</link>
			<description><![CDATA[<p>My setup: Devuan Excalibur with XFCE</p><p>When I use the XFCE-screensaver and a video is playing using mplayer or mpv or even within firefox (for example a youtube video) the screensaver does not activate while the video is playing, and this is the desired behaviour.</p><p>If I disable the XFCE-screensaver and instead use Xscreensaver from the Devuan repo, the screensaver kicks in at the configured idle time even when a video is playing so basically it ignores the communication from mplayer/mpv/firefox to prevent it from kicking in.</p><p>The man-page of Xscreensaver says:</p><div class="quotebox"><blockquote><div><p>PLAYING VIDEOS<br />&#160; &#160; &#160; &#160;Likewise, if you have systemd(1) or elogind(8), then all of the popular&#160; video&#160; players&#160; and<br />&#160; &#160; &#160; &#160;web browsers will prevent XScreenSaver from blanking the screen while video is playing.</p><p>&#160; &#160; &#160; &#160;Both of these features require that xscreensaver-systemd(6) be able connect to D-Bus.</p></div></blockquote></div><p>xscreensaver-systemd is being started automatically by xscreensaver and I have elogind-daemon running (although I cannot tell whether it&#039;s able to connect to the D-Bus).</p><p>So to me it looks like it should work but maybe the Devuan elogind is not passing on the dbus messages or is somehow interfering in the process?</p><p>Has anyone succeeded in using Xscreensaver on Devuan with the screensaver not kicking in while videos are playing?</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Tue, 18 Aug 2026 00:07:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=65237#p65237</guid>
		</item>
	</channel>
</rss>
