Linux Battery Protection

Hey everyone!
Question about the FW 13 Pro Battery.
Is there a way (at the firmware level) to control the maximum amount the battery will charge to? I know modern batteries last longer when they charge to about 80% rather than the full 100% all the time. I’d like to configure my laptop to do this.

There may be a way to do it via the OS, but that doesn’t cover when the laptop is powered off but plugged in, and other similar circumstances. Let me know if you’ve got any ideas.

Which Linux distro are you using?

Fedora 44 KDE

Which release version?
(if rolling release without a release version, skip this question)
Latest

Which kernel are you using?

Latest

Which BIOS version are you using?
Latest

Which Framework Laptop 13 model are you using?
FW 13 Pro Ultra series 3 X7

Framework laptops have option to configure battery charge limit. It’s possible to configure the limit in BIOS/UEFI settings and also possible to configure it with software tools, like framework_tool (framework_tool --charge-limit <CHARGE_LIMIT>).
The limit will work even when the laptop is powered off, because it’s stored in the EC (Embedded Controller) of the laptop, which is always powered on and controls a lot of low-level laptop functions including charging.

1 Like

On the non-Pro FW13 there is a setting in the BIOS for this.

Thanks for the replies! Looks like there is an option in the 13 Pro’s UEFI to adjust this. The command line tool apparently doesn’t exist on my install of Fedora.

Thanks for the help!

yes, you need to install it yourself

It has been my experience that this is not the case. It will work until you reboot or power down. Then the BIOS resets the value to what is set there. This goes for ectool and framework_tool.

1 Like

Yes, you’re right. That’s exactly how it works, but I missed the BIOS detail there. The EC just stores the latest value written, so ectool, framework_tool and all other tools can set the value there and BIOS also unconditionally rewrite the value every time when it runs (on system boot). So the value configured with other tools still will be used during powered off state but on starting the system BIOS runs and overwrite everything with the value configured there.