VR-25 / acc

Advanced Charging Controller
https://github.com/Magisk-Modules-Repo/acc
GNU General Public License v3.0
1.75k stars 109 forks source link

Is there a way to make the battery charge to its physical max capacity? #151

Closed Hikandy closed 2 years ago

Hikandy commented 2 years ago

Basically I replaced the 3000mah battery in phone with a 5000mah one but its only getting charged till 3000mah (tested the estimated battery capacity via apps like accubattery, 3C battery monitor etc), so is there a way to let the battery charge to its max capacity instead of the one defined by the system by modifying some voltage or current parameters?

VR-25 commented 2 years ago

It's possible, if your kernel allows editing /sys/class/power_supply/*/charge_full. See if that interface exists and whether you can change the value after granting write permission to the root user.

VR-25 commented 2 years ago

Any update on this? Have you tried the above procedure or need additional help?

Hikandy commented 2 years ago

Unfortunately, it doesn't seem to work. Even if i edit the files, it simply goes back to the original value after exiting the file. Is it possible to adjust (idk much) the values of voltage or current to override the preset values to charge the battery to max extent?

On Sun, Jun 26, 2022 at 12:36 PM VR-25 @.***> wrote:

Any update on this? Have you tried the above procedure or need additional help?

— Reply to this email directly, view it on GitHub https://github.com/VR-25/acc/issues/151#issuecomment-1166434834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUTNSKPEOUGQJQMMZPVG6I3VQ76N3ANCNFSM5W3NKHXQ . You are receiving this because you authored the thread.Message ID: @.***>

VR-25 commented 2 years ago

One could make charge_full writable, by modifying the kernel source code. Unfortunately, I'm not a kernel dev yet.

Generally, current and voltage are irrelevant in this regard. Share a log .tgz archive generated (acc -le) by the latest pre-release. I'll see if there's something else for adjusting the maximum battery capacity.