r/MSILaptops • u/streamlne • Aug 26 '20
Discussion [Guide] How to change refresh rate automatically based when on battery\plugged in
So when on a high refresh rate (144hz, 240hz) more power is being drawn from the battery. This little hack will change the refresh rate to 60hz when the laptop is unplugged from its charger and back to the highest rate when plugged in. This method works for all laptops. Just change the scheduled task to reflect your highest refresh rate. Mine is 240hz so the scheduled task action tab look like this: C:\Windows\System32\Qres.exe to Program/Script, add /r:240
I found this guide in a thread on notebookreview.com. Source link at the bottom of this post
This requires ThrottleStop
What I did was download Qres from here:https://www.majorgeeks.com/files/details/qres.html
Unzip and move Qres.exe to C:\Windows\System32\
Don't forget to go into Qres.exe's properties and go to compatibility and tick Run this program as an administrator.
Next,
Set up 2 tasks in task scheduler, one named 60Hz, one named 144Hz, all with the highest privilege, trigger set to "On a schedule" and set the time to the past.
For the 60Hz task, under the Actions tab, add new program, under Settings add C:\Windows\System32\Qres.exe to Program/Script, add /r:60 to Add arguments (Optional).
For the 144Hz task, under the Actions tab, add new program, under Settings add C:\Windows\System32\Qres.exe to Program/Script, add /r:144 to Add arguments (Optional).
Remember to untick the "Start the task only if the computer is on AC power".
Now go to C:\ and create a folder called Qres, go inside and create 2 batch files, one named 60Hz.bat, one named 144Hz.bat
For 60Hz.bat, put this in the batch file:schtasks /run /I /TN "\60Hz"
For 144Hz.bat, put this in the batch file:schtasks /run /I /TN "\144Hz"
This is to call the task you have just set up in the Task Scheduler.
Now go to ThrottleStop, go to Options, under the Run program After Profile Change, look for the Profile linked to AC and Battery, select "After", link AC Profile to C:\Qres\144Hz.bat, link Battery Profile to C:\Qres\60Hz.bat, hit OK.
First post requires code signing a cert and apply to a powershell script. I found this to be too involved. 2nd post is what I followed
5
u/werdmonkey4321 GS66 RTX2070 Super Max-Q(shunt mod 130-140W) with i7-10750H Aug 26 '20
Another thing you can do is use Hotkey Resolution Changer to set hotkeys for changing refresh rates.
https://funk.eu/hrc/
This way even if you are on the battery you have a convenient way to switch between the two refresh rates without opening up any applications. Just set it to run at startup using task scheduler. I use F11 to switch to 60hz and F12 to switch to 300hz on my GS66 which has the 300hz panel.
4
u/ocyrus99 GS66 RTX2060 with i7-10750H Aug 28 '20
You don't need to create batch files or the tasks. You can just call qres from TS directly by setting the following in the options:
On AC:<file_Location>\Qres\QRes.exe /r:240
On Battery:<file_Location>\Qres\QRes.exe /r:60
Just replace the <file_location> section so that it shows the complete path to your qres executable.
You'll see a quick cmd prompt window flash when you either plug or unplug the power and the display will flash as the refresh rate changes. Also change the 240 to 300 if you have the 300Hz display.
3
u/FL3XD GS Aug 26 '20
Cool hack! Fortunately the GS66 has a easy way to change to 60hz when youre on hybrid gpu and it auto changes from 300hz to 60hz if you're on dGPU and unplug from AC.
1
u/Bammer1386 Aug 27 '20
Will this do anything other than increase battery life? Id like to see a benchmark on battery with 60hz vs 144hz in case the laptop is able to direct any power saved to the gpu/cpu. I find many AAA games near unplayable on my gs65 on battery when the frames drop so hard because my RTX 2070 and the 9th gen i7 go into low power mode since the battery cant supply enough power on its own.
1
u/haitamsusanoo Sep 01 '20
Do all laptop monitors support refresh rate change ? I'm unable to find any option aside from 120Hz, not even in windows monitor settings or intel graphics settings, am I missing something here ?
1
u/[deleted] Dec 29 '20
Thanks a lot for this guide, got about 40mins extra battery life on my Acer Nitro 7!
1
u/crmsnswrdsmn Jan 16 '22
Can this be done on AMD Laptops?
Specifically, I have an Alienware M15 R5 Ryzen R5.
Thanks!
1
u/JayGie17 Oct 22 '22
How do you turn on the Run Program after Profile change? Cuz mine is grayed out
1
u/wolffartz Jan 26 '23
No longer works with latest version of ThrottleStop because author "removed" the option as of 9.5: https://www.techpowerup.com/forums/threads/run-program-after-profile-change-disabled.300438/
Looks like you could petition him to re-enable with an ini flag.
I had trouble getting this working anyways -- my resolutions are a weird decimal -- worked fine from just the command line (although a screen showed asking for permission) but not from Task Scheduler. It's possible there was a permissions problem or also possible that something was cached in Task Scheduler (I used the wrong param to start).
Anyways, maybe some day I'll mess about with other options to trigger on battery switch but it doesn't seem like there's an easy way to do this.
1
u/REEE_Funny_Meme_XD Feb 08 '23
I have no clue what I'm doing but if it works it'd be relaly usefull. Otherwhise Imma either have to change manually all the time or use that bloatware that Asus uses. Which eats more than 10% performance away, and thus battery. But the ThrottleStop installer says my cpu is not supported? It's a R7 4800, why's that?
1
u/MunchMunchDramaQueen Sep 29 '23 edited Sep 29 '23
Hi ppl. I wanted a solution with minimum external programs (eg. ThrottleStop), so I used only Qres.exe and the scheduler. I created two tasks that are triggered on power supply change (KernelPower) event. This event has details about whether it is on AC or on battery. Go to triggers, make new, select "Begin the task on an event", choose "Custom" below, then "New event filter". In the new window choose "XML" tab, check "Edit query manually", then paste one of the queries:
For event "on battery":
For event "on AC"
Action is the same as in OP, "
path/to/QRes.exe /R60" (replace 60 with required refresh rate).Tested on Lenovo Legion (2022) laptop with windows 11. Should probably work on other Win10/11 machines.
1
u/Piereligio Jan 22 '24
I've just put this on GitHub. https://github.com/piereligio/Windows-60Hz-Automatic-Refresh-Switch-On-Battery
It's a PowerShell 7 function that I trigger with a task. The difference is that it:
- Checks the monitor to be only one when switching (QRes applies the refresh rate to all the monitors otherwise which might have different refresh rates);
- Sets the higher refresh rate (when on power) to the maximum available rate for current resolution, instead of being an hardcoded value.