Battery charge threshold manager for laptops
charge-stop sets the battery charge threshold of a laptop: the percentage
above which charging stops. Keeping the threshold below 100% extends battery
lifespan for laptops that spend most of their time plugged in.
The daemon (charge-stopd) manages the sysfs attribute directly and persists
the setting so it survives reboots and suspend; firmware on many laptops
resets the threshold across these events. A companion CLI (charge-stop) talks
to the daemon over a UNIX domain socket, speaking a small REST API:
GET /v1/threshold report the current threshold
POST /v1/threshold set and persist the threshold
POST /v1/restore re-apply the persisted threshold