How can I reliably get battery status on pinebook
#1
Hi,

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

        Andreas.
  Reply
#2
Does q4os also have the 'sudo pine64_health.sh' script? Because there you can see it reliably.
  Reply
#3
(09-19-2017, 02:00 PM)joekinley Wrote: Does q4os also have the 'sudo pine64_health.sh' 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.
  Reply
#4
Code:
[battery]
label=
command=tail "/sys/class/power_supply/battery/capacity"

I add this to my i3block cfg file and it is working perfect for me
  Reply
#5
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.
  Reply
#6
I have no particular solution for your OS and xfce4, but can point you to my solution for LXDE/lxpanel on Armbian 5.86 with a very similar problem:
Display battery charge value with LXDE and lxpanel

Moreover, the current Armbian release 5.86 with Ubuntu bionic utilizes xfce as well. The power manager of xfce displays battery charge information correctly, so that you could check whether you find your solution in the internal configuration of xfce on Armbian 5.86.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Q4OS for PINEBOOK q4osteam 89 26,406 2 hours ago
Last Post: ac8dg
Information Manjaro ARM for Pinebook erchache2000 68 5,230 11-08-2019, 07:36 AM
Last Post: fitter
  Pinebook 1080p / KDE Neon freezes every 5-10 min pyrrhumain 12 555 11-02-2019, 10:03 AM
Last Post: rookieone
  Are Pinebook images compatible with Pine64+? starcrescent 7 170 09-18-2019, 09:22 AM
Last Post: tophneal
  Archlinux (mainline) for Pinebook anarsoul 51 14,541 08-28-2019, 05:23 PM
Last Post: conlaoch
  will openMP work on a pinebook? rustythorn 2 123 07-23-2019, 01:42 PM
Last Post: tophneal
  Armbian - Xenial Desktop (Pinebook) pineadmin 83 18,334 07-17-2019, 01:22 PM
Last Post: catsmile
  pinebook 1080p crash and fix nano2 2 222 06-24-2019, 07:41 PM
Last Post: pyrrhumain
  NIxOS installation guide for Pinebook Surehand53 0 223 06-23-2019, 03:46 AM
Last Post: Surehand53
  Improve the life of your Pinebook battery by setting charger's voltage limits wlad 0 217 06-11-2019, 02:27 PM
Last Post: wlad

Forum Jump:


Users browsing this thread: 1 Guest(s)