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,289
  • 19
  • 78
  • 113
Ivaylo
  • 399
  • 1
  • 6
  • 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
  • 6
Mark Kirby
  • 18,289
  • 19
  • 78
  • 113
  • Comments are not for extended discussion; this conversation has been [moved to chat](http://chat.stackexchange.com/rooms/23603/discussion-on-answer-by-mark-kirby-how-to-make-cpupower-not-reset-after-each-res). – Mitch May 09 '15 at 05:22
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,243
  • 10
  • 87
  • 98