Stop laptop battery from charging beyond certain point
Anyone know of a Linux (and Windows) program to stop laptop charging past a certain point?
For example, right now I am using my laptop as a desktop replacement, and I want the battery installed for backup. However, by default the battery will be charged to and maintained at 100%.
100% is bad for long term storage. I want it to be maintained at 40% instead.
One way is to use a USB controlled relay that cuts power when battery goes above 40%... but I'm hoping there's a software solution.