[MPlayer-dev-eng] [PATCH] Use XScreenSaverSuspend if supported

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Dec 20 16:45:18 CET 2007


Hello,
On Thu, Dec 20, 2007 at 03:58:18PM +0100, Adam Tlałka wrote:
> Dnia 20-12-2007, Cz o godzinie 14:22 +0100, Reimar Döffinger pisze:
> > I also added a QueryExtension because the documentation says without it
> > the effects of the functions are undefined.
> > I advise you to not ignore this, because I intend to apply soon and then
> > the KDE-specific hack _will_ be removed unless you have exceptionally
> > good reasons not to ("KDE does not support disabling via
> > XScreenSaverSuspend" does not count).
> 
> A simpler method is usage of periodical call of XResetScreenSaver
> function which does not need special X-server extension.

Yes, but these periodical calls are a bit ugly. But yes, replacing
xscreensaver_heartbeat for old X versions by this is a possible next step.

> It resets internal X-server counters so if KDE screensaver can see them
> it should work out of the box. Also DPMI and blanking will be disabled
> in case of not using any screensaver program so there is no need for
> special DPMI handling code in mplayer.

Should be the same with XScreenSaverSuspend except that it does not need
to be called periodically.

> gnome-screensaver program should be patched to monitor internal X-server
> counters so this method could be used.

There seems to be some resistance to this from what I heard since
reportedly the X developers themselves are not really "pushing" these
extensions either...

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list