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

Adam Tlałka atlka at pg.gda.pl
Thu Dec 20 15:58:18 CET 2007


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.
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.
I am not using KDE now so I can't tell if it works with its screensaver
but somebody should check this.
DPMS and blanking suspending works OK.
gnome-screensaver program should be patched to monitor internal X-server
counters so this method could be used.

Regards
-- 
Adam Tlałka       mailto:atlka at pg.gda.pl    ^v^ ^v^ ^v^
System  & Network Administration Group       - - - ~~~~~~
Computer Center, Gdańsk University of Technology, Poland
PGP public key:   finger atlka at sunrise.pg.gda.pl





More information about the MPlayer-dev-eng mailing list