# \[TRACKING\] Linux battery life tuning

**URL:** <https://community.frame.work/t/tracking-linux-battery-life-tuning/6665>\
**Category:** Linux\
**Tags:** other-distro, ubuntu\
**Created:** [September 13, 2021, 6:38am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665 "2021-09-13T06:38:48Z")\
**Posts on this page:** 20\
**Page:** 12

<div class="post-metadata">

**Author:** ![tim300](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@tim300](https://community.frame.work/u/tim300)\
**Post date:** [June 4, 2022, 1:35pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/226 "2022-06-04T13:35:28Z")

</div>

> [@junaruga](#):
>
> Oh I didn’t know that the SSD has the firmware. Thanks for explaining it to me.

I can get it with “inxi -Da | grep rev” on my system.

---

<div class="post-metadata">

**Author:** ![D.H](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/d.h/32/17958_2.png) [@D.H](https://community.frame.work/u/D.H)\
**Post date:** [June 4, 2022, 3:16pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/227 "2022-06-04T15:16:00Z")

</div>

> [@tim300](#):
>
> inxi -Da | grep rev

I had to run this as root using sudo.

@nrp  
SK Hynix P31

inxi - Da output:  
Drives:  
…  
model: SHGP31-500GM-2  
…  
serial: CJ09N90041050A\*\*\* (user redacted)  
rev: 41060C20  
…

I assume rev is the firmware revision, but I don’t know for sure.

I did not take awesome metrics with and without nvme.acpi, but I believe having this on cuts s2idle standby drain by 60-80%. I’ll try to get to doing some more specific metrics.

---

<div class="post-metadata">

**Author:** ![5uie1](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/5uie1/32/8550_2.png) [@5uie1](https://community.frame.work/u/5uie1)\
**Post date:** [June 4, 2022, 7:09pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/228 "2022-06-04T19:09:31Z")

</div>

On Slackware Linux here with powertop (i5 11th gen, 32GB RAM). I have 2 USB-C and 2 USB-A currently installed, and 4.5 hrs to 7.5 hrs (I am yet to test the full 10 hours 20 minutes that it shows me).

However I only see a marginal/negligble increase in battery life on stand by with “nvme.noacpi=1”.

> model: WDS100T1X0E-00AFY0  
> rev: 614900WD

---

<div class="post-metadata">

**Author:** ![Usernames](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/usernames/32/40546_2.png) [@Usernames](https://community.frame.work/u/Usernames)\
**Post date:** [June 5, 2022, 5:35am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/229 "2022-06-05T05:35:02Z")

</div>

> [@Nils](#):
>
> it’s rather difficult to see the actual discharge rate over suspended periods.

I’m using “Vitals” Gnome extension, resuming from s2idle I can briefly see the drain rate during that time (above the dropdown box in the panel) but I calculate it from the total “Energy (now)” before sleep and after.

 ![Screenshot from vitals](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/9/9dd79cfaa463d0e8ed5fa60dbee1683a86519c44.png)

---

<div class="post-metadata">

**Author:** ![A\_Fan](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@A\_Fan](https://community.frame.work/u/A_Fan)\
**Post date:** [June 5, 2022, 5:12pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/230 "2022-06-05T17:12:39Z")

</div>

SSD: SN850 1TB  
SSD firmware version: 614900WD  
Framework laptop BIOS version: 3.07  
OS: Ubuntu 22.04 LTS  
Kernel version: 5.15.0-35-generic  
Kernel command line: quiet splash nvme.noacpi=1  
Sleep / suspend method: systemctl suspend  
Sleep / suspend duration: 8 hours  
Battery charge lost / drained: 33%

---

<div class="post-metadata">

**Author:** ![lbkNhubert](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lbkNhubert](https://community.frame.work/u/lbkNhubert)\
**Post date:** [June 6, 2022, 1:03am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/231 "2022-06-06T01:03:54Z")

</div>

@A_Fan - that drain seems high. What modules do you have installed, and what sleep mode (s2idle / deep) do you have set?

For reference, I’m running manjaro, sk hynix gold p31 ssd, kernel 5.17.9-1 ,4x usb-c, and I am losing under 10% overnight.

---

<div class="post-metadata">

**Author:** ![A\_Fan](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@A\_Fan](https://community.frame.work/u/A_Fan)\
**Post date:** [June 6, 2022, 1:23am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/232 "2022-06-06T01:23:17Z")

</div>

> [@lbkNhubert](#):
>
> that drain seems high. What modules do you have installed, and what sleep mode (s2idle / deep) do you have set?

Cards removed to limit the variables.

Sleep mode, whatever is OOTB with the Ubuntu 22.04 LTS. No change there.

Mind you, I seem to see two different drain rates on my system…even with no hardware changes, nor software configuration changes. The only thing that changed is how many times the system has been placed into suspend since it first powered up.

On the first suspend, it was draining maybe 1-1.5% an hour… However, on subsequent suspend, it was draining like 4% an hour.

---

<div class="post-metadata">

**Author:** ![lbkNhubert](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lbkNhubert](https://community.frame.work/u/lbkNhubert)\
**Post date:** [June 6, 2022, 1:44am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/233 "2022-06-06T01:44:31Z")

</div>

I would guess that it is s2idle. If you already know the following, skip it. If not, you can check what you currently have in place by running cat /sys/power/mem\_sleep. If you want to set it to deep, add “mem\_sleep\_default=deep” to the grub config and update grub.

---

<div class="post-metadata">

**Author:** ![A\_Fan](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@A\_Fan](https://community.frame.work/u/A_Fan)\
**Post date:** [June 6, 2022, 3:06am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/234 "2022-06-06T03:06:20Z")

</div>

> [@lbkNhubert](#):
>
> you can check what you currently have in place by running cat /sys/power/mem\_sleep.

Thanks for pointing this out. I’ll take another look after my sleep test.

I feel that someone might want to write a script that collects and shows what/which battery related optimization is active / inactive. Something like what the Get-SpeculationControlSettings cmdlet (on Windows) would do…to summarize a system’s spectre fixes.

---

<div class="post-metadata">

**Author:** ![Cassidy\_Wilson](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/cassidy_wilson/32/1986_2.png) [@Cassidy\_Wilson](https://community.frame.work/u/Cassidy_Wilson)\
**Post date:** [June 6, 2022, 5:56am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/235 "2022-06-06T05:56:55Z")

</div>

> [@nrp](#):
>
> For folks who are seeing improvements in battery life during standby after setting the “nvme.noacpi=1” kernel parameter, could you share what SSD you are using and if possible, what version of firmware is running on it?

SSD: WD\_BLACK SN750  
Firmware version: 111130WD

---

<div class="post-metadata">

**Author:** ![Nils](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@Nils](https://community.frame.work/u/Nils)\
**Post date:** [June 6, 2022, 9:34am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/236 "2022-06-06T09:34:30Z")

</div>

> [@A\_Fan](#):
>
> Mind you, I seem to see two different drain rates on my system…even with no hardware changes, nor software configuration changes. The only thing that changed is how many times the system has been placed into suspend since it first powered up.
> 
> On the first suspend, it was draining maybe 1-1.5% an hour… However, on subsequent suspend, it was draining like 4% an hour.

Isn’t that what the `acpi_osi='!Windows 2020'` kernel command line option helps for? Mind you: some quoting is required to protect the ! and some tools rely on quotes in the grub configuration as well. For instance, Fedora uses `/etc/default/grub` where `GRUB_CMDLINE_LINUX_DEFAULT` has its value delimited by `"..."`. A tool like “grub-customizer” messes up the quotes. I _think_ the `'...'` delimiters are valid too, but I’m happy to be corrected.

---

<div class="post-metadata">

**Author:** ![nrp](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/nrp/32/352_2.png) [@nrp](https://community.frame.work/u/nrp)\
**Post date:** [June 9, 2022, 5:30pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/237 "2022-06-09T17:30:34Z")

</div>

> [@Cassidy\_Wilson](#):
>
> SSD: WD\_BLACK SN750  
> Firmware version: 111130WD

To clarify, with that firmware, are you seeing differences between having nvme.noacpi=1 enabled or not?

---

<div class="post-metadata">

**Author:** ![Cassidy\_Wilson](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/cassidy_wilson/32/1986_2.png) [@Cassidy\_Wilson](https://community.frame.work/u/Cassidy_Wilson)\
**Post date:** [June 11, 2022, 6:15pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/238 "2022-06-11T18:15:47Z")

</div>

> [@nrp](#):
>
> To clarify, with that firmware, are you seeing differences between having nvme.noacpi=1 enabled or not?

Yes, huge difference. It lasts much longer on standby.

---

<div class="post-metadata">

**Author:** ![Linen](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Linen](https://community.frame.work/u/Linen)\
**Post date:** [June 16, 2022, 9:56am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/239 "2022-06-16T09:56:42Z")

</div>

> [@Linen](#):
>
> Has anyone compared tlp and auto-cpufreq? I’ve seen from a reddit thread that auto-cpufreq is actually better. I installed it and removed tlp and seem to be getting lower power consumption.

I’ve tried auto-cpufreq for the past 3 weeks and I seem to be getting better battery life, about 1 - 2 hours more. I don’t have time for now to do a thorough test, but I am pretty sure that using only auto-cpufreq is better than using tlp. I hope someone can confirm this through testing.

---

<div class="post-metadata">

**Author:** ![Tim\_Theil](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@Tim\_Theil](https://community.frame.work/u/Tim_Theil)\
**Post date:** [June 18, 2022, 8:27pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/240 "2022-06-18T20:27:23Z")

</div>

Does it improve the battery life, if I remove components that I will not use?  
Since you can easily remove or add components this should be considered.

Removing camera, Audio/microphone, fingerprint reader, Wifi module or mousepad could help some users to save energy.

Does everything help, or only some things?  
Can some bugs appear if I have a component removed? Can i make some simple changes to prevent these bugs?

Thank you already for replies!

---

<div class="post-metadata">

**Author:** ![Peter\_Schofield](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@Peter\_Schofield](https://community.frame.work/u/Peter_Schofield)\
**Post date:** [June 18, 2022, 8:37pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/241 "2022-06-18T20:37:21Z")

</div>

removing the wifi card potentially could save power, as will removing unused active expansion card modules (active = not usb-c). I believe the camera and microphone switches cut power to the respective modules.

---

<div class="post-metadata">

**Author:** ![Shiroudan](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/shiroudan/32/15620_2.png) [@Shiroudan](https://community.frame.work/u/Shiroudan)\
**Post date:** [June 18, 2022, 10:16pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/242 "2022-06-18T22:16:28Z")

</div>

> [@Tim\_Theil](#):
>
> Does everything help, or only some things?  
> Can some bugs appear if I have a component removed? Can i make some simple changes to prevent these bugs?
> 
> Thank you already for replies!

Some you can just disable in the BIOS, I imagine the laptop also wouldn’t look very good with the fingerprint reader removed. Speakers are definetly removeable though. I don’t see how removing these would save a lot of power though, as they can just be hardware disabled. Although it definetly makes the laptop lighter which is a plus! (You would not believe how light the laptop feels without the battery).

---

<div class="post-metadata">

**Author:** ![Linen](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Linen](https://community.frame.work/u/Linen)\
**Post date:** [June 19, 2022, 5:50am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/243 "2022-06-19T05:50:32Z")

</div>

> [@Tim\_Theil](#):
>
> Does it improve the battery life, if I remove components that I will not use?  
> Since you can easily remove or add components this should be considered.
> 
> Removing camera, Audio/microphone, fingerprint reader, Wifi module or mousepad could help some users to save energy.
> 
> Does everything help, or only some things?  
> Can some bugs appear if I have a component removed? Can i make some simple changes to prevent these bugs?
> 
> Thank you already for replies!

I wouldn’t go that far to save battery life, I imagine the savings would be minimal unlike just removing the swappable modules on the laptop.

---

<div class="post-metadata">

**Author:** ![Linen](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Linen](https://community.frame.work/u/Linen)\
**Post date:** [June 20, 2022, 12:54am UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/244 "2022-06-20T00:54:47Z")

</div>

Hi, I’m experimenting right now on the best setup for my framework laptop in terms of battery life and memory. I’m currently averaging 4.5W on idle and 900 MiB of RAM on a fresh boot, I would like to ask how much are you guys averaging in idle? Please also post your specs so I can compare with mine, thanks!

My specs: i5, 64GB, 3 USB-A Expansion cards, and a USB-C expansion card.  
Running on Arch 5.18.3 with LeftWM and Polybar. (Planning to hop on GNOME, as I’ve already tried KDE. Also will try to install Void again soon but I just cant take it with the servers being so far from my country, thus the very bad download speeds that I get on Void.)

---

<div class="post-metadata">

**Author:** ![Usernames](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/usernames/32/40546_2.png) [@Usernames](https://community.frame.work/u/Usernames)\
**Post date:** [June 20, 2022, 3:08pm UTC](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665/245 "2022-06-20T15:08:16Z")

</div>

> [@Linen](#):
>
> how much are you guys averaging in idle?

2.5W with wifi connected (bluetooth disabled), nothing open, screen brightness at minimum and KB light off, light usage is between 6-7W.

2xUSB A (each adds about 300mA drain) and 2x USB C, 2x 8GB ram, i5 1135G7, Samsung 980 pro 1TB

Fedora 36 with gnome - uses a fair amount of ram maybe 1.7GB on fresh boot but I have not kept a close eye, more interested in energy usage.

I use TLP to reduce power consumption.

[Previous page](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665.md?page=11)

[Next page](https://community.frame.work/t/tracking-linux-battery-life-tuning/6665.md?page=13)
