pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/43804 CVS commit: pkgsrc/multimedia/mplayer

The following reply was made to PR pkg/43804; it has been noted by GNATS.

From: Matthew Mondor <>
Subject: Re: PR/43804 CVS commit: pkgsrc/multimedia/mplayer
Date: Sat, 6 Nov 2010 16:02:09 -0400

 On Sat,  6 Nov 2010 18:10:05 +0000 (UTC)
 Pierre Pronchery <> wrote:
 >  I have compiled mplayer on NetBSD 5.1_RC4, pkgsrc-2010Q2 with this fix
 >  applied, and for some reason it still does not prevent the screensaver
 >  from blanking the screen. I'm investigating...
 I checked briefly the mplayer code and it seems that if the configure
 script is able to invoke XScreenSaverSuspend() in a test program, it
 will link against the libXss library automatically (and then uses the
 XScreenSaver(3)/Xss(3) API).  This is only expected to work with screen
 savers which support the Xss API, or for which the XResetScreenSaver
 API can be used as heartbeat.  mplayer is already linked against libXss
 here, but not using any screensaver other than DPMS, I can't confirm it
 Does ldd(1) show mplayer is also linked to libXss?  Also, was
 libXss already installed when you built/installed before the screen
 saver?  Because that screensaver also should use the same library to
 register itself for this to work.  I think that adding the buildlink
 include for libScrnSaver (although that only should affect modular-x11
 users, as this library is already part of base-x11) should have fixed
 this part on the mplayer-side, but perhaps that your screensaver also
 needs a similar fix?
 Alternatively, if the above will not work, it is possible to tell a
 third party screensaver that activity is being done with a custom
 command (the examples in the mplayer(1) manual page using the
 -heartbeat-cmd option).
 The following will unfortunately not help any about this PR, but a
 simpler alternative would be to not use any screen savers and instead
 use X11 native DPMS support, which mplayer also toggles (this is what I
 use).  I.e. using in ~/.xinitrc:
 xset +dpms
 xset dpms 0 0 3600
 xset s off

Home | Main Index | Thread Index | Old Index