Re: mplayer, dpms problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





on 11/09/2006 06:25 PM Antonio Olivares wrote:
$ mplayer dvd:// -alang en -stop-xscreensaver worked till the movie finished. In Fedora Core 5 and the new inclusion of
gnome-screensaver, this also worked.  However, with
Core 6, mplayer plays the movie but dpms kicks in and
blanks the screen.  How can I tell dpms not to kick in
and allow mplayer to play the complete movie without
blanking the screen?

I've found the shell script (don't remember the source already), modified it a bit and it kinda works for me.

#!/bin/bash
(exec "$@")&
PID=$(jobs -p)
( while [ -d /proc/$PID ] &>/dev/null ; do
    sleep 500s
    gnome-screensaver-command --poke &>/dev/null
done
)&
wait $PID

I have it under ~/bin/noss name
in order to run mplayer you do

$ noss mplayer


You can put an alias into ~/.bashrc (or whatever you got there)

--
regards,
Oleksandr Korneta

/The nice thing about standards is that there are so many to choose from./


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux