afreitascs |
09-07-2010 01:20 PM |
How to use cpufreq as my 1.8g Hz minimum frequency instead of 1G Hz?
My AMD processor is a 5200 + and has its minimum frequency at 1GHz.
The ferquencias are used by cpufreq: 2700 Mhz, 2600 Mhz, 2400 Mhz, 2200 Mhz, 2000 Mhz, 1800 Mhz and 1000 Mhz .
My question is:
How could I tell for cpufreq use 1800Mhz as my minimum frequency?
Below, piece of my / etc / rc.d / rc.modules on the "CPU scaling governor"
===============
PHP Code:
### CPU frequency scaling support # # Below, set CPUFREQ to enable CPU frequency scaling to save system power. # # To always try to use CPU frequency scaling, set to: on # To never use CPU frequency scaling, set to: off # To use it only when the battery module is loaded (this will cause it to # be used by default with most laptops), set to: battery # CPUFREQ=on
# If CPUFREQ=battery and the battery module is loaded, turn on CPUfreq. #if [ "$CPUFREQ" = "battery" ]; then # if /sbin/lsmod | grep -wq battery ; then # # CPUFREQ=battery and a battery was detected, so change CPUFREQ # # to 'on' so that the block of script below will try to enable it. # CPUFREQ=on # fi #fi
### Enable CPU frequency scaling if requested: if [ "$CPUFREQ" = "on" ]; then ### CPU frequency scaling modules for the Linux kernel CPUfreq subsystem. # # Clock scaling allows you to change the clock speed of the CPUs on the fly. # This is a nice method to save battery power, because the lower the clock # speed is, the less power the CPU consumes. # # It should not hurt anything to try to load these modules. # # generic ACPI P-States based driver: # /sbin/modprobe acpi-cpufreq 2>/dev/null # AMD mobile K6-2/3+ PowerNow!: # /sbin/modprobe powernow-k6 2>/dev/null # AMD mobile Athlon PowerNow!: # /sbin/modprobe powernow-k7 2>/dev/null # AMD Cool&Quiet PowerNow!: /sbin/modprobe powernow-k8 2>/dev/null # Intel SpeedStep using the SMI BIOS interface: # /sbin/modprobe speedstep-smi 2>/dev/null # Intel SpeedStep on ICH-based chipsets: # /sbin/modprobe speedstep-ich 2>/dev/null # Intel Enhanced SpeedStep : # /sbin/modprobe speedstep-centrino 2>/dev/null # Intel Pentium4/Xeon clock modulation is not enabled by default. # The kernel documentation says "This adds the CPUFreq driver for Intel # Pentium 4 / XEON processors. When enabled it will lower CPU temperature # by skipping clocks. This driver should be only used in exceptional # circumstances when very low power is needed because it causes severe # slowdowns and noticeable latencies. Normally Speedstep should be used # instead." # If you still want to try the Pentium4/Xeon module, uncomment the next line: #/sbin/modprobe p4-clockmod 2>/dev/null # NatSemi Geode GX / Cyrix MediaGXm: # /sbin/modprobe gx-suspmod 2>/dev/null # Transmeta Crusoe / Efficeon LongRun: # /sbin/modprobe longrun 2>/dev/null # VIA Cyrix Longhaul: # /sbin/modprobe longhaul 2>/dev/null # nForce2 FSB changing cpufreq driver: # /sbin/modprobe cpufreq-nforce2 2>/dev/null # Enhanced PowerSaver driver for VIA C7 CPUs: # /sbin/modprobe e_powersaver 2>/dev/null
### CPU frequency scaling policies: # # Use the CPUFreq governor 'powersave' as default. This sets the # frequency statically to the lowest frequency supported by the CPU. #/sbin/modprobe cpufreq_powersave # # Use the CPUFreq governor 'performance' as default. This sets the # frequency statically to the highest frequency supported by the CPU. #/sbin/modprobe cpufreq_performance # # Use the CPUFreq governor 'conservative' as default. This allows you # to get a full dynamic frequency capable system by simply loading your # cpufreq low-level hardware driver. Be aware that not all cpufreq # drivers support the 'conservative' governor -- the fallback governor # will be the 'performance' governor. #/sbin/modprobe cpufreq_conservative # # Use the CPUFreq governor 'ondemand' as default. This allows you to # get a full dynamic frequency capable system by simply loading your # cpufreq low-level hardware driver. Be aware that not all cpufreq # drivers support the 'ondemand' governor -- the fallback governor will # be the performance governor. This seems to be the most-recommended # scaling policy, so rc.modules will try to load this by default. /sbin/modprobe cpufreq_ondemand 2>/dev/null
### CPU scaling governor: # # Set the default scaling_governor to be used (such as userspace or ondemand) # if there is a CPUFreq scaling policy module loaded that supports it: SCALING_GOVERNOR=ondemand # # Try to enable the scaling_governor selected above: if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ]; then if grep -wq "$SCALING_GOVERNOR" /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ; then if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then for SYSCPUFILE in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do echo "$SCALING_GOVERNOR" > $SYSCPUFILE done fi fi fi
fi # End enabling CPU scaling support
# We are done with these variables now: unset NEWMODS RELEASE CPUFREQ SCALING_GOVERNOR SYSCPUFILE
==========================
Thanks
|