I like to disable 'TurboBoost' and set the maximum CPU speed to a lower value. That means that ongoing calculations would take some more time, but on the other hand the computer runs quiter and has a better battery life, and maybe even more calculations per battery charge.
I tried something like echo 2000000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
as root for every CPU core. However, this setup is lost if I restart the system, and even on every standby cycle.
Where to put this commands to make the change permanent? How can I enable an unprevileged user to invoke this command and adjust the frequency on his demand?