How can I reliably get battery status on pinebook

thanks to the great Q4os developers I now have a quite decent Debian Stretch system running.  After I managed to flash the eMMC with Q4os I simply editet sources.list to point to Stretch instead of Jessie and did a dist-upgrade.   I needed to fiddle a bit with the graphics since X was lost but rebuilding libump and xf86-video-fbturbo under Stretch did the trick.  (I'm a Debian developer and might consider creating at least an official libump package - need to check the license of fbturbo whether it is acceptable in Debian.)

I now try to get some reliable information about the battery status.  I'm using xfce4 but the battery plugin always says the battery is empty (even if I get a desktop notification that the battery is full when plugging in power adapter.

The command acpi does not work.

How do others check the battery status on pinebook?

Kind regards

Does q4os also have the 'sudo' script? Because there you can see it reliably.
(09-19-2017, 02:00 PM)joekinley Wrote: Does q4os also have the 'sudo' script? Because there you can see it reliably.

If it doesn't have that script, you can download it from here. Or if you just want battery info, you can use this script that I wrote. I run it on the pinebook with using a screenlets terminal widget to have it stuck on the desktop for when I'm testing stuff and want to seem some more stats than just 'how charged / how flat' is the battery. Wink ACPI doesn't work on the pine64/pinebook as ARM doesn't have ACPI... instead you query the '/sys/class/power_supply/battery/' path for current usage, voltage, and charging or discharging, and percentage charge.
command=tail "/sys/class/power_supply/battery/capacity"

I add this to my i3block cfg file and it is working perfect for me
I run a Debian-based distro also, and 'acpi' and 'acpi -V' would mot work until I installed  it with

'apt-get install acpi'.   [You may have to use 'sudo apt-get install acpi']

'acpi -V' (note the space) is the "verbose" version, which also gives you the current health of your battery, i.e., percentage capacity now vs. original design (new) capacity. Great command-line utility to have.

Possibly Related Threads...
Thread Author Replies Views Last Post
Information Manjaro ARM for Pinebook erchache2000 40 1,608 05-24-2019, 04:49 AM
Last Post: trigger
  pinebook black screen when booting with "different power mode than last used" penzoiders 7 227 05-20-2019, 02:46 AM
Last Post: penzoiders
  Wifi I/F on Pinebook 11.6" eblot 2 253 05-19-2019, 04:53 PM
Last Post: Shoananas
  KDE Neon Pinebook remix edition RC image bshah 67 19,053 05-18-2019, 11:44 AM
Last Post: rookieone
  Q4OS for PINEBOOK q4osteam 86 22,765 04-23-2019, 02:09 AM
Last Post: pineadmin
  Netrunner 18.03 Idolon for the Pinebook shadeslayer 92 11,968 04-21-2019, 11:37 AM
Last Post: cuvtixo
  Battery Status in Bionic X-Istence 3 186 03-11-2019, 03:52 PM
Last Post: soupbowl
  Status of Parrot Linux on Pinebooks? secristr 0 85 03-10-2019, 02:39 PM
Last Post: secristr
  Armbian - Xenial Desktop (Pinebook) pineadmin 79 14,612 03-06-2019, 04:20 PM
Last Post: tllim
  .bashrc to show battery percentage at prompt e-minguez 1 105 03-05-2019, 07:03 PM
Last Post: PatrickM

Forum Jump:

Users browsing this thread: 1 Guest(s)