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
michaeljc70

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
severedsolo

Windows 10 Pro x64
 
 

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
michaeljc70

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
severedsolo

Windows 10 Pro x64
 
 

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

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.
Usage:
powercfgx setting value
setting
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
value
Specifies the value in minutes.
Example:
powercfg-change-monitor-timeout-ac5
This sets the monitor idle timeout value to five minutes when operating on AC power.
My System SpecsSystem Spec
Reply

 Controlling screensaver/power setttings




Thread Tools




Similar help and support threads
Thread Forum
My Monitor goes to sleep after 10 minutes, screensaver none, power....
hello i am new to the forum, Well i am getting really frustrated that my monitor goes to sleep after 10 minutes of inactivity, but my computer still runing,video still playing, music still playing, just my monitor decided to go to sleep for no reason, and i have to move my mouse to get it wake up...
Hardware & Devices
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...
Customization
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 06:03.
Twitter Facebook Google+