where to set cpufreq governor default value

Owen Townend owen.townend at gmail.com
Sun Jan 4 03:08:53 UTC 2009


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)

cheers,
Owen.




More information about the ubuntu-users mailing list