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
  pinebook 1080p crash and fix nano2 2 75 2 hours ago
Last Post: pyrrhumain
  NIxOS installation guide for Pinebook Surehand53 0 30 Yesterday, 03:46 AM
Last Post: Surehand53
Information Manjaro ARM for Pinebook erchache2000 48 2,342 06-21-2019, 03:20 AM
Last Post: SKG
  Improve the life of your Pinebook battery by setting charger's voltage limits wlad 0 59 06-11-2019, 02:27 PM
Last Post: wlad
  Display battery charge value with LXDE and lxpanel wlad 0 36 06-11-2019, 09:56 AM
Last Post: wlad
  pinebook black screen when booting with "different power mode than last used" penzoiders 9 316 06-06-2019, 02:02 PM
Last Post: Surehand53
  Q4OS for PINEBOOK q4osteam 88 23,322 05-27-2019, 09:15 AM
Last Post: Luke
  Wifi I/F on Pinebook 11.6" eblot 2 286 05-19-2019, 04:53 PM
Last Post: Shoananas
  KDE Neon Pinebook remix edition RC image bshah 67 19,531 05-18-2019, 11:44 AM
Last Post: rookieone
  Netrunner 18.03 Idolon for the Pinebook shadeslayer 92 12,278 04-21-2019, 11:37 AM
Last Post: cuvtixo

Forum Jump:


Users browsing this thread: 1 Guest(s)