PINE64
Limiting battery charging to some percentage - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Limiting battery charging to some percentage (/showthread.php?tid=14462)



Limiting battery charging to some percentage - TRS-80 - 07-18-2021

Some conversation in IRC reminded me that I have been limiting my battery charging (on Android) to 68-70% for some time now, ever since I did some research that this probably extends battery life.

My question here is not to debate the merits of this (plenty discussions of that elsewhere) but rather, how to implement that on Debian (Mobian)?  The guy I was chatting with in IRC rattled off some stuff, but I did not catch nor understand most of it.  And they were not specific directions anyway (rather some generalities).

If no one knows offhand, I will eventually research it and post back what I find.

Maybe eventually I make some little app to handle the settings (see link in sig about making Phosh app in 10 min).  No promises.   Wink


RE: Limiting battery charging to some percentage - Merc - 07-18-2021

/sys/class/power_supply/axp20x-battery/voltage_max_design

https://github.com/dreemurrs-embedded/danctnix-tweaks


RE: Limiting battery charging to some percentage - TRS-80 - 08-21-2021

Thanks for the tip!

Why do I feel like that is some hardware parameter you are supposed to set, depending on the actual battery specifications?

And if that's true, in other words there is no direct way to do what I want, so I will have to fool around with out of (actual) spec values for battery charging.

Or maybe I am just misunderstanding. I guess I need to read up on kernel docs in this area, in order to better understand what is going on...

I did have a look around in that subtree of the file system, interesting stuff in there... I knew something like that probably did exist!


RE: Limiting battery charging to some percentage - bcnaz - 08-22-2021

(07-18-2021, 05:53 PM)TRS-80 Wrote: Some conversation in IRC reminded me that I have been limiting my battery charging (on Android) to 68-70% for some time now, ever since I did some research that this probably extends battery life.

My question here is not to debate the merits of this (plenty discussions of that elsewhere) but rather, how to implement that on Debian (Mobian)?  The guy I was chatting with in IRC rattled off some stuff, but I did not catch nor understand most of it.  And they were not specific directions anyway (rather some generalities).

If no one knows offhand, I will eventually research it and post back what I find.

Maybe eventually I make some little app to handle the settings (see link in sig about making Phosh app in 10 min).  No promises.   Wink

I would be curious what megous (spelling?) would have to say ?

Unfortunately if you ask 100 people, you will quite likely get 100 different answers.

There must have been some research put into this for the Pine phone, and matching it up to use an existing Samsung battery.

Being operated by software one must realize that when the read-out says 100%   that means 100% of what value the software writer has written.

That could be 60%   or  120%  of what the battery manufacturer recommends. 

For most phone users, you know to charge it when it says 10%  or it is ready to take off the charger when it reads 100%.