$ sudo apt install cpufrequtils # You can specify the governor as you want such as ondemand, performance, powersave, interactive, and so on. $ echo 'GOVERNOR="{GOVERNOR}"' | sudo tee /etc/default/cpufrequtils; sudo update-rc.d ondemand disable; systemctl mask ondemand; $ reboot