How to temporarily disable the screen saver in KDE while watching long Flash clips in a web-browser

If you’re watch something on YouTube that’s long-ish, the screen saver is kicking in every few minutes.  So you have to move the mouse around from time to time; that’s annoying.

Here is a one liner for KDE that will simulate user activity every minute.  While this is running in Konsole, the screen saver won’t activate.  You end it with [Ctrl+C].  It’s rather crude, but simple, easy to understand and it does the job.

while /bin/true; do qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null; sleep 1m; done
Advertisements

5 thoughts on “How to temporarily disable the screen saver in KDE while watching long Flash clips in a web-browser

  1. Pingback: Monitor goes blank (black) watching Flash video (screen savers are disabled) | Coders & Admins

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s