SUMMARY We have /sys/class/power_supply/BAT0/charge_control_start_thresholds_* to prolong battery life for supported hardware. This allows to limit the charge of the battery as to not deteriorate it while making it close to transparent to the user. The idea here would be to mimic this with the user help given him notification when to plug/unplug his battery.
This seems worth considering
When using that feature, doesn't the system automatically stop charging at the threshold? That seems like it's a lot more user-friendly than having the system ask people to disconnect the power cable manually. Or is this about manually approximating that feature on hardware that doesn't support doing it automatically?