ddepuemd
asked on
Turn off Screen saver and monitor black out
We have a VB.NET application that we would like to disengage the screen saver process and the monitor shutting off. Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops, missed the second part. For controlling the Power settings for the monitor, here is an article describing the Keys and Values (almost the same as above for screen saver). You can use the same technique described above, just change the key and value where necessary.
http://www.windowsitpro.com/Article/ArticleID/14918/14918.html
To save the extra click, here are the contents of the article:
If you select the Screen Saver tab of the Desktop control panel applet you can configure Power saving settings which include powering off the monitor after x minutes. To enable the monitor to power off for the logon screen perform the following on each machine:
1. Start the registry editor (regedit.exe)
2. Move to HKEY_USERS\.DEFAULT\Contro l Panel\Desktop
3. Double click PowerOffActive and set to 1. Click OK
4. Double click ScreenSaveActive and set to 1. Click OK
5. Double click SCRNSAVE.EXE (if present) and set to "(NONE)" (don't type the quotes). Click OK
6. Move to HKEY_USERS\.DEFAULT\Contro l Panel\PowerCfg
7. Double click CurrentPowerPolicy and set to 0 (the Home/Office Desk power setting configuration). Click OK
8. Close the registry editor
9. Reboot the machine
To change the settings such as monitor timeout change the settings on your local profile, export HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolici es\0 to a file and import to HKEY_USERS\.DEFAULT\Contro l Panel\PowerCfg\PowerPolici es\0.
If you need to do this on lots of machines create a .reg file and push via a login/startup script (which can be specified via Group Policy).
http://www.windowsitpro.com/Article/ArticleID/14918/14918.html
To save the extra click, here are the contents of the article:
If you select the Screen Saver tab of the Desktop control panel applet you can configure Power saving settings which include powering off the monitor after x minutes. To enable the monitor to power off for the logon screen perform the following on each machine:
1. Start the registry editor (regedit.exe)
2. Move to HKEY_USERS\.DEFAULT\Contro
3. Double click PowerOffActive and set to 1. Click OK
4. Double click ScreenSaveActive and set to 1. Click OK
5. Double click SCRNSAVE.EXE (if present) and set to "(NONE)" (don't type the quotes). Click OK
6. Move to HKEY_USERS\.DEFAULT\Contro
7. Double click CurrentPowerPolicy and set to 0 (the Home/Office Desk power setting configuration). Click OK
8. Close the registry editor
9. Reboot the machine
To change the settings such as monitor timeout change the settings on your local profile, export HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolici
If you need to do this on lots of machines create a .reg file and push via a login/startup script (which can be specified via Group Policy).
The screen saver is at:
HKEY_CURRENT_USER\Control Panel\Desktop\ScreenSaveAc
and the monitor settings is at
HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolici
The monitor settings are a little trickier as you may have several possible pollicies on your machine.
For example I use portable/laptop, so I'd amend the settings under this policy in the registry.
And the setting are in binary, so what I would suggest is (FIRST BACKUP YOUR REGISTRY) before doing anything !
I've never had to amend these settings before so don't know it in detail but there is another article on this at
https://www.experts-exchange.com/questions/11139845/Turning-off-monitor.html
to amend the registry use this code:
Dim KeyPath As String = "HKEY_CURRENT_USER\Control
My.Computer.Registry.SetVa
Hope this helps !