Right now, there is no simple way to set cpufreq policy. The attached initscript sets the cpufreq policy based on setting in an /etc/conf.d/ file. It could probably be a little better (right now it only supports a single cpu for example) but it's a good starting point. Reproducible: Always Steps to Reproduce:
Created attachment 59087 [details] The cpufreq-policy initscript
Created attachment 59088 [details] A skeleton configuration for cpufreq-policy
I'm not sure whether this should be added to the cpufreq-utils package, baselayout, or be its own package entirely, which is why there's no ebuild or anything like that.
There's a simple init script for setting the cpufreq governor included in the newly added sys-power/cpufrequtils-0.3-r1. Closing as WONTFIX, please re-open if you find the current script insufficient.
Actually closing this time ;)
I think my script is a little more flexible than the one in cpufrequtils-0.3-r1, since it allows setting not only the governor, but the minimum and maximum speeds the governor can set the processor to. (though I apologize for not seeing the other bug when I opened this one... bad search:) Also, if the user doesn't set a policy, rather than failing, it simply warns the user that the default policy will be in use (it's not really an error if they don't want to do anything). I do think the checkconfig function was a good idea though, and I've merged it into my script. I also fixed my conf.d file so that it's more gentooized:) I'll attach new versions. There still needs to be some way to set individual policies per cpu on multiprocessors... but I don't have a multiproc machine to test it on:) And perhaps a way to set a specific speed rather than using a governor at all... but I'm not sure if I really like that option. Also, I was thinking that perhaps there should be a way for it to change policies based on the softlevel (e.g. you could change the minimum and maximum speeds when you go from battery to wall power), but I'm not entirely sure how that would work, since, as far as I know, there's no way to simply force a restart when changing softlevels.
Created attachment 59130 [details] Revised init script
Created attachment 59131 [details] revised conf.d file
All the above can already be achieved in a much more generic way using sys-power/cpufreqd. Closing as WONTFIX.