Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot-time argument to kernel to set cpufreq governor?
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
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Mon Jun 06, 2005 4:43 pm    Post subject: Boot-time argument to kernel to set cpufreq governor? Reply with quote

I've been reading the kernel cpufreq docs and googling but I can't find out if there's a way to set the cpu frequency governor by passing an argument to the kernel in grub.conf

Does anyone know if this is possible? I'd really like to have ondemand set as soon as my computer's powered on.

Any info would be appreciated
Back to top
View user's profile Send private message
EtherealSoul
n00b
n00b


Joined: 06 May 2003
Posts: 34
Location: Portugal

PostPosted: Mon Jun 06, 2005 4:55 pm    Post subject: Reply with quote

I had that kinda problem and I've done what I seen in the forums I don't remember is one in special (long time ago)

just add this line to your /etc/conf.d/local.start

Quote:
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


and run rc-update add local default

everytime it boots it will put the ondemand governor
just reboot and check it out :P
_________________
Death is just another step to get into another plane of existence.
Back to top
View user's profile Send private message
uncleringo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 146

PostPosted: Mon Jun 06, 2005 4:58 pm    Post subject: Reply with quote

Thanks. I kinda knew I could do it that way but was thinking it should be possible to tell the kernel earlier than that. It seems strange to me that in the kernel config you can only choose between performance and userspace for the default governors.
Back to top
View user's profile Send private message
EtherealSoul
n00b
n00b


Joined: 06 May 2003
Posts: 34
Location: Portugal

PostPosted: Mon Jun 06, 2005 5:02 pm    Post subject: Reply with quote

Maybe in a another release they put ir as a option in the kernel ...
who knows? :P
_________________
Death is just another step to get into another plane of existence.
Back to top
View user's profile Send private message
DaSmurf
n00b
n00b


Joined: 15 Apr 2005
Posts: 17

PostPosted: Mon Jun 06, 2005 11:40 pm    Post subject: Reply with quote

I thought it was stupid too, but the ondemand governor is not a default for a very good reason.
If the ondemand governor fails to initialize (for whatever reason) the system does not boot.

As for my method of setting the governor: emerge cpufreq-utils and add 'cpufreq-set -g ondemand' to your local.start

Pretty much the same as above, FWIW.
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