PINE64
Battery Status in Bionic - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76)
+--- Forum: Linux (https://forum.pine64.org/forumdisplay.php?fid=79)
+--- Thread: Battery Status in Bionic (/showthread.php?tid=7235)



Battery Status in Bionic - X-Istence - 03-06-2019

Hey all,

I've got my Pinebook flashed with the latest Bionic Mate pre-release, but it seems that it can't sense the battery state correctly. Is there a command line tool I can use in the mean time to get an idea for how much longer I have left on battery?

Thanks!


RE: Battery Status in Bionic - soupbowl - 03-08-2019

(03-06-2019, 06:33 PM)X-Istence Wrote: Hey all,

I've got my Pinebook flashed with the latest Bionic Mate pre-release, but it seems that it can't sense the battery state correctly. Is there a command line tool I can use in the mean time to get an idea for how much longer I have left on battery?

Thanks!
Code:
sudo pine64_health.sh

That'll print battery information, including remaining charge percentage.

Not sure what's up with the battery myself. I've setup a cmdlet to show it instead, when I'm home I'll post how I did it.


RE: Battery Status in Bionic - X-Istence - 03-09-2019

Thank you, using that script works! It's just a shame it isn't shown in the top bar of mate like it used to be.


RE: Battery Status in Bionic - soupbowl - 03-11-2019

(03-09-2019, 02:19 PM)X-Istence Wrote: Thank you, using that script works! It's just a shame it isn't shown in the top bar of mate like it used to be.

It seems in Bionic the battery is detected as an external keyboard battery rather than onboard, which the MATE indicator can't handle.

here's a dirty workaround. You can whack this in a 'Command' MATE applet. it'll show the battery percentage. Not on the indicator though.


Code:
cat /sys/class/power_supply/battery/capacity


I recommend 2 min interval.