My screen brightness used to dim after a few seconds to preserve battery. This is default in Ubuntu 12.04. However when watching video it should not dim.
This works correctly when I watch videos using native applications like VLC. With in-browser video, however, the screen is not prevented from dimming.
This is very annoying as you have to move your cursor every 10 seconds or so.
I used to use Mac OSX where I had the same dimming settings and Flash videos were taken into account correctly.
Anyone an idea how you can make YouTube prevent your screen from dimming?
Best Answer
HOWTO: Disable screen saver while Flash is running
Run the following command in terminal:
Open gedit, or your preferred text editor and type this:
Save this file as
~/bin/flash_saver.sh
.Go back into terminal and run:
To run this, go into terminal and type:
If you prefer, you can set this script to run at logon by doing the following:
~/bin/flash_saver.sh
Source: HOWTO: Disable screen saver while Flash is running - ubuntuforums