[Mplayer-users] DPMS is not disabled

Jason Lunz j at falooley.org
Wed Aug 29 00:18:55 CEST 2001


jkol5223 at menza.mff.cuni.cz said:
> about one month ago I wrote about observation, that -vo sdl does not
> disable DPMS. It was quite unclear where the problem is, because I had
> just upgraded my X to 4.1.0. Now I have back the 4.0.3  version that
> worked well with some older versions of mplayer and DPMS is still
> enabled when using x11/xv/sdl output (checked with xset q). The
> screensaver is disabled. Is there anyone who sees the same behaviour?

In X 4.1, dpms apparently no longer requires linking with -lXdpms so the
configure script doesn't work right. This patch to the CVS configure
script makes it work on X 4.1, but it will fail to detect DMPS on
X <= 4.0.3...someone with more time than me should make it work either
way.

Jason

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.154
diff -u -r1.154 configure
--- configure	27 Aug 2001 16:51:10 -0000	1.154
+++ configure	28 Aug 2001 22:24:50 -0000
@@ -828,7 +828,7 @@
 
 if [ $_x11 = yes ]; then
 
-$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms $_socklib > /dev/null 2>&1 && _xdpms=yes
+$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext $_socklib > /dev/null 2>&1 && _xdpms=yes
 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv $_socklib > /dev/null 2>&1 && _xv=yes
 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&1 && _vm=yes
 
@@ -1637,11 +1637,10 @@
 fi
 
 if [ $_x11 = yes ]; then
+  _x11lib='-lX11 -lXext'
   if [ $_xdpms = yes ]; then
-    _x11lib='-lX11 -lXext -lXdpms'
     _have_xdpms='#define HAVE_XDPMS 1'
   else
-    _x11lib='-lX11 -lXext'
     _have_xdpms='#undef HAVE_XDPMS'
   fi
 fi

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list