LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2010, 01:20 PM   #1
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
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 [ -/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 [ -/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
 
Old 09-07-2010, 02:52 PM   #2
sparkyhall
Member
 
Registered: Nov 2009
Location: Chatteris---UK
Distribution: Slackware 13.0 & 14.0
Posts: 42

Rep: Reputation: 8
You could try something like adding the following line to /etc/rc.d/rc.local:

echo 1800 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

Next time you boot the min frequency should be 1800MHz
 
Old 09-07-2010, 03:54 PM   #3
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sparkyhall View Post
You could try something like adding the following line to /etc/rc.d/rc.local:

echo 1800 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

Next time you boot the min frequency should be 1800MHz
I put on the line in /etc/rc.d/rc.local and did:

Quote:
#/etc/rc.d/rc.local restart
but the minimum frequency continues to 1000Mhz.


Is it necessary I reboot?

many thanks
 
Old 09-07-2010, 04:36 PM   #4
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
I think I solve!

Quote:
#cpufreq-set -d 1800000
Now the frequency is at 1.8GHz at minimum ...
There is only include the command in /etc/rc.d/rc.local and see if this works ...

thanks

ps: man cpufreq-set

Last edited by afreitascs; 09-07-2010 at 05:04 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the minimum working frequency ? kashyapa Linux - General 1 11-16-2009 06:46 PM
Cpufreq ondemand works just to one frequency jena Linux - Software 9 01-09-2008 09:02 AM
cpufreq not supported Phleps Linux - Hardware 1 10-29-2007 06:03 PM
Could use some help with cpufreq lumix Linux - Laptop and Netbook 10 03-27-2007 02:25 PM
cpufreq not working nickptar Linux - Hardware 3 06-16-2006 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration