cwfg: Use meaningful alert level, track apm's battery state better

2021-03-28 Thread Klemens Nanni
The datasheet says the hardware's default State-Of-Charge threshold is three percent, i.e. the gauge pulls down the pin to logic low at 3% remaining battery life. My Pinebook Pro's fuel gauge actually shows an alert level of zero percent however and the latest device tree (both from our dtb packag

Re: cwfg: Use meaningful alert level, track apm's battery state better

2021-03-31 Thread Patrick Wildt
Am Mon, Mar 29, 2021 at 07:16:18AM +0200 schrieb Klemens Nanni: > The datasheet says the hardware's default State-Of-Charge threshold is > three percent, i.e. the gauge pulls down the pin to logic low at 3% > remaining battery life. > > My Pinebook Pro's fuel gauge actually shows an alert level of

Re: cwfg: Use meaningful alert level, track apm's battery state better

2021-03-31 Thread Klemens Nanni
On Wed, Mar 31, 2021 at 01:35:12PM +0200, Patrick Wildt wrote: > If there's no alert-level property, then maybe we should just remove it. > Then you could hard code a value for "below will be critical", like you > now do with the 50%? This makes sense, I did not remove it when writing the diff due