Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Change default cpufreq governer to ondemand? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
beerisgoodmate
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2005
Posts: 129

PostPosted: Sat Oct 21, 2006 7:54 am    Post subject: Change default cpufreq governer to ondemand? [solved] Reply with quote

I have a Dell m70 laptop with a pentium M processor.

I can happily change the cpu governor using eg:
cpufreq-set -g ondemand

But Whenever I reboot my laptop it is reset set to userspace, with the frequency set to 2GHz. This gives terrible battery life and means the fans are often noisy.

This is how my kernel is configured:
Code:
[*] CPU Frequency scaling                       
[ ]   Enable CPUfreq debugging                                         
<*>   CPU frequency translation statistics                             
[ ]     CPU frequency translation statistics details                   
      Default CPUFreq governor (userspace)  --->                       
<*>   'performance' governor                                           
<*>   'powersave' governor                                             
---   'userspace' governor for userspace frequency scaling             
<*>   'ondemand' cpufreq policy governor                               
 <*>   'conservative' cpufreq governor


under default governor, I can only choose between userspace and performance.

Is there away to set default to ondemand or conservative?

using gentoo-sources-2.6.18


Last edited by beerisgoodmate on Sat Oct 21, 2006 8:46 am; edited 1 time in total
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Sat Oct 21, 2006 8:21 am    Post subject: Reply with quote

In cpufrequtils you have relevant config file (edit /etc/conf.d/cpufrequtils), then rc-update add cpufrequtils boot.
Or you can add "echo "ondemand" >> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" to local.start file.
Back to top
View user's profile Send private message
beerisgoodmate
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2005
Posts: 129

PostPosted: Sat Oct 21, 2006 8:48 am    Post subject: Reply with quote

great thanks, quickest solve I have ever had.

supprised I couldn't find such a simple solution on the forums, I had already edited the config file but hadn't added it boot.

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum