Tweak CPU Power Quickly on Windows

KKOCDKO was watching movie on his laptop, but the fan system come into a start-stop cycle, which made him crazy: fan on > cooling > fan off > heating > fan on...

Go to "Control Panel > Power Options > Advanced Settings > Processor Power Management", set "Minimum processor state" to 0%, and the "Maximum processor state" is the point(1).

Set this value to 99%, you can disable the boosting. To 0%, make the frequency to lowest(2). But it is troublesome to change the value by hand every time, so:

@echo off
echo   [1] High   [2] Medium   [3] Low
choice /c 123 >nul
if "%errorLevel%"=="1" set percent=100
if "%errorLevel%"=="2" set percent=99
if "%errorLevel%"=="3" set percent=0
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX %percent%
powercfg /setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX %percent%
:: Make changes active
powercfg /s SCHEME_BALANCED
exit

(1) Parameter not showed? or Change Ineffective?

(2) Not the lowest, on my R5-5600U, its 1099 MHz.

But why not Linux? Try cpupower.