Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I know mplayer has some heartbeat setting but I don't recall what it is, could anyone tell me?

another one of those annoying things that used to just work and somewhere along the line stopped being default

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

mplayer has the switch -heartbeat-cmd to run a command every 30 seconds, but as the man page says:

This can be "misused" to disable screensavers that do not support the proper X API

The actual switch meant to disable screensavers is -stop-xscreensaver; you should probably try that first

share|improve this answer
I put -stop-xscreensaver in ~/.mplayer/config when trying to play a video I got this error: Option -stop-xscreensaver needs a parameter at line 2 ideas? –  xenoterracide Aug 28 '10 at 15:47
@xeno Every option in the config file needs to have a value; if it's just a boolean flag, set it equal to true, yes, or 1. You also shouldn't include the - when you're using the config file, so you'll get a warning about an unknown option (it sees your entry for -stop-xscreensaver and looks for the flag --stop-xscreensaver); it should read stop-xscreensaver=true instead –  Michael Mrozek Aug 28 '10 at 18:03
now if only I could do the same thing with flash/<video> –  xenoterracide Aug 29 '10 at 14:12
@xenoterracide you can use mplayer to watch flash videos, load the video, look in /tmp and play the video with mplayer :P –  hiena Aug 30 '10 at 12:56
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.