Executable to switch windows power plan

Off topic discussions or chats
Post Reply
Maniac
New User
Posts: 2
Joined: Mon Mar 05, 2012 1:58 am

Executable to switch windows power plan

Post by Maniac »

When playing demanding video games, my computer slowly heats up, a few degrees every hour. After playing all day, the cpu temp under high load can reach 90 degrees. I've set a windows power plan to reduce cpu clock, which lowers the temperature, but I have to remember to do this manually. There's an "run executable" section of the overheat protection; I want it to run a program that can set windows to this custom power plan automatically, when the set temperature is reached.

Can someone help me find/create such a program?

Update: After some more google searching, I found out how to create a shortcut to change power plans. I set the overheat protection to run this, and it worked, once, and only once; even after I restarted my computer, it would not work again. Then I set it to do the same thing, but through command prompt. That also worked, once, and only once. There's something wrong with the run executable function in Core Temp.

However, the shortcuts themselves work every time.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Executable to switch windows power plan

Post by The Coolest »

Make sure that you untick the 'Execute once' check box.
Normally Core Temp will run the executable every time the temperature goes over the threshold set. If it drops below and then rises again, it'll execute again.
If the 'Execute once' option is enabled, it will execute it a single time throughout Core Temp's session.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

alimhd1864
New User
Posts: 2
Joined: Fri Jan 16, 2015 1:59 pm

Re: Executable to switch windows power plan

Post by alimhd1864 »

Configure Power Plans
http://technet.microsoft.com/en-us/libr ... 10%29.aspx
in command prompt, type
>> powercfg -LIST
The computer will return the list of available power schemes. The following examples refer to this as guidScheme1 and guidScheme2.

Existing Power Schemes (* Active)
Power Scheme GUID: {guidScheme1} (Balanced) *
Power Scheme GUID: {guidScheme2} (Power saver)

To modify a plan, set the power scheme you want to change as the active power scheme. For example,
>> powercfg -SETACTIVE {guidScheme2}

for my PC,
powercfg -SETACTIVE a1841308-3541-4fab-bc81-f71556f20b4a

{guidScheme} is different for your PC.
Copy this code into a text file. Then rename this file to (power_saver.bat) and store into (C:) Drive.
Copy this address (C:\power_saver.bat) to 'execute program' in "overheat protection" settings.
untick the 'Execute once' check box.
Last edited by alimhd1864 on Sat Jan 17, 2015 12:42 pm, edited 1 time in total.

alimhd1864
New User
Posts: 2
Joined: Fri Jan 16, 2015 1:59 pm

Executable to switch windows power plan

Post by alimhd1864 »

We can after overheated the processor, execute a program for switch to power saver.
How to automatically return to the power saver to power balance after the CPU cooling?

Economy
New User
Posts: 1
Joined: Thu Jun 16, 2016 9:56 pm

Re: Executable to switch windows power plan

Post by Economy »

When the processor overheats, we can execute a program for lowering "maximum processor state". (Very useful for silent PC systems with no FAN)

e.g. use powercfg for 75 % MAX CPU (works in windows 10)

BAT FILE:

powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 54533251-82be-4824-96c1-47b60b740d00 bc5038f7-23e0-4960-96da-33abaf5935ec 75
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e

How to automatically return to 100% after the CPU cooling has completed?

could we have a setting "RESET AFTER COOL DOWN COMPLETE" => execute bat file after "cool down" is complete?

BAT FILE:

powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 54533251-82be-4824-96c1-47b60b740d00 bc5038f7-23e0-4960-96da-33abaf5935ec 100
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e

Post Reply

Return to “General Discussions”