Ubuntu – Set CPU governor to performance in 18.04

18.04cpugovernor

I'm trying to set the CPU governor to performance in 18.04, the problem is that it never survives reboots.

I've tried following these steps in an answer to this question
How to set "Performance" instead of "Powersave" as default? but when I reboot the computer the CPU governor switches back to powersaver.

I've also tried creating a file called /etc/rc.local with the line:

cpupower frequency-set --governor performance

That also doesn't survive reboots.

How can I do this?

Best Answer

sudo apt-get install cpufrequtils
echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
sudo systemctl disable ondemand