11" Pinebook + Manjaro ARM = battery not charging

Was wondering if anyone has had similar problems, or any ideas as to what's going on here.

Thought I'd give Manjaro ARM another spin on Pinebook (I have one of the original 11" models), and once again ran into the following issue (it was there when I tried the initial 19.04 build) - put simply... it doesn't charge the battery. Instead of being a solid red, the charge led flashes regularly - roughly 1s on/off, and whilst the unit switches to getting its power from the charger (meaning the battery doesn't get any flatter when connected to power) it does not charge. Checking the sysfs power-supply node suggests that the battery is being charged at around 1-2 ma! :laughing:

If I start the pinebook after it has been running the older working ayufan xenial image that I still have on the eMMC, the unit will charge until about 5-6 seconds after the 'loading kernel' message from uboot, and at that point the charge light will start blinking, and load on the charger drops from 10-11W to around 3W - i.e. from charge + run to only run.

The full dmesg log from the Manjaro ARM install is here, and I do have a usb serial adapter if the uboot messages are of any use.

On a freshly installed and updated Manjaro ARM 19.08 install (running on MicroSD) upower gives the following output:

[pfeerick@pinebook-manjaro ~]$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_axp813_ac
  native-path:          axp813-ac
  power supply:         yes
  updated:              Wed 11 Sep 2019 20:05:50 AEST (19 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_axp20x_battery
  native-path:          axp20x-battery
  power supply:         yes
  updated:              Wed 11 Sep 2019 20:05:50 AEST (19 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    voltage:             3.748 V
    percentage:          53%
    capacity:            100%
    icon-name:          'battery-good-charging-symbolic'
  History (charge):
    1568196350	0.000	unknown

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Wed 11 Sep 2019 20:05:50 AEST (19 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-full:         0 Wh
    energy-rate:         0 W
    percentage:          53%
    icon-name:          'battery-good-charging-symbolic'

Daemon:
  daemon-version:  0.99.10
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: PowerOff

On the xenial install I still have on the eMMC, this is the output from upower

pfeerick@pinebook:~$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ac
  native-path:          ac
  power supply:         yes
  updated:              Wed 11 Sep 2019 07:56:20 PM AEST (3 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_battery
  native-path:          battery
  model:                battery
  power supply:         yes
  updated:              Wed 11 Sep 2019 07:56:21 PM AEST (2 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    voltage:             3.925 V
    percentage:          51%
    temperature:         30 degrees C
    capacity:            100%
    technology:          lithium-iron-phosphate
    icon-name:          'battery-good-charging-symbolic'
  History (charge):
    1568195778	51.000	discharging
    -1464467600	0.000	unknown
    -1472104817	92.000	discharging
    -1472461023	100.000	discharging
    -1472545520	0.000	unknown
  History (rate):
    -1464467600	0.000	unknown
    -1472545520	0.000	unknown

Device: /org/freedesktop/UPower/devices/line_power_usb
  native-path:          usb
  power supply:         yes
  updated:              Wed 11 Sep 2019 07:56:20 PM AEST (3 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Wed 11 Sep 2019 07:56:20 PM AEST (3 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-full:         0 Wh
    energy-rate:         0 W
    percentage:          51%
    icon-name:          'battery-good-charging-symbolic'

Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: PowerOff
1 Like

A common misconception - Manjaro is indeed based on Arch but it is not Arch - like Ubuntu is based on Debian but it is not Debian.


If you battery is not charging it is most like the connection between the charger and the battery which is at fault.

If this is not the case your history shows a complete discharge of your battery and li-ion batteries do not respond well to a complete discharge.

We are using Anarsoul's Arch Linux kernel for our Pinebook images.

What kernel does Xenial run on?
Maybe it's something in later versions of the kernel making it seem like it's not charging.

PS: My Pinebook charges fine with our 5.2 kernel. It just takes a while.

2 Likes

Fair enough... I'd still call it arch-derived, just like I'd call Ubuntu Debian-derived... because that's what it's building on.

There is nothing wrong with the charger and battery - it breaks between a reboot from a known working OS configuration and Manjaro Arch/ARM. And upower is essentially useless here, as on the arm platform the pinebook is based on statistics such as charge/discharge amounts, design capacity, etc are not presented - so upower just reports zero because that's all it knows. You can only rely on the capacity and voltage measurements. The battery is still in perfect condition, and was around half-charged at the time.

I was wondering if it had something to do with it being one of the first gen pinebooks... it's not had anything upgraded - i.e. pre 1080 screen, etc.

I also tried Anarsoul's image, and that gave the exact same results. As did newer Armbian images, both 4.4 kernel and 5.x (5.1 IIRC) - but I have used older Armbian images without issue.

Just got a shock with the Xenial image though... I thought this would have been running at least a 4.x kernel... but it's still on the 3.10 BSP (ayufan)... ouch! I think it was the last of the 0.6 images ayufan did before trying to get DRM working, and too many things broke for my liking for use as a daily driver in that 0.7 line. I'll see if the latest 0.7.x line has a newer kernel. Edit: ayufan's 0.7.30-bionic-mate also works just fine, but is also on 3.10.105 BSP.

I don't think this will be charging anytime soon with the Manjaro install the ways it is... 0.5W when the pinebook is 'off'... it'll be a few months! :laughing:

My Pinebook (the 11" 1080p IPS model), charges from flat to full in about 10 hours.

I've edited the OP to make it obvious this is Manjaro ARM, and moved it to the ARM-specific area of the forum

1 Like

Forum kindly sponsored by Bytemark