I wrote a low-power-off BASH script for the Pinephone and Pinephone Pro to help prevent over-discharge by forcing a power-off below a certain capacity.
It loops through all power sources the kernel is aware of and enforces a minimum capacity rule that powers off the system if a battery is below a certain threshold (default: 5%) and not charging.
Install guide here: https://discourse.destinationlinux.netwo...ttery/4789
Enjoy
It loops through all power sources the kernel is aware of and enforces a minimum capacity rule that powers off the system if a battery is below a certain threshold (default: 5%) and not charging.
Install guide here: https://discourse.destinationlinux.netwo...ttery/4789
Enjoy