PINE64
What's the trick to get the battery to charge? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: What's the trick to get the battery to charge? (/showthread.php?tid=10073)



What's the trick to get the battery to charge? - diodelass - 06-04-2020

I'm messing around with the nuts and bolts on my device, trying to get a minimal PostmarketOS install working (eventually, I hope to have some fun trying to build my own UIs, which I'm sure will be a hilarious and educational programming challenge/disaster for myself). At the moment, though, I'm still hung up on trying to get the battery to charge. Even when plugged into a charger capable of delivering plenty of current, the battery continues to discharge, and the system never draws more than around half an amp.

Forgive me for being so clueless, but I'm new to all of this. What governs charging control, and how do I talk to it? Is this part of what 'crust' does? Charging appears to work fine under SailfishOS and Ubuntu, so I think hardware issues can be ruled out and I must just be missing some key thing on the software side.


RE: What's the trick to get the battery to charge? - Comiryu - 06-05-2020

I kinda had the same problem.
I had to open up the device as the contacts were loose. Reconnecting them properly fixed the problem for me.


RE: What's the trick to get the battery to charge? - diodelass - 06-05-2020

(06-05-2020, 02:13 AM)Comiryu Wrote: I kinda had the same problem.
I had to open up the device as the contacts were loose. Reconnecting them properly fixed the problem for me.

This can't be the problem for me, because the battery is definitely connecting; using the relevant sysfs handles (in /sys/class/power_supply), we can obtain its voltage, current, and capacity and such - it's just that it never starts charging, and only seems to discharge when present, even if external power is connected. I've double-checked the battery voltage with my multimeter, too, and it matches what the software reports, so I don't think this is a reporting error, either.

It feels like there must be some kind of electronically-controlled switch in there to engage charging mode that I haven't found yet.