The "heartbeat-cmd" option solves the problem, but the "xscreensaver-command -deactivate" command may be a little slow and prejudice mplayer performance:
Code:
$time xscreensaver-command -deactivate Code:
heartbeat-cmd = "nice xscreensaver-command -deactivate >& /dev/null" |
I know this is an old thread but I just wanted to say thanks for the information as was just looking for a fix as Xine isn't working currently on my Fedora 15 setup so having to default back to mplayer (which is not my first choice).
Quote:
Quote:
|
For disable kernel screensaver I used this order
Code:
$ setterm -powersave off -blank 0 |
Quote:
I mean I set my screensaver for 15 minutes turn black then off after another 15. Of course this is during normal run, however, when playing vidoes I want it to be disabled but since I am lazy to run Mplayer from the CLI as my video+directory names can be quite long; I prefer to have mplayer turn the screensaver off for me when run from Thunar (XFCE file manager). This is actually per the original intent of this thread which is what I also was after :) |
If you use the GUI there is an option to disable xscreensaver. Not sure if this helps but that's all I can offer.
|
Quote:
Quote:
|
personally I use this is my .bashrc
Code:
#mplayer wrapper to turn off the screensaver and DPMS |
I use a simpler solution: use xdotool to emulate pressing ctrl key every 30 seconds. This has almost no impact on Mplayer performance as opposed to "xscreensaver-command -deactivate" method.
Put this to ~/.mplayer/config (requires xdotool installed): heartbeat-cmd="xdotool key ctrl" |
Quote:
I have been using the command I posted above since my last post (yesterday) but haven't noticed anything on straight playback of video files even HD ones or any CPU overhead. I know am using a different distro to Slackware as mine is Fedora 15, and I also understand that am in the Slackware path of the forums but still..... my initial post did apply and was a thankyou note rather then: "this aint workin' on my distro" note. |
Quote:
|
Ah ok.
Thanks for that. I haven't noticed anything like that but then I've activated H/W acceleration on my system so mplayer is using very little CPU. The majority of the processing gets done on the GPU itself. |
The only thing that worked for me (Slackware13.37, KDE) was adding:
Code:
heartbeat-cmd="qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity" |
All times are GMT -5. The time now is 02:22 AM. |