echo 40 | sudo tee /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 80 | sudo tee /sys/devices/platform/smapi/BAT0/stop_charge_thresh
Then it will stop charging once it reached 80% and only start charging when it drops below 40%.[0] http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-man...
It would be nice if this feature defaulted to charging to 95% or whatever. I usually know in advance if I'll need that extra 5% for a long journey.
I’ve heard separately (no source, sorry [edit: see below]) that Apple products also do this, they just don’t confuse the user by telling them that it’s happening. I wouldn’t be surprised if HP et. al. have since changed their user notification behaviour, too.
Source: forum posts going back almost a decade. https://www.google.com.au/search?q=apple+laptop+stops+chargi...
Here, the time isn't based on an alarm (none is set), but on when the charger was disconnected the previous morning.
It would be nice if you could set it even lower to prolong life, but there's just not enough demand for it to be a common feature.
That really seems to spare the battery compared to keeping it at 100%. I've replaced the battery in other laptops much more often.