Useful tool for power enthusiasts on the go (advanced power options)

VaguelyRapt

Electrosexual
Power User
Want to change advanced power options with a few keyboard presses?

I like changing advanced power options all the time, mostly CPU throttle and brightness (the two most important factors in battery life). I used to have a separate power plan just for different CPU throttles, but that seemed a little inefficient (as did opening advanced power options under several layers of GUI). So I just finished writing up some batch scripts to change advanced power settings.

All you need to do is copy the attached files into the System32 folder (C:\Windows\System32\), for which you'll need to provide administrator privileges. Then, just press Win+R and type the name of the setting followed by the value. For example:

"bri 30" will change the screen brightness to 30%.
"maxp 50" will change the maximum CPU throttle to 50%.
"sleep 5" will change the time until sleep to 5 minutes.

Like so: APO.JPG

By the way, you can change the command just by changing the name of the file. Renaming "disp.bat" to "Display Brightness.bat" will let you type "Display Brightness 4" instead of "disp 4".

Let me know what you think. I can make one for each and every advanced power setting, all you gotta do is ask. Enjoy! (Don't mind giving me rep if you use this, I spent quite some time on this ;))

View attachment System32.zip
 

My Computer

System One

  • Manufacturer/Model
    HP dv5-1120ej Notebook PC
    CPU
    Intel Dual 2.16GHz
    Memory
    4GB
    Graphics Card(s)
    NVidia GeForce 9200M GS, 256MB
    Hard Drives
    320GB internal, 320GB external, 1TB external to come (big download library XD)
    Internet Speed
    Fast enough
    Other Info
    Firefox, Foobar, and AutoHotkey! Go open source!

Frostmourne

Banned
Well written! Rep given. :p

You might also find this batch file interesting. It deletes all file in the .tmp folder. You'll have to edit it in Notepad to change the xxx's to your user name though. After, just right click it and select run as administrator.

More info if anyone wants to write batch files:

http://www.infionline.net/~wtnewton/batch/batguide.html
 

Attachments

My Computer

System One

  • Manufacturer/Model
    Sony Vaio Z46GDU
    CPU
    [email protected] w/6MB L2 cache 1066MHz FSB
    Memory
    6GB DDR3 1066MHz SDRAM
    Graphics Card(s)
    9300M GS 256MB + Intel Integrated 4500MHD
    Monitor(s) Displays
    13.1" WXGA True Colour Tough
    Screen Resolution
    1600x900
    Hard Drives
    320GB SATA 7200RPM
    Internet Speed
    1MB/s

VaguelyRapt

Electrosexual
Power User
No need to edit, there's a built-in variable that expands to the user profile folder. (I switched the "C:\Users\xxx" with %userprofile% which translates to "C:\Users\yourusername\")

View attachment deltemp.bat

Batch files (the command line in general) is extremely useful. I'm glad I took the time to learn a little bit about it. I also wrote a script that syncs your Firefox bookmarks and history across different Firefox profiles, it runs right before Firefox and then launches FF for me. I'll never get tired of making my computer as efficient as can be. :D
 

My Computer

System One

  • Manufacturer/Model
    HP dv5-1120ej Notebook PC
    CPU
    Intel Dual 2.16GHz
    Memory
    4GB
    Graphics Card(s)
    NVidia GeForce 9200M GS, 256MB
    Hard Drives
    320GB internal, 320GB external, 1TB external to come (big download library XD)
    Internet Speed
    Fast enough
    Other Info
    Firefox, Foobar, and AutoHotkey! Go open source!

Frostmourne

Banned
No need to edit, there's a built-in variable that expands to the user profile folder. (I switched the "C:\Users\xxx" with %userprofile% which translates to "C:\Users\yourusername\")

View attachment 15668

Batch files (the command line in general) is extremely useful. I'm glad I took the time to learn a little bit about it. I also wrote a script that syncs your Firefox bookmarks and history across different Firefox profiles, it runs right before Firefox and then launches FF for me. I'll never get tired of making my computer as efficient as can be. :D
You could also take a look at windows powershell. Its looking to be the replacement to .bat file scripting:

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx
 

My Computer

System One

  • Manufacturer/Model
    Sony Vaio Z46GDU
    CPU
    [email protected] w/6MB L2 cache 1066MHz FSB
    Memory
    6GB DDR3 1066MHz SDRAM
    Graphics Card(s)
    9300M GS 256MB + Intel Integrated 4500MHD
    Monitor(s) Displays
    13.1" WXGA True Colour Tough
    Screen Resolution
    1600x900
    Hard Drives
    320GB SATA 7200RPM
    Internet Speed
    1MB/s

bartgrefte

New Member
Want to change advanced power options with a few keyboard presses?

I like changing advanced power options all the time, mostly CPU throttle and brightness (the two most important factors in battery life). I used to have a separate power plan just for different CPU throttles, but that seemed a little inefficient (as did opening advanced power options under several layers of GUI). So I just finished writing up some batch scripts to change advanced power settings.

All you need to do is copy the attached files into the System32 folder (C:\Windows\System32\), for which you'll need to provide administrator privileges. Then, just press Win+R and type the name of the setting followed by the value. For example:

"bri 30" will change the screen brightness to 30%.
"maxp 50" will change the maximum CPU throttle to 50%.
"sleep 5" will change the time until sleep to 5 minutes.

Like so:View attachment 15664

By the way, you can change the command just by changing the name of the file. Renaming "disp.bat" to "Display Brightness.bat" will let you type "Display Brightness 4" instead of "disp 4".

Let me know what you think. I can make one for each and every advanced power setting, all you gotta do is ask. Enjoy! (Don't mind giving me rep if you use this, I spent quite some time on this ;))

View attachment 15665
Sorry for the kick, but can I use those batches with Windows 7 (Ultimate, x64) as well? Not just Vista I mean. And is the effect instantaneous? Don't want to have to reboot before it takes effect...

It's mainly about minp.bat, because Multisim can't get the CPU to throttle up making the simulation run very slow, slower than usual that is. So I figured, why not make a batch to increase the minimum processor state setting which also lowers it after Multisim shuts down. While looking for a way I ended up here.
 

My Computer

Top