01-31-2020, 06:13 AM
(01-27-2020, 02:04 PM)C_Elegans Wrote:Quote:Remaining time does not work for me but at least you will have the percentage.
I've got a patch that enables that here: https://github.com/C-Elegans/i3status.
Essentially the issue is i3status is looking for a field called POWER_SUPPLY_CHARGE_NOW with the current state of charge in Wh or mAh that it can use to calculate the battery run time. The pinebook battery doesn't provide this, however it does expose a field called POWER_SUPPLY_TIME_TO_EMPTY_NOW which has the number of minutes until the battery is empty. My patch just has i3status look at that if it's present instead of trying to calculate the runtime from the other fields.
Hope this helps!
Nice work! This patch works great for me. Will you submit a PR upstream to the i3status project?