Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I prevent xscreensaver from blanking the screen when Im watching movies on my computer?

0
Posted

How do I prevent xscreensaver from blanking the screen when Im watching movies on my computer?

0

If you are using a recent version of MPlayer, put this in your ~/.mplayer/config file: heartbeat-cmd=”xscreensaver-command -deactivate” If you’re using something other than MPlayer: 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 movie-playing software you are using to add explicit support for xscreensaver to their program. If you are the author of movie-playing software: The way you prevent xscreensaver from blanking the screen while a movie is playing is something like this: if (playing && !paused) { system (“xscreensaver-command -deactivate >&- 2>&- &”); } Though it would be better to code this using fork() and execvp() instead of system(). That will prevent the screen saver from activating while the movie is playing, but will allow it to activ

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123