Results 1 to 10 of 36

Thread: How to make powertop suggestions permanent?

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Beans
    16
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    How to make powertop suggestions permanent?

    Dear All,

    In comparison to Windows Vista (average 4 hours) I only get a maximum of 3 hours battery life from my Lenovo Thinkpad R400 laptop when running Ubuntu 9.04.

    As suggested in some other thread, I ran powertop to see, if I can reduce energy consumption. These where the the suggestions given:

    • Enable SATA ALPM link power management via: echo min_power > /sys/class/scsi_host/host0/link_power_management_policy or press the S key.
    • increase the VM dirty writeback time from 5.00 to 15 seconds with: echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
    • Enable laptop-mode by executing the following command: echo 5 > /proc/sys/vm/laptop_mode
    • Enable USB autosuspend by pressing the U key or adding usbcore.autosuspend=1 to the kernel command line in the grub config
    • Disable 'hal' from polling your cdrom with: hal-disable-polling --device /dev/cdrom 'hal' is the component that auto-opens a window if you plug in a CD but disables SATA power saving from kicking in.


    I understand that powertop changes are confined to the active session. Does anyone know how I could make these changes permanent?

    Thanks a lot for your help, mayoban

    ---
    I am using Ubuntu 9.04, 64-bit version
    on a Lenovo Thinkpad R400, Type 7439-A85
    Gnome Desktop with Compiz Window Manager and Cairo-Dock

  2. #2
    Join Date
    Sep 2006
    Beans
    3,165
    Distro
    Ubuntu Karmic Koala (testing)

    Re: How to make powertop suggestions permanent?

    writing those commands to /etc/rc.local MAY do the trick.

  3. #3
    Join Date
    Feb 2009
    Beans
    16
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to make powertop suggestions permanent?

    Hi binbash,

    Thanks for your reply. I forgot one important question in the initial post:

    How can I make sure, that the changes are only active, when the computer is in battery / laptop mode?

    If I understand the purpose of rc.local correctly, changes would be enabled for all sessions.

    Cheers, mayoban

  4. #4
    Join Date
    Apr 2009
    Location
    home
    Beans
    88
    Distro
    Kubuntu

    Re: How to make powertop suggestions permanent?

    take a look in /etc/pm/power.d if you have pm-utils installed..

  5. #5
    Join Date
    Nov 2006
    Location
    Germany
    Beans
    244
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to make powertop suggestions permanent?


  6. #6
    Join Date
    Feb 2009
    Beans
    16
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to make powertop suggestions permanent?

    Thanks for the replies!

    Re djurny: I checked and I do have pm-utils installed.

    Re Axx83: I looked into the post. To me as a Linux beginner, it looks a little bit complicated. Given these instructions, I would not be knowing, what exactly I am doing. Do you know, if there may be a more elaborate explanation out there, or even a GUI for that purpose?

    Cheers, mayoban

  7. #7
    Join Date
    Nov 2005
    Location
    Leeds, UK
    Beans
    1,634
    Distro
    Ubuntu Development Release

    Re: How to make powertop suggestions permanent?

    Quote Originally Posted by Axx83 View Post
    Thanks!

    mayoban: It is really simple, just read the start of the files and you should get the idea.

Tags for this Thread

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
  •