Actually the software CAN ask windows to turn power saving off. Thats how media players do it. But when you watch youtube or other flash videos it is the browser that's running, nothing else. There is a flash plugin but this is a plugin, it only has access to the same things the browser has. If the browser does not provide access to power saving management the plugin can't access it. So the only way for that to be solved would be that browsers could have a new feature that would disable power saving when you visit some certain sites or has the ability to manage power saving and somehow passes that access to third party plugins.
I don't see there is another way. Or, you could go to the start menu and click on power options (search it) and then once your in you can click on a thing that let's you change how long until the computer goes into sleep mode. Maybe it depends on the browser and the operating system, but I can tell you that using Firefox 32.0.1 in Windows 7 64-bit, whenever a sound is played by the Flash plugin, it prevents the display from turning off. This can be seen by running powercfg -requests while a sound is playing (run cmd.exe as an administrator before typing the command): C:Windowssystem32powercfg -requestsDISPLAY:PROCESS DeviceHarddiskVolume1Program Files (x86)Mozilla Firefoxfirefox.exeSYSTEM:DRIVER IDT High Definition Audio CODEC (HDAUDIOFUNC01&VEN111D&DEV76DF&SUBSYS1028053F&REV10024&313bea4d&0&0001)An audio stream is currently in use.AWAYMODE:None.Two things are shown in this example output. It's the firefox.exe process under DISPLAY: that is preventing the display from turning off. The sound playing through the audio driver prevents the system from going to sleep.I consider Firefox's behavior undesirable, as I seldom watch long YouTube videos, and I don't want every message notification from Facebook Chat to turn my screen on. The behavior can be changed by using a powercfg -REQUESTSOVERRIDE command, like this: powercfg -REQUESTSOVERRIDE process 'DeviceHarddiskVolume1Program Files (x86)Mozilla Firefoxfirefox.exe' displayType powercfg /?
You could also a small utility called to automatically switch power plans whenever the Flash Player (or your favorite video player) is launched. (I added FlashPlayerPlugin1600296.exe, for example).You just have to make sure to set Turn off the display to Never in your High performance power plan.
How to Fix an Ubuntu System When It Won’t Boot Chris Hoffman @chrisbhoffman Updated July 3, 2017, 10:12pm EDT Ubuntu doesn’t offer the Safe Mode and Automatic Repair tools you’ll find in Windows, but it does offer a recovery menu and a reinstall option that keeps your files and programs. Aug 25, 2015 DPMS not working on GTX980 with DisplayPort connection. The problem is with Samsung, it doesn't turn off in power saving mode. After the idle timeout the screen goes black but the backlight remains on and never turns off. I also tried the 'sleep 1; xset dpms force off' command from the console, but result is the same. Kubuntu 14.10 x86.
![Off Off](/uploads/1/2/5/4/125480329/376348610.png)
(Unfortunately the app doesn't support to switch to a specified power plan other than High performance)I had a short test run using mplayer.exe and the utility successfully switched to High performance and back to my default power plan while having a memory footprint of about 9.3MB (on Windows 8.1 x64).