/AutoRefreshRate

Changes the refresh rate depending on whether the computer is plugged in or not.

Primary LanguageC++

AutoRefreshRate

Changes the refresh rate depending on whether the computer is plugged in or not to save battery.

My laptop supports 60Hz and 240Hz, these values must be changed according to your screen.

Scheduling

To automate the change, use the Task Scheduler. Create a new task, trigger it on this event:

  • Log: System
  • Source: Kernel-Power

For the action, simply run AutoRefreshRate.exe.

This task will run the program every time the power status changes (plug/unplug). The program automatically determines whether the power supply is connected or not and changes the refresh rate according to the power supply status (on battery: 60Hz/on power: 240Hz).

Documentation