where to set cpufreq governor default value

Francisco Borges francisco.borges at gmail.com
Sun Jan 4 22:02:22 UTC 2009

On Sun, Jan 4, 2009 at 4:08 AM, Owen Townend <owen.townend at gmail.com> wrote:
> 2009/1/4 Rashkae <ubuntu at tigershaunt.com>:
>> Francisco Borges wrote:
>>> Hello,
>>> There has been a discussion about CPU frequency governors.
>>> Could anyone tell me where in /etc I could configure the system
>>> default CPU governor?
>>> Kind regards,
>> Unfortunately, it's not so simple.
>> In my Gutsy system, the configuration of CPU frequency scaling is
>> controlled by the /etc/init.d/powernowd script.
>> Examining this script, I see that "ondemand" is hard coded in this
>> script.  If you are expert user, then you can customize this to your
>> preference.  Otherwise, you can use the GUI applet that Ubuntu installs
>> by default on your Gnome desktop to control cpu scaling.
>> If you want to experiment with this, I would also suggest reading the
>> cpu-freq/user-guide.txt in the Linux Source Documentation.
> Hey,
> Have a look around in /sys/devices/system/cpu/cpu0/cpufreq/
> You can learn a bit from reading what is available in there and can
> write to some of the files to affect changes.
> e.g.
> # echo "performance" > scaling_governor
> You can also make the changes more permanent using sysctl
> (/etc/sysctl.conf or /etc/sysctl.d/15-your-custom-script)

Hello Owen,

I would like to thank you and Rashkae for the answers.

I wasn't aware of /etc/sysctl.conf.

FWIW (due to all that previous discussion about running full throttle or not):

I have a "Intel Core 2 Quad Q6600 G0 2.40 GHz" (note the "G0' which
has special power savings features), and discovered that my desktop
will run with the exact same power consumption in watts (as measured
at the wall outlet) whether it runs in 1.6Ghz or 2.4Ghz. Since the
computer is idle most of the time and the kernel runs tickless, with
both "ondemand" and "performance" for the CPU, the desktop as a whole
runs with 74W-77W when browsing or writing emails.

Kind regards,

More information about the ubuntu-users mailing list