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

getting xscreensaver to stop when mplayer is active (R6)
http://forums.linhes.org/viewtopic.php?f=6&t=19658
Page 1 of 1

Author:  graysky [ Sat Mar 07, 2009 9:54 am ]
Post subject:  getting xscreensaver to stop when mplayer is active (R6)

I'm using the mplayer-vdpau-nogui and the xscreensaver packages from the LinHES distro. Under R5.5 I only needed to add the following to my ~/.mplayer/config to stop xscreensaver when mplayer plays:

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


When I have this in my config under R6, it does indeed keep xscreensaver from starting during playback BUT video playback literally hangs for 5 sec or so every 20 seconds! As well, when I initially load the video file, it too kinda hangs for 5 sec or so.

I get the following in my mplayer output if I launch it from a shell:
Code:
xscreensaver-command: no response to command.
xscreensaver-command: no response to command.
xscreensaver-command: no response to command.
xscreensaver-command: no response to command.


Any thoughts on this?

Author:  cecil [ Sat Mar 07, 2009 7:27 pm ]
Post subject: 

Google for mplayer on this... I cannot remember the fix. Be sure to let us know.

Author:  graysky [ Sun Mar 08, 2009 4:02 am ]
Post subject: 

I believe this problem could be something in xscreensaver v5.08. I have reported it to jamie (the dev of xscreensaver) in an email and will report back. Meanwhile, there is a work-around: add this to your ~/.mplayer/config:

Code:
heartbeat-cmd="xscreensaver-command -deactivate &"


I have tested playback of two 45 min long files in mplayer with this line and xscreensaver never came on during the playback. I also have two Flyspray tickets related to this if folks are interested in reading/following them:

http://linhes.org/flyspray/index.php?do ... ask_id=268
http://linhes.org/flyspray/index.php?do ... ask_id=269
http://linhes.org/flyspray/index.php?do ... ask_id=273

I think the greater pain the ass that xscreensaver seems to present at the moment is described in flyspray #273. To summarize, if you run xscreensaver and your box boots into X without you moving your mouse, hitting a key on the keyboard, or using the remote, before xscreensaver kicks on and runs your screensaver, you can't get xscreensaver to turn off to use mythfrontend!

I feel that having a screensaver is critical to the success of LinHES because so many plasma/LCD screens are susceptible to burn it. All it would take is your wife, kids, guest, etc. carelessly leaving the screen on with the frontend displaying all day. My grandmother did this on our R5.5 box last time she came to visit. It was on for over 2 days! Glad to see the screensaver was running when we got home.

Author:  graysky [ Sun Mar 08, 2009 7:17 am ]
Post subject: 

I think I figured it out. See my comments in Flyspray #273. Long story short, I think /usr/X11R6/bin/unclutter was to blame :)

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