Login | Register

Executable to switch windows power plan

Off topic discussions or chats
  • Author
    Message

Executable to switch windows power plan

Postby Maniac » Wed Apr 16, 2014 5:47 pm

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.
Maniac
New User
 
Posts: 2
Joined: Mon Mar 05, 2012 1:58 am

Re: Executable to switch windows power plan

Postby The Coolest » Tue Apr 29, 2014 8:12 pm

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.
Member of our O/C Folding @ Home team
"<The_Coolest> you can't unwaste wasted CPU cycles" - Start FOLDing now!
Main rig:
Core i7 2600K 3.4GHz @ 4.5GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / SSD: Crucial M4 128GB (+ HDDs) / GPU: HD5450 / Mem: 4x4GB DDR3-1600 G.Skill 4GBXL RipJaws X - 16GB total / PSU: Seasonic S12II 620W.
Secondary rig:
Core i3 540 3.06GHz @ Stock / Mobo: MSI H55M-ED55 / GPU: Integrated / Mem: 2x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 4GB total / PSU: FSP ATX350-PNR 350W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors
User avatar
The Coolest
Site Admin
Site Admin
 
Posts: 2961
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel

Re: Executable to switch windows power plan

Postby alimhd1864 » Fri Jan 16, 2015 2:51 pm

Configure Power Plans
http://technet.microsoft.com/en-us/library/dd744398%28v=ws.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

Postby alimhd1864 » Fri Jan 16, 2015 3:00 pm

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?
alimhd1864
New User
 
Posts: 2
Joined: Fri Jan 16, 2015 1:59 pm

Re: Executable to switch windows power plan

Postby Economy » Thu Jun 16, 2016 10:03 pm

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
Economy
New User
 
Posts: 1
Joined: Thu Jun 16, 2016 9:56 pm

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest