this post was submitted on 21 Apr 2024
22 points (100.0% liked)

Framework Laptop Community

2654 readers
1 users here now

Related links:

Related communities:

founded 3 years ago
MODERATORS
 

Anyone have a list of changes that they've made to increase battery life? I've got about three hours (with 80% limit in BIOS, which I might get rid of), so I'm sure there's a lot that can be changed.

you are viewing a single comment's thread
view the rest of the comments
[–] Jumuta@sh.itjust.works 10 points 7 months ago* (last edited 7 months ago) (1 children)

have you done the TLP stuff?

first make sure you don't have power profiles daemon because this conflicts with tlp

you can turn it off with

sudo systemctl stop power-profiles-daemon.service
sudo systemctl mask power-profiles-daemon.service

install tlp with

sudo apt install tlp
sudo systemctl enable tlp

and edit the config at /etc/tlp.conf to optimise your battery

the instructions are in the file iirc

basically set your CPU settings (I use powersave on my intel non-framework), and maybe have a look at the radeon graphics things (I don't have an amd system so I can't say much about this)

and refresh your config with

sudo tlp start

if you also get powertop (sudo apt install powertop) you can monitor your power consumption in that. (sudo powertop)

If you can't be bothered with this, I think you can also just install power profiles daemon but I like tlp better because it gives you much finer control over your system

[–] TheButtonJustSpins@infosec.pub 1 points 7 months ago (1 children)

Okay, installed both. Are there any specific config entries I should be looking at in tlp.conf?

[–] Jumuta@sh.itjust.works 6 points 7 months ago (2 children)

I think the most important ones are:

  • CPU_SCALING_GOVERNOR_ON_BAT
  • CPU_ENERGY_PERF_POLICY_ON_BAT
  • CPU_BOOST_ON_BAT
  • CPU_HWP_DYN_BOOST_ON_BAT
  • SATA_LINKPWR_ON_BAT (this had an issue where it corrupted data, but that was a few years ago so it should be fine)
  • AHCI__RUNTIME_PM_ON_BAT
  • WIFI_PWR_ON_BAT
  • PCIE_ASPM_ON_BAT
  • RUNTIME_PM_ON_BAT

(I haven't used these myself because I don't have a radeon card, but it should improve battery life for you):

  • RADEON_DPM_PERF_LEVEL_ON_BAT
  • RADEON_DPM_STATE_ON_BAT

I had to set USB_AUTOSUSPEND=0 because otherwise my usb devices kept turning off, but you might not need this.

[–] tyrant@lemmy.world 2 points 7 months ago

I love when people are this helpful to each other. <3

[–] TheButtonJustSpins@infosec.pub 1 points 7 months ago (1 children)

Thank you so much! I've uncommented all of these.

[–] Jumuta@sh.itjust.works 1 points 7 months ago (1 children)
[–] TheButtonJustSpins@infosec.pub 1 points 7 months ago

It basically immediately caused my laptop to freeze up and I had to hard reboot it. I took the opportunity as it was coming up to remove the 80% limit in the BIOS, and then I commented everything I had uncommented. :/