0

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 ?

Mark Kirby
  • 18,529
  • 19
  • 78
  • 114
Ivaylo
  • 439
  • 1
  • 7
  • 9

2 Answers2

1

Any 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

orzechow
  • 109
Mark Kirby
  • 18,529
  • 19
  • 78
  • 114
0

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.

mikewhatever
  • 32,638