Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Controlling screensaver/power setttings

17 Jun 2010   #1

Win 7 Ultimate
Controlling screensaver/power setttings

I am looking for a way to programatically control the power settings (turn display off specifically). The reason is I have photo screensaver that I sometimes want on (like if I am in the room). Other times, I just want the PC to shut off the monitor.

My question is is there a way to programatically change the power settings? I was thinking a batchfile or some shortcut or something. I know I can invoke the screensaver without waiting for it to kick in by executing the .SCR file, but I also want to shut off the display power off mode when I do so.

My System SpecsSystem Spec
17 Jun 2010   #2

Windows 7 Ultimate X64 SP1

Hi there Welcome to the forums, Take a look at Nircmd I think that will do what you want: NirCmd - Windows command line tool
My System SpecsSystem Spec
17 Jun 2010   #3

Win 7 Ultimate

Thanks for the response. That didn't do exactly what I wanted, but pointed me in the right direction. I found that if I create a power scheme, I can invoke it with %windir%\system32\powercfg.exe /SETACTIVE schemename.

A simple batchfile can invoke a power scheme that doesn't put the monitor/pc to sleep and start the screensaver. Another batchfile will restore the computer to sleep.
My System SpecsSystem Spec

17 Jun 2010   #4

Windows 7 Ultimate X64 SP1

that was actually going to be my next suggestion. Glad you got it sorted anyway
My System SpecsSystem Spec
17 Jun 2010   #5

Win 7 Ultimate

SetActive actually takes a GUID, not a scheme name (you can find the guid in the registry). However, there are lots of other options that can be set individually:

-change settingvalue
-x setting value
Modifies a setting value in the current power scheme.
powercfgx setting value
Specifies one of the following settings:
-monitor-timeout-ac minutes
-monitor-timeout-dc minutes
-disk-timeout-ac minutes
-disk-timeout-dc minutes
-standby-timeout-ac minutes
-standby-timeout-dc minutes
-hibernate-timeout-ac minutes
-hibernate-timeout-dc minutes
Specifies the value in minutes.
This sets the monitor idle timeout value to five minutes when operating on AC power.
My System SpecsSystem Spec

 Controlling screensaver/power setttings

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Screensaver and power off monitor not working
I have build 7068. From the start my screensaver and power options are not working. The problem is sometimes they DO work. I am having trouble diagnosing it because of that fact. What would cause this? I just want the monitor to turn off 30 minutes after stop using the computer. That's the main...
General Discussion
screensaver and power options not working on windows 7
hello first time posting. my screensaver and power options are not working at all. they where working fine a few days ago and then all of the sudden they started to work intermittent and then they just stopped all together. i have a wireless mouse and ive never had any problems with it. when it...
Performance & Maintenance
Lock PC by Power Options not screensaver
Hello, I am unable to lock my PC via power options. Although I have set it as to lock PC, it is impossible to do it as per Windows XP. The only way to lock it is through the screensaver, but this is not an option for me as I work 10 hours at an office and I prefer the blank screensaver to...
Sleep Mode, Screensaver, Power Options not working
I've had my ASUS for only a few months and it works like a charm, but I noticed a few days ago that it's not going into sleep mode anymore. The only changes I've made were: 1. Installed nod32 (antivirus) 2. Changed my desktop wallpaper 3. Installed the Adobe update That's it. I didn't...
General Discussion
My screensaver and my power options are constantly chan
I set my screensaver to "Photos" but it is automatically being reset to "None". The same with my Power options. I set the monitor to never shut down. But then it is being reset to 20 minutes. My suspicion is that this happens when I change the Desktop background - but not always. Any ideas?
General Discussion
Screensaver and Power settings not working
I am running win7 7000 x64 on a quad core intel box. Most things have been working great but I have been having one annoying problem, the screensaver won't start, and neither will the power saving settings (i.e. turning off monitor, computer sleep) Basically I am wondering if anyone else has...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:54.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App