5

Can I configure Flash to automatically disable xscreensaver while it's playing video? Or, conversely, configure xscreensaver not to trigger while Flash is playing video?

I've seen this question on disabling the screensaver manually.

grm
  • 373
  • 3
  • 9
  • 1
    did you try [this](http://unix.stackexchange.com/questions/18882/how-to-prevent-my-screens-from-dimming-going-black-from-the-command-line) (Looks like a duplicate). If it does not work, mention it in the question. – rozcietrzewiacz Aug 26 '11 at 23:31
  • I was actually looking on an automatic solution, but doing it manually with such a small command is also an option. Thanks! – grm Aug 27 '11 at 09:19

2 Answers2

2

I don't think you can do this in the settings for either flash or xscreensaver. However, is it possible that you are streaming video from another site? You could write a script that ran netstat and looked for established connections on a certain port or maybe site and then xset s off; xset -dpms ; sleep XXX, then reenable. Then just background the script.

polynomial
  • 2,431
  • 19
  • 15
2

You'll find different scripts in order to do that on ubuntu forum. It's quite hacky and it does not seem that a clean way exist.

Coren
  • 4,970
  • 1
  • 24
  • 43