My laptop plugged in USB-C cable for the whole day. By default, it will keep 100% charge for battery. Keeping battery at 0% or 100% for a long time is very bad for battery health.
Many laptops have BIOS settings and API to control max battery charge. GNOME even has a nice extension to set limit for many laptops.
Does Framework have an option in BIOS to set max charge level? I didn’t find it in BIOS.
Does Framework have Linux API to set a limit? If yes we can add it to that extension.
If we don’t have a charge limit support (since I didn’t find it in BIOS), should we add it? It is good practice if you want to avoid buying new battery every few years (good for ecology).
It can already be controlled via ECTool, but I don’t believe it’s exposed on it’s own via the kernel - you have to go through the EC’s interface. @DHowett would be the person to ask.
No, The battery charge level in the BIOS is not OS Dependent.
I run Windows 10 on my main drive Ubuntu 22.04 LTS on an expansion card, and occasionally for giggles and grins Fedora on a USB Flash drive.
My BIOS is set to 85% max charge, and all OS’s respect that.
Since it’s BIOS, it even stops at 85% when shut down.
Tab from Main to Advanced tab, look down, second entry from the bottom - Battery Charge Limit. Click the enter key, type a new number, tab to Yes. F10 to save changes and reboot.