Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Other Ways To Optimize Your Linux Battery Life

  1. #1
    Join Date
    Jan 2007
    Posts
    14,913

    Default Other Ways To Optimize Your Linux Battery Life

    Phoronix: Other Ways To Optimize Your Linux Battery Life

    After writing recently about the PowerTOP 2.6 release and mentioning that some new power consumption/efficiency tests were in the works at Phoronix, a few readers wrote in asking about other ways to extend their battery life under Linux...

    http://www.phoronix.com/vr.php?view=MTY5Njg

  2. #2
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,900

    Default

    Intel graphics users make sure you're running rc6=7, LVDS downclocking, fbc compression, semaphores CAN help,

    Intel / realtek audio users: both have power management module options

    Also make sire you disable nmi watchdog

  3. #3
    Join Date
    Dec 2010
    Location
    MA, USA
    Posts
    1,347

    Default

    on my intel laptop, I HAVE to downclock the GPU or else my system shuts down if GPU usage gets too high. It doesn't appear CPU max clock has any effect on this.

  4. #4
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,900

    Default More comprehensive post...

    [Intel Graphics Users]
    Quote Originally Posted by /etc/modprobe.d/intel_gfx_powersave.conf
    options i915 semaphores=1 i915_enable_rc6=7 i915_enable_fbc=1
    [Radeon Graphics Users]
    Quote Originally Posted by /etc/modprobe.d/radeon_gfx_powersave.conf
    options radeon dpm=1
    ** "modinfo radeon | grep parm" also reveals parameters: "aspm" "runpm" "dynclks"-- effects unknown. If you want to experiment, set them all to 1 **

    [Intel Sound Card Users]
    Quote Originally Posted by /etc/modprobe.d/intel_audio_powersave.conf
    options snd_hda_intel power_save=1
    [AC97 (Realtek?) Sound Card Users]
    Quote Originally Posted by /etc/modprobe.d/ac97_audio_powersave.conf
    options snd_ac97_codec power_save=1
    [Kernel parameters]
    Quote Originally Posted by /etc/sysctl.d/dirty.conf
    vm.dirty_writeback_centisecs = 1500
    Quote Originally Posted by /etc/sysctl.d/disable_watchdog.conf
    kernel.nmi_watchdog = 0
    [Intel CPU Users]
    Downloading, compile, and run Intel's Thermal_Daemon

    Web Link: https://github.com/01org/thermal_daemon
    git clone: https://github.com/01org/thermal_daemon.git

    Dependencies and instructions for compilation on Fedora(-like) and Ubuntu(-like) systems are given in the Readme. Systemd .service file is provided. Merely activate and it will self-administrate.

    [All Laptop Users]
    Laptop-mode-tools has mostly been supplanted by TLP from what I can tell . TLP started out as a mostly thinkpad-centric power management service but its grown beyond that. Some things are still thinkpad-limited but its only 1 or 2 things.

    Arch wiki link: https://wiki.archlinux.org/index.php/TLP
    Instructions: http://linrunner.de/en/tlp/docs/tlp-...anagement.html

    -------------------------------------------------

    Thats all I've got, just my usual pointers for my own gear / if anyone asks me. Michael, feel free to reference / cite this post if you feel it necessary or helpful.

  5. #5
    Join Date
    Oct 2013
    Posts
    195

    Default

    @Ericg Thank you very much! It is probably the most valuable post ever made in Phoronix forums.

  6. #6
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,900

    Default

    Quote Originally Posted by siavashserver View Post
    @Ericg Thank you very much! It is probably the most valuable post ever made in Phoronix forums.
    Not a problem Siavash. I made the first post from my phone, and afterwards I figured "Why not actually explain what the hell I'm talking about?" so I threw that second post together really quickly.

    Just an addendum: The post above is by no means meant to be a completely comprehensive list of power management. Its just the changes -I- usually make and then call it a day. Obviously Nouveau is missing-- they are running at minimum clockspeeds anyway... Also Wireless Power Management is purposefully left out. I left it out because at least in my personal experience the "Power Management" code makes it pingpong back and forth between power states so fast that all the user gets is crappy performance.

  7. #7
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,900

    Default

    ADDENDUM!

    Just noticed there is a mistake in the above post. Intel Graphics Users line should actually be...

    Code:
    options i915 semaphores=1 i915_enable_rc6=7 i915_enable_fbc=1 lvds_downclock=1
    Addition is bolded. That will downclock the refresh rate of your laptop's screen for increased power savings.

    EDIT: DISCLAIMER: I make no promises that these changes will work reliably or safely on anyone's hardware other than my own. Happy hacking.

  8. #8
    Join Date
    May 2014
    Posts
    2

    Default pm tricks

    I found some really easy "tricks" following this link and reading the comments:

    http://crunchbang.org/forums/viewtop...0720%23p110720

    I now copy a number of scripts be run "automagically" every time laptop is on power and using powertop I find only 2 actions that I am recommended following that. One being my wireless I ignore that (as the foss driver I use do not seem to have powersavings anyhow) and the other some setting that does not affect much. Currently my battery easily outlast my UPS that only feeds a wireless router and an outdoor wimax unit

  9. #9
    Join Date
    Mar 2009
    Location
    in front of my box :p
    Posts
    797

    Default

    snd_ac97_codec power_save=1
    You can do that also in the kernel config if you bake your own kernels (Gentoo anyone?). There is also timeout values and other options to be set. It spreads a bit though. Some of the options are in the energy management section, some in drivers, some in CPU section of the config.

    > aspm
    PCIe ASPM maybe?

    > dynclks
    http://www.x.org/wiki/RadeonFeature/
    go there and check
    --> "Linux kernel parameters"


    What about these ACPI tables? I guess the kernel can now handle most of the abominations made by MSFT compilers there but still... is there any good tutorial for beginners how to get that stuff fixed?

  10. #10
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,130

    Default

    There are many tutorials, google for the Intel compiler name (iasl).

Posting Permissions

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