[MPlayer-dev-eng] [PATCH] Inhibit xscreensaver from activating

Arpi arpi at thot.banki.hu
Sun Feb 16 23:55:55 CET 2003


Hi,

> +#ifdef HAVE_X11
> +    if(inhibit_xscreensaver) {
> +      if(inhibit_xss_stamp < (unsigned long)(GetTimer() - 55000000) ) {
> +        int ret = fork();
> +        if(!ret) {
> +	  execlp( "sh", "sh", "-c",
> +                  "xscreensaver-command -deactivate >/dev/null 2>&1",
> +                  0 );
> +	}
> +        inhibit_xss_stamp = GetTimer();
> +      }
> +    }
> +#endif // HAVE_X11
> +

yep this is the nonsense 'ping' method invented by the xscreensaver author.
we've decided to refuse to support his broken brain bug.

anyway i disagree it's 55msec, it's longer unless you have an ideal system.
and anyway 55msec is loger than a frame time (33/40ms) so it will stop video
a bit every minute.

if you have to solve the fd problem, just killall -STOP xscreensaver.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
    "However, many people beg for its inclusion in Debian. Why?" - Gabucino
  "Because having new software in Debian is good." - Josselin Mouette
"Because having good software in Debian is new." - Gabucino


More information about the MPlayer-dev-eng mailing list