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

screensaver that works with mplayer
http://forums.linhes.org/viewtopic.php?f=15&t=16888
Page 1 of 1

Author:  graysky [ Sun Oct 07, 2007 6:29 am ]
Post subject:  screensaver that works with mplayer

I posted on this over a year ago, but have yet to find something that actually works without coming on mplayer playback.

The xscreensaver described on this KM wiki article works (don't install it via apt-get though) and it is smart such that when you're using the mythtv player, it doesn't come on -- it even knows when its paused and does come on in that case.

Now if there were only some way to get it to work with mplayer such that it would know when it is paused. It currently doesn't come on unless paused. From there the only key on my gray remote that will take it out of screensaver is the exit key which also kills mplayer.

What are you guys doing out there in this regard if anything?

Author:  Kirk [ Sun Oct 07, 2007 8:43 pm ]
Post subject: 

Howdy,

Try adding this to your command line;

Code:
mplayer --stop-xscreensaver


Or add this to your ~/.mplayer/config file

Code:
stop-xscreensaver = 1


And for xine modify your ~/.xine/config file and uncomment this;

Code:
gui.screensaver_timeout:10


Regards,
Kirk.

Author:  graysky [ Mon Oct 08, 2007 1:41 am ]
Post subject: 

Kirk wrote:
Howdy,

Try adding this to your command line;

Code:
mplayer --stop-xscreensaver


Or add this to your ~/.mplayer/config file

Code:
stop-xscreensaver = 1


Hi Kirk - I should have mentioned I'm doing that as-per the wiki article. On my system, the addition of the
Code:
stop-xscreensaver = 1
line to my ~/.mplayer/config does indeed keep xscreensaver from starting if mplayer is playing back a file, but if I pause mplayer, xscreensaver will turn on (which is what I want) but it WON'T turn off by any key on my grey remote (hauppauge) except for the "exit" key which also has the effect of stopping the playback of mplayer.

Author:  Kirk [ Mon Oct 08, 2007 1:56 am ]
Post subject: 

Ah, I see. Should have read your links ;)

How about adding an mplayer line to your lircrc config and setting it to do something useless, but that which is enough to bring your display out of screensaver mode. Dunno if it would work or not, just a thought. Checkout;

Code:
mplayer -input cmdlist


it might give you some ideas.. get_time_pos or something like that might work?

On second though, you might need to make that an xscreensaver line to bring you out of that program..

Author:  graysky [ Mon Oct 08, 2007 12:51 pm ]
Post subject: 

Thanks for the suggestions. I have no idea why any button on the remote doesn't work to bring it out of screensaver mode. Must be something to do with mplayer and how it handles the output from lirc. It's as if mplayer is "in front" of xscreensaver in this regard -- taking the output while xscreensaver runs but doesn't listen for events from lirc. I can actually pause, unpause, FF, REV, etc. with mplayer while the screensaver is active.

Author:  Kirk [ Mon Oct 08, 2007 5:40 pm ]
Post subject: 

Another idea. I know you want the screensaver to come on if paused, but if you could live without that you could make a wrapper script that kills xscreensaver before starting mplayer, then restarts it when mplayer exits.

Author:  stevetv [ Fri Oct 12, 2007 3:41 am ]
Post subject: 

if you upgrade to the most recent mplayer, that option is enabled by default. but then upgrading mplayer might break something... so adding stop-xscreensaver = 1 to the mplayer config file is probably a better idea.

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