[MPlayer-dev-eng] XScreenSaver Extension
Diego Biurrun
diego at biurrun.de
Sat May 11 14:30:43 CEST 2002
On Sat, May 11, 2002 at 01:58:21PM +0200, Fredrik Kuivinen wrote:
> On Sat, May 11, 2002 at 01:39:44PM +0200, Arpi wrote:
> > afaik the only way to kill xscreensaver is killall xscreensaver ;)
>
> Read the URL I posted (http://www.jwz.org/xscreensaver/faq.html#dvd).
Here is the text of that URL for your convenience:
28.How do I prevent xscreensaver from blanking the screen when I'm
watching movies on my computer?
When you want to watch a movie, fire up xscreensaver-demo and select
Mode: Disable Screen Saver from the option menu, which means not to
blank the screen at all. When you're done watching the movie,
re-select your previous mode.
That's kind of lame, I know. You should ask the author of the
DVD-playing software you are using to add explicit support for
xscreensaver to their program.
If you are the author of DVD-playing software, here's how you can
prevent xscreensaver from kicking in while a movie is playing: once a
minute have a timer go off. In that timer, do something like this:
if (playing && !paused) {
system ("xscreensaver-command -deactivate >&- 2>&- &");
}
That will prevent the screen saver from activating while the movie is
playing, but will allow it to activate normally while the movie is
stopped or paused. You probably ought to make this behavior a
preference, so that you don't permanently deactivate the screen saver
when, for example, someone is playing movies in a loop on their root
window, or when your player is being used as a web page plugin.
The reason to do this with a timer (instead of turning the screensaver
off and then on again in some other way) is so that if your program
crashes, you're guarenteed that the screensaver will not be left in a
permanently disabled state.
More information about the MPlayer-dev-eng
mailing list