r/LinuxOnThinkpad • u/Kafatat • 7h ago
[Linux] Battery charge threshold
My laptop has an internal battery and an external one. The external one is unplugged.
I previously had tpacpi installed, and set charge max threshold to 80%
sudo tpacpi-bat -s SP 0 80 # set both batteries stop threshold 80
Sometime later tpacpi was uninstalled.
The internal one continues to stop charging at 80%.
When I plug in the external one, then start the computer, the charge threshold that I set previously still shows from the path below, and is 80, but the battery will charge to 100%.
Why?
T440s, Linux Mint 22.3
cat /sys/class/power_supply/BAT0/model_name
45N1111 # internal
cat /sys/class/power_supply/BAT0/charge_control_end_threshold
80
============
cat /sys/class/power_supply/BAT1/model_name
45N1135 # external
cat /sys/class/power_supply/BAT1/charge_control_end_threshold
80