Solved

Power settings - POWERCFG query

Posted on 2008-06-12
6
4,343 Views
Last Modified: 2010-04-21
Hi,

I've found a few websites that show how to create power profiles for PCs/Laptops. I basically want to have certain power settings for all users using local policy to run the batch file containing the following code
"""""
POWERCFG /CREATE NewPower
POWERCFG /CHANGE NewPower /monitor-timeout-ac 0
POWERCFG /CHANGE NewPower /monitor-timeout-dc 0
POWERCFG /CHANGE NewPower /disk-timeout-ac 0
POWERCFG /CHANGE NewPower /disk-timeout-dc 0
POWERCFG /CHANGE NewPower /standby-timeout-ac 0
POWERCFG /CHANGE NewPower /standby-timeout-dc 0
POWERCFG /CHANGE NewPower /hibernate-timeout-ac 0
POWERCFG /CHANGE NewPower /hibernate-timeout-dc 0
POWERCFG /CHANGE NewPower /processor-throttle-ac ADAPTIVE
POWERCFG /CHANGE NewPower /processor-throttle-dc ADAPTIVE
POWERCFG /CHANGE NewPower /
POWERCFG /SETACTIVE NewPower
"""""
I have a couple of questions.
What do the following do /processor-throttle-ac ADAPTIVE
                                         /processor-throttle-dc ADAPTIVE

I'm not bothered about the settings I can't change through the Power Options Properties, so can I leave those 2 out? the defauls will be fine.
Also I'd like to change the Advanced Power Buttons in the Power Options Properties to

Close lid - Do Nothing
Press Power Button - Shutdown
Press Sleep Button - Do Nothing

Is there code I can put in the script to change the above as well?

many thanks in advance
0
Comment
Question by:bluebirds1984
  • 3
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
PeteJThomas earned 500 total points
Comment Utility
Ok, first question is answered here -

/processor-throttle-ac { none | constant | degrade | adaptive}
 Selects the dynamic throttling policy to be used, if your microprocessor supports processor performance state controls, when the system is operating on AC power. The following table lists and describes each dynamic throttling policy option.

Value Description

none
Causes the microprocessor to operate at the highest performance state at all times
 
constant
Causes the microprocessor to operate at the lowest performance state at all times
 
degrade
Causes the microprocessor to operate at the lowest performance state, and further reduces performance by applying stop clock throttling as the system battery drains

Note
" This option is typically used when the computer is operating on battery power and is therefore seldom used with /processor-throttle-ac.
 
adaptive
Modifies the performance state dynamically based on the demand the system puts on the microprocessor
 
/processor-throttle-dc { none | constant | degrade | adaptive}
 Selects the dynamic throttling policy to be used, if your microprocessor supports processor performance state controls, when the system is operating on DC (battery) power. The desired dynamic throttling policy is selected with one of the four additional switches listed under /processor-throttle-ac.
 
The answers are all in here - http://technet2.microsoft.com/windowsserver/en/library/0d90be55-cc9d-423d-8e49-8a79a4d6bcd41033.mspx?mfr=true

I'm afraid there's no mention in of how to user that particular command to change the settings when the lid is closed etc... But I'll keep looking for you!

Pete
0
 
LVL 4

Author Comment

by:bluebirds1984
Comment Utility
Many thanks for your prompt reply.
Am I right in thinking that adaptive would be the default setting? or could I just remove the

POWERCFG /CHANGE NewPower /processor-throttle-ac ADAPTIVE
POWERCFG /CHANGE NewPower /processor-throttle-dc ADAPTIVE

from the script all together?

cheers
0
 
LVL 19

Expert Comment

by:PeteJThomas
Comment Utility
I would say that the 'default' setting would depend on what power scheme template you have running normally... However I would think that adaptive would make sense, and I would leave it in - If you have no setting, it might count as setting it to 'none', which would mean that the CPU would be running at it's "highest performance state at all times".

So yes I'd say keep it as it is! Haven't found anything yet with regards to what to do when the lid closes etc... I'll keep looking!
0
 
LVL 4

Author Comment

by:bluebirds1984
Comment Utility
Thanks, I will keep the text in the batch file.

I've found these websites with regards to power button/lid settings

http://www.windowsbbs.com/showthread.php?t=64460
and
http://www.theeldergeek.com/forum/index.php?showtopic=28050&mode=threaded

if you or anyone can make sense of what registry fix I could do to change the power settings I'd be grateful!
0
 
LVL 4

Author Closing Comment

by:bluebirds1984
Comment Utility
Many thanks for your reply, it will make my work easier!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
A short article about problems I had with the new location API and permissions in Marshmallow
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now