Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Energy consumption

  1. #21
    Join Date
    Jul 2005
    Beans
    34

    Re: Energy consumption

    On my vaio i have some improvements with powertop's tunables, but i don't know how to get those changes permanent.

    I can go from ~17W to ~14W, not bad. But at the moment I have to open powertop, go to Tunables tab and toggle every switch marked with BAD.
    In particular I had two unused peripheals draining ~400 mW each, (fingerprint reader and ethernet card) After activating the PM of those peripheals via powertop, now the drain 0mW..



    another remarbable thing that i spotted in powertop is that the display backlight is reported three times (draining ~800 mW each time). Maybe it's just a powertop problem, but I think I'll make a natty live usb to see if it was the same.

  2. #22
    Join Date
    Aug 2010
    Beans
    767
    Distro
    Ubuntu

    Re: Energy consumption

    as far as i know, you cannot make the "tunables" permanent, which somewhat undermines the app's usefulness. making the changes each time you reboot just isn't going to do.

    needs fixing.
    If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car.

  3. #23
    Join Date
    Jul 2005
    Beans
    34

    Re: Energy consumption

    Quote Originally Posted by flipper T View Post
    as far as i know, you cannot make the "tunables" permanent, which somewhat undermines the app's usefulness. making the changes each time you reboot just isn't going to do.

    needs fixing.
    Fair enough.
    Apparently PowerTOP is just a monitoring tool, and those settings should be applied by other component of the OS. Indeed previous versions of powertop did not have those switches at all..


    Now we just need to understand how to apply those settings.. I've tryed jupiter and it doesn't improve the situation...

  4. #24

    Re: Energy consumption

    Quote Originally Posted by clemmy View Post
    Fair enough.
    Apparently PowerTOP is just a monitoring tool, and those settings should be applied by other component of the OS. Indeed previous versions of powertop did not have those switches at all..


    Now we just need to understand how to apply those settings.. I've tryed jupiter and it doesn't improve the situation...
    Take the tuneables that powertop provides, and add them to Jupiter.

    http://sourceforge.net/apps/mediawik...p?title=Kernel

    EDIT: @ Clemmy below (can't reply because it's closed). Congrats, you found the hook that Jupiter uses.

    It's cool that you put your own script there, but that is the point of Jupiter .. not having to do that.
    Last edited by fuduntu; October 13th, 2011 at 06:04 PM.
    [ Fuduntu.org ] - [ Fuduntu Forum ] - [ Fuduntu Blog ] - [ Fuduntu Wiki ]

    For a classic desktop with the latest apps, get Fuduntu!

  5. #25
    Join Date
    Jul 2005
    Beans
    34

    Re: Energy consumption

    Quote Originally Posted by fuduntu View Post
    Take the tuneables that powertop provides, and add them to Jupiter.

    http://sourceforge.net/apps/mediawik...p?title=Kernel
    Hey, thank's!

    Following your advice I did some more research on internet, and eventually found that there is a software already installed that execs some scritps every time tha laptop is plugged/unplugged. It's pm-utils and it execs script inside /etc/pm/power.d/ so I decided to create a script for handling those values.

    I found a very useful script on this italian blog:
    http://blog.liberailvoip.it/2010/04/...a-prestazioni/

    and modified it as follows:
    Code:
    #!/bin/sh
    
    # Shell script to reduce energy consumption when running battery. Place
    # it in /etc/pm/power.d/ and give execution rights.
    
    # This is a modified version of an original version of by Skumpic and is
    # available here: http://blog.liberailvoip.it/2010/04/27/
    # ubuntu-lucid-lynx-acer-aspire-one-impostazioni-ottimizzate-
    # autonomia-prestazioni/
    
    
    
    
    # Disable Wake On Lan
    ethtool -s eth0 wol d
    
    
    if on_ac_power; then
    
    # Start AC powered settings --------------------------------------------#
    
     
    # Disable laptop mode
    echo 0 > /proc/sys/vm/laptop_mode
     
    # Set SATA channel: max performance
    for foo in /sys/class/scsi_host/host*/link_power_management_policy;
    do echo max_performance > $foo;
    done
     
    # Set Max Power for wifi interface
    # change value according to your hardware!
    iwconfig wlan0 txpower 14    
     
    # Disable wifi power saving
    iwconfig wlan0 power off
     
    # CPU Governor: Performance
    for foo in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
    do echo performance > $foo;
    done 
    
    # Disabile USB autosuspend
    for foo in /sys/bus/usb/devices/*/power/level;
    do echo on > $foo;
    done
    
    # Disable PCI autosuspend
    for foo in /sys/bus/pci/devices/*/power/control;
    do echo on > $foo;
    done
     
    # Disabile audio_card power saving
    echo 0 > /sys/module/snd_hda_intel/parameters/power_save_controller
    echo 0 > /sys/module/snd_hda_intel/parameters/power_save
     
    # End AC powered settings ----------------------------------------------#
    
    
    
    
    
    else
    
    
    
    
    
    
    # Start battery powered settings ---------------------------------------#
     
    # Enable Laptop-Mode disk writing
    echo 5 > /proc/sys/vm/laptop_mode
     
    # Set SATA channel to power saving
    for foo in /sys/class/scsi_host/host*/link_power_management_policy;
    do echo min_power > $foo;
    done
     
    # Activate wifi power saving
    iwconfig wlan0 power timeout 500ms
     
    # Reduce wifi txpower
    iwconfig wlan0 txpower 5
     
    # Select Ondemand CPU Governor
    for foo in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
    do echo ondemand > $foo;
    done
     
    # Activate USB autosuspend
    for foo in /sys/bus/usb/devices/*/power/level;
    do echo auto > $foo;
    done
    
    # Activate PCI autosuspend
    for foo in /sys/bus/pci/devices/*/power/control;
    do echo auto > $foo;
    done
     
    # Activate audio card power saving
    # (sounds shorter than 5 seconds will not be played)
    echo 5 > /sys/module/snd_hda_intel/parameters/power_save
    echo 1 > /sys/module/snd_hda_intel/parameters/power_save_controller
     
    # End battery powered settings -----------------------------------------#
    
    
    
    
     
    fi
    I have not reached natty's power consumption yet, but at least I've improved a little bit.

Page 3 of 3 FirstFirst 123

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
  •