This script is changes screen refresh rate according the type of power source (i.e. AC or battery power). It is to be invoked by Task Scheduler on power source change event (i.e. Event ID 105, Kernel Power, Power source change.).
- Download/Clone the other '.ps1' and '.xml' file to your local drive.
- Edit 'DynamicScreenRefreshRate.ps1' at around line number 178 (bottom part of the file) to edit the variables 'REFRESHRATE_ONBATTERY' and 'REFRESHRATE_ONAC' to refresh rate values on different power sources (must be display supported too).
- Edit 'DynamicRefreshRate.xml' using any text editor to fill in 'TODO's.
- Make sure the PowerShell program path in this file is correct.
- Import 'DynamicRefreshRate.xml' into Task Scheduler to create a new task from it.