Automatically change the powerplan according to CPU and GPU load, idle time, processes or manual override
The original source is from ComputerBase.
Just adjust the parameters (explained below) and you are good to go.
power-manager.ps1
is the main script. Use the Create-Task.bat, to setup a task in the Taskplaner.
CPU Load, which needs to fall bellow this value to set energy saving or go higher to set gaming plan.
GPU Load, which needs to fall bellow this value to set energy saving or go higher to set gaming plan.
Enable or disable to check for user idle time.
Float, seconds. Amount of time the user should be idling to set powersaving plan.
Use powercfg /L
to get the IDs of the power plans.
This powerplan is set if CPU load and GPU load is higher than $CPUUsageLimit
and $GPUUsageLimit
, mouse and keyboard inputs are not older than $UserIdleLimit
, at least one process from gameprocess.txt
is running or "True" is written in $KeepGamingPowerPlan
(read below).
This powerplan is set, if none of the above apply.
true
Will keep the gaming-plan until you run the script again withfalse
false
Will disable the fixed powerplan and make it CPU load, GPU load and idle time dependant again
Enter the processes in gamingprocess.txt
. If one of these processes are running, gaming-plan will be kept.