FS#14083 - [cpufrequtils] do not set min_ and max_freq in /etc/conf.d/cpufreq

Attached to Project: Arch Linux
Opened by Matthias Dienstbier (fs4000) - Friday, 03 April 2009, 17:44 GMT
Last edited by Giovanni Scafora (giovanni) - Tuesday, 15 December 2009, 14:44 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

At the moment /etc/conf.d/cpufreq looks like this:

#configuration for cpufreq control

# valid governors:
# ondemand, performance, powersave,
# conservative, userspace
governor="ondemand"

# valid suffixes: Hz, kHz (default), MHz, GHz, THz
min_freq="800MHz"
max_freq="1.6GHz"

I would suggest commenting out min_freq and max_freq because it will be autodetected for nearly all CPUs.
As most people want ondemand governor, there will be no need for changing anything at all in this config.
This task depends upon

Closed by  Giovanni Scafora (giovanni)
Tuesday, 15 December 2009, 14:44 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Friday, 03 April 2009, 22:48 GMT
Though these speeds are autodetected, they reflect the minimum and maximum speed for the CPU. The settings made from /etc/conf.d/cpufreq are the configured values which could be different. If I want to save power, but don't want to step to the lowest speed for some reason, this method provides it.
Comment by Matthias Dienstbier (fs4000) - Sunday, 05 April 2009, 12:02 GMT
Well, I did not want to remove these options, but make them disabled by default. This would fit for much more people as any specific default setting. If anyone really wants to limit the range he still can uncomment and set these options correctly.

I imagined something like that:
# limit frequency range (optional)
# valid suffixes: Hz, kHz (default), MHz, GHz, THz
#min_freq="2.25GHz"
#max_freq="3GHz"

Then /etc/rc.d/cpufreq will not set any limits and use all frequencies available:
if [ "$min_freq" != "" ]; then
params="$params -d $min_freq"
fi
if [ "$max_freq" != "" ]; then
params="$params -u $max_freq"
fi

Loading...