Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: HOWTO: Configure CPU scaling to decrease heat and increase battery life

  1. #11
    Join Date
    May 2006
    Beans
    22

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    Wow guys thanks for all of the replies. I wrote this months ago and totally forgot all about this thread and just found it again. If anyone has any improvements or suggestions I will be happy to add them.

  2. #12
    Join Date
    Jan 2008
    Location
    UK
    Beans
    34
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    Thanks for guide worked great.

  3. #13
    Join Date
    Aug 2006
    Location
    Évora, Portugal
    Beans
    15
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    Quote Originally Posted by thebert View Post
    Wow guys thanks for all of the replies. I wrote this months ago and totally forgot all about this thread and just found it again. If anyone has any improvements or suggestions I will be happy to add them.


    Hi All,
    thanks for the guide!

    I was noticing that on my core 2 duo processor laptop it is not possible to set different frequencies for the two cores. Is that normal?

    PS
    I'm not even sure that it can be somehow useful, just asking.

  4. #14
    Join Date
    Nov 2006
    Location
    Oslo, Norway
    Beans
    38
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    To op: Heres a simple script that allows one to select the modes without the manual hassle of cat <governor> /sys/.... for each core or without having to go overkill and use kpowersave. n00b scripting but it gets the job done =)

    To lutra: yes, for C2D/Q all cores have to be set to the same governor to be in effect. Think the upcoming Phenoms from AMD will allow seperate core speeds.

    Download link
    Code:
    #!/bin/bash
    # cpu_speed.sh
    # Last edit: 2008-02-28
    
    if [ $1 = auto ] ; then MODE=ondemand
        elif [ $1 = max ] ; then MODE=performance
        elif [ $1 = min ] ; then MODE=powersave
        elif [ $1 = user ] ; then MODE=userspace
        elif [ $1 = laptop ] ; then MODE=conservative # Said to only work on laptop processors.
        else
            echo "No mode selected"
            exit
    fi
    
    CORES=$(ls /sys/devices/system/cpu | grep cpu | wc -l) # Outputs number of cores
    let CORES=CORES-1 # Core adjustment for further use
    
    COUNTER=0
    while [ $COUNTER -le $CORES ]; do
        echo $MODE | sudo tee /sys/devices/system/cpu/cpu$COUNTER/cpufreq/scaling_governor > /dev/null 
        # Confused?. Tee reads std.out and writes that into file and std.out, that
        # part we don't need so the black hole /dev/null can eat that part
        echo Core $COUNTER mode: $MODE
        let COUNTER=COUNTER+1
    done
    Last edited by Bad_Byte; February 28th, 2008 at 12:11 PM.
    The sentence below this one is true.
    The sentence above this one is false.

  5. #15
    Join Date
    Sep 2006
    Location
    Denmark
    Beans
    202
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    For the XFCE4 people:
    Code:
    sudo apt-get install xfce4-cpu-freq-plugin xfce4-governor-plugin
    and a thread:
    http://ubuntuforums.org/showthread.php?t=516383

  6. #16
    Join Date
    Sep 2005
    Location
    Northfleet, Kent, UK
    Beans
    345
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    Great guide - thanks for this. Should now be able to extend my hp laptop's battery life a little bit more.

  7. #17
    Join Date
    Apr 2008
    Beans
    11
    Distro
    Fluxbuntu

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    After all the praise on this HowTo, a slightly more negative note: on my Feisty system (Sony Vaio) the very 1st command fails with:

    gijs@gijs:~$ ls /sys/devices/system/cpu/cpu0/cpufreq
    ls: /sys/devices/system/cpu/cpu0/cpufreq: No such file or directory


    Now what I do to reduce the heat my laptop is emitting?

  8. #18
    Join Date
    Jan 2008
    Beans
    40

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    Quote Originally Posted by GijsH View Post
    After all the praise on this HowTo, a slightly more negative note: on my Feisty system (Sony Vaio) the very 1st command fails with:

    gijs@gijs:~$ ls /sys/devices/system/cpu/cpu0/cpufreq
    ls: /sys/devices/system/cpu/cpu0/cpufreq: No such file or directory
    I get that too

    I've got a Pentium M 1.6Ghz

  9. #19
    Join Date
    Mar 2008
    Beans
    18

    Exclamation Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life




    anybody please help me

    i have changed the setting to performance ,
    and when just restarted my laptop its unable to start
    its making teet teet sound and then no display

    my laptop is hp dv2000 and its configuration is

    intel core 2 duo 1.83 ghz

    1gm ram and 128 mb nvidia graphic card

  10. #20
    Join Date
    May 2007
    Location
    California, USA
    Beans
    246

    Re: HOWTO: Configure CPU scaling to decrease heat and increase battery life

    Sorry to break it to you, but ondemand is superior to conservative on intel chipsets. Intel's own kernel developer explains why:

    http://www.bughost.org/pipermail/pow...ay/000166.html
    http://www.bughost.org/pipermail/pow...ay/000073.html
    http://www.bughost.org/pipermail/pow...ay/000071.html

    The basic idea is this: Since you always have to keep the northbridge running, power usages scale slower than cpu speed increases. This means it is faster to jump to the highest speed and then back down to idle, because it takes longer to perform the same operations at a slower speed.
    Last edited by InfinityCircuit; August 9th, 2008 at 04:24 AM.

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •