LinHES Forums
http://forum.linhes.org/

getting mplayer and xscreensaver to talk under R5.5
http://forum.linhes.org/viewtopic.php?f=3&t=18649
Page 1 of 1

Author:  graysky [ Sat Jul 26, 2008 11:21 am ]
Post subject:  getting mplayer and xscreensaver to talk under R5.5

Been using R5.5 for a while now and I had to do a mythrestore after f*cking up my nvidia settings (openGL and Qt painter). Anyway, after the successful restore, I was back in my frontend under the Qt painter watching some vids under mplayer when my xscreensaver turned on!

I have my .mplayer/config set with the "stop-xscreensaver=1" line, but it seems to have no effect now. I also verified that xscreensaver starts before mythwelcome in my .fluxbox/apps so it's not that....

Anyway, after googling a bit I found the solution in this thread. You need to add the following line to your ~/.mplayer/config since the old "stop-xscreensaver=1" apparently doesn't work with recent builds of mplayer:

Code:
heartbeat-cmd="xscreensaver-command -deactivate > /dev/null"


For your reference, here is my ~/.mplayer/config in its entirety:

Code:
monitoraspect=1.33333333333333
# stop-xscreensaver = 1
heartbeat-cmd="xscreensaver-command -deactivate > /dev/null"


Now the screensaver stay off when watching vids through mplayer, but does come on in mythfrontend when it's idle for the specified time.

Author:  tjc [ Sat Jul 26, 2008 11:32 am ]
Post subject: 

I'm afraid this might be my fault. We actually had a problem with this mplayer option at one point in the testing cycle and I added a restore fixup to knock that line out. If you look in that directory you _should_ find a backup file called /home/mythtv/.mplayer/config~ with the original version... :oops:

BTW - For reference, the correct version of the option is:
Code:
heartbeat-cmd="/usr/bin/xscreensaver-command -deactivate > /dev/null"

Author:  graysky [ Sat Jul 26, 2008 1:36 pm ]
Post subject: 

Thanks for the reply, tjc. I edited the first post of the thread with the complete command you mentioned (although it seems to work just fine without the rest of it).

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/