05-16-2021, 10:25 PM
It's hardcoded in kernel so the answer is no... Unless you rebuild it
Battery mot charging past 54%
|
05-16-2021, 10:25 PM
It's hardcoded in kernel so the answer is no... Unless you rebuild it
05-17-2021, 02:32 AM
Actually, the battery charging limit (i.e. the charging target) is rather easily configurable, if the PinePhone runs Ondrej's patched kernel. Using the command below will allow the battery to be charged to 100% of its capacity, which I've already tested and verified on my PinePhone:
Code: echo 4350000 > /sys/class/power_supply/axp20x-battery/voltage_max_design # microVolts (uV) Here's a more detailed explanation, based on the source code of the AXP803 driver in the Linux kernel, Ondrej's kernel patches, and the relevant sections of the AXP803 datasheet (the PMIC that charges the battery):
However, I wouldn't recommend charging the battery to 100% of its capacity, or to about 4.35 V, because it would surely reduce the battery lifetime, and may also cause the battery to overheat while charging under certain circumstances. See also a couple of very good comments made by Ondrej here and here. The right approach would be to instruct the AXP803 to perform the battery calibration, as described on pages 43 and 44 of the AXP803 datasheet, and to alter the resulting OCV percentage table so a battery charged to about 4.2 V (which equals to about 87-90% of the battery capacity) is reported by the AXP803 as being charged to 100%. Of course, the final table needs to be stored in the phone and loaded into the AXP803 upon each boot. All that would bring the best of both worlds: longer battery lifetime, no risk of overheating, and no confusion among the end users. I'll probably get to performing the above-described battery calibration at some point in time. By the way, charging the battery to 100% may be safe in combination with a userspace daemon that monitors the phone thermals and keeps them within the safe temperature ranges, which I'm already working on. With some additional "trickery", the userspace daemon should also be able stop the battery charging at 95%, for example, which might strike the right balance.
05-18-2021, 07:52 AM
Made Sticky
06-29-2021, 09:42 AM
(05-15-2021, 05:16 PM)StickyPine Wrote: Hello,I had the same issue, both with the Mobian and Beta versions, but I solved it by placing the charger directly to an outlat and let it charge for 10+ hours or until it showed 90+% charge. I also interchanged the batteries between both pinephone versions and charged as above. No more batteries issues.
06-30-2021, 05:59 AM
The battery calibrates by going to full charge and then letting it discharge until it shuts down.
I had to do this on my N900 once I started using the FOSS charge control driver. It is better than having it never get above 80% after a few years of use.
07-07-2021, 08:15 PM
(This post was last modified: 07-07-2021, 08:30 PM by dsimic.
Edit Reason: Added one more reply
)
(06-29-2021, 09:42 AM)Xzska-collab Wrote: I had the same issue, both with the Mobian and Beta versions, but I solved it by placing the charger directly to an outlat and let it charge for 10+ hours or until it showed 90+% charge. I also interchanged the batteries between both pinephone versions and charged as above. No more batteries issues. Quite frankly, this is rather confusing. None of the actions you've described would lead to achieving a battery charge level higher than the default. Please, read my post above for a detailed background explanation. (06-30-2021, 05:59 AM)biketool Wrote: The battery calibrates by going to full charge and then letting it discharge until it shuts down. I had to do this on my N900 once I started using the FOSS charge control driver. What I referred to in my post above was the battery calibration procedure mentioned in the AXP803 datasheet. Of course, the procedure must involve charging the battery fully and letting it discharge completely, but the datasheet also briefly describes the use of a few AXP803 registers; see pages 43, 44, 79 and 83–85 of the datasheet for more details.
07-16-2021, 01:33 PM
(05-17-2021, 09:34 AM)dsimic Wrote: Actually, the battery charging limit (i.e. the charging target) is rather easily configurable, if the PinePhone runs Ondrej's patched kernel. Using the command below will allow the battery to be charged to 100% of its capacity, which I've already tested and verified on my PinePhone:Thank you for the info...how do I find out if the Mbian or KDE Pinephones use the Ondrej's patched kernel?
07-26-2021, 03:47 AM
(This post was last modified: 07-26-2021, 03:51 AM by bcnaz.
Edit Reason: addition
)
I have a 'Post Market Edition' Pine phone, running a 'recent Mobian nightly release'.
It charges to 100%, then it discharges to 93 - 95%... then charges again to 100% ... repeat... I think the developers are still fine tuning the charging software. Just curious, have you tried different chargers ? I do see slight differences when I use different chargers. Note : I have several Pine phones, one has Arch installed and it charges about the same as the ones with Mobian installed.
LINUX = CHOICES
**BCnAZ** Donate to $upport your favorite OS Team
07-27-2021, 03:57 AM
in my case it was charging cable issue, and after replacement, it is OK. however the overheating issue is still continuing.
|