I use this command
sudo cpupower frequency-set -u 1.5G
To make the max CPU frequency to 1.5GHz but after restart it sets it back to default.
How can I set this at boot ?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityAny easy and reversible way
Open gedit and make a new blank document, then paste this into it
sudo cpupower frequency-set -u 1.5G
Now save it as cpu.sh
, the .sh is very important and run
sudo cp ~/cpu.sh /etc/init.d/
Make it executable
sudo chmod +x /etc/init.d/cpu.sh
Then run
update-rc.d cpu.sh defaults
Now this script should run as root on boot
Check out /etc/default/cpupower, ...try adding max_freq="1.50Hz"
To detail the steps, run sudo nano /etc/default/cpupower
, add the above line, then hit ctrl-o to save, and ctrl-x to exit.
/etc/default/ has global config files that are read at boot. Hope that will solve the problem.
sudo gedit
? Really? Do you want to ruin my good reputation?
May 8, 2015 at 18:37
cpufreq-utils
instead.
May 8, 2015 at 18:40