yashsingh1/xdaforums huggingface dataset:
[Magisk] AnonVendetta:
No, I mean that the battery case and the phone charge at the same time, when plugged in. I was looking for a way to let the case charge without removing it, but at the same time to not charge phone battery simultaneously, to reduce wear on it.

Just checked that app, don't think it's suitable. I'd need something that can monitor what accesses a specified directory, and logs all changes. I'm sure there's tools out there that can do that, even if they're command line only.
[Magisk] jonahmt21:
how do you guys know that the battery is in idle mode. I have a watt meter and after the charging stops at 70%, the phone is still pulling about 1 to 3 watts, phone says connected but not charging, but the battery percentage doesnt go down until i unplug it. it seems like the phone is just topping up the battery. is this idle mode? (Pixel 7 Pro)
[Magisk] Lada333:
So does it not stay at 70% then?

If the charging switch you're using supports idle mode, and the phone stops charging after whatever limit you set, and your battery doesn't drain while it's plugged in, then yes, it's safe to assume that you have a working battery idle configuration set.
[Magisk] G5-User7080:
Could someone please check if my configuration is correct?

Even after reading through the readme and the linked study on Li-ion batteries I can't say I really understand it.

3920mv is basically the "optimal" voltage for a battery to be at?

Then having it operate from f.e. 1000mv +/- this, e.g. 3820 - 4020 would be the best?

What about the charging voltage?

I think the charging voltage is always a bit higher than the voltage the battery sits at this capacity, so what should I limit that to?

Just slightly higher than 4020 or should I leave it unset?

This study however shows that charging from 25% to 75% gives the best result, well it didn't show any data for lets say 40% - 60%, etc.

I had my old phone always between 40 and 60 since I read somewhere thats where batteries are the most comfortable at, if I used it more on some day it would go down to say 30%, I'm not a heavy user.

Would it be better to charge it higher to say 70% and have it go down to 50 and sometimes 40?

Sorry for having so many questions, I'd be glad if someone could help me with those.

Some more details:

Pixel 6a

Not a heavy user, I expect to use about 20% to 30% per day, even if I need more, I can typically recharge it at home or with a powerbank.

I want it to pause charging at 30°C since this is considered "elevated temperature" according to the linked study.

Charging time isn't much of an issue, so I think limiting charging to 1A makes sense, but idk anything about charging voltage.

edit:

does anyone know a clean simple app that shows the current voltage and stuff?

so far im using battery charge limiter (disabled though) but it also shows this information.

I know theres an GUI app for acc, but there was something confusing about the acc getting updated independly from the GUI app and the GUI app bringing their own acc version or smth, I dont wanna mess with my acc setup, I just wanna see the voltage.
[Magisk] Lada333:
Generally, batteries are most comfortable at around 50% charge. 25/75 is basically the same as 40/60, which would be the same as 45/55. The idea is to keep the "halfway point" of your maximum and minimum charge level as close to 50% as possible. But, to be frank with you, as long as you don't regularly have the battery sit below ~15%, and don't let it sit above ~80% for long, you're not going to damage it.

What does the most damage to these kinds of batteries are high temperature and mini-cycles.

So basically, if a 30/70 configuration is enough for your phone to last a day, feel free to use that. If you need more, go for 25/75, or 20/80. Using ACC to keep your battery at a comfortable temperature while charging is what's most important.

It's not bad practice to drain your battery to 0% and then (preferably slowly) charge it up to 100% (and leave it on the charger for about half an hour after it says it reached 100%. Helps with the calibration. You can do this once a week, or once a month, up to you.

If you charge your device overnight, you might wanna look into "battery idle mode," and what it does and why it's beneficial. I also have a Pixel 6a, with my device/kernel, native battery idle isn't supported, luckily there are several ways to emulate it.

I think 30 degrees is going to be a bit low, especially during summer/hot months :D 35/40 degrees is still good enough, but obviously, lower is always better.

I used to limit charging current to around 1A (unfortunately I cannot limit the current with my current setup for some reason so I use a dedicated "slow charger" (5V/1A). Best I could do was choose a charging switch that "limits" the current to 2A).

I think as long as you limit the current, there's no need to worry about charging voltage.

You can use AccA or ACC Settings for monitoring. They won't interfere with your custom settings as long as you don't change any values in the app.
[Magisk] G5-User7080:
Thank you for your answers!

What exactly does "mini-cycles" mean?

like having it resume charge at 50% and charge to 55%?

So it's better to let it discharge 20% or some and then charge it up again rather than keeping it at a relatively constant voltage?

Well, if I'm using it while its plugged in I suppose thats what Idle mode is for?

I'm having the switches on auto right now, I'm not exactly sure what they mean, like what does it mean to choose a switch that limits charging amps?

like one of these that says "current_max"? but isnt tha number there way too high?
[Magisk] Uluru25:
"mini -cycles" mean that you let charge your phone to e. g. 100%. As soon as it drops to 99% it will charge again to 100%. And so on e. g. several times during the night. To prevent this, you set also a value above which the battrry will NOT be charged.
[Magisk] Uluru25:
"Max. Charging Voltage" reduces the percentage of your charging. 4200 mV means 100 % (if I remember correctly), 4150 mV is something like 80 %. The advantage is that the max. charging voltage is an absolute limit and not a relative limit like a percentage. I understood that with old or worn batteries, relying on percentage could be dangerous. But maybe I am wrong here...
[Magisk] G5-User7080:
I'm pretty sure that max charging voltage refers to the voltage used while charging, same as max charging current refers to the current with which the battery charges.

The voltage the battery charges to would be pause_capacity, which can be either a % value or a mV value.
[Magisk] tpiohr10:
Hi. I am an absolute noob -- how do I get to the point where I enter "acc" to the terminal? I would like to try installing it without root.
[Magisk] eried1:
This would not change the system files, right? Don't want to break SafetyNet.
[Magisk] eried1:
When I enter max mV and max mA in the ACC app it was just crashes. Does my phone - kernel - not support slow charging or is it some other issue?

I have temporarily solved it by using another charger.
[Magisk] Uluru25:
... sorry, no chance w/o being rooted. See here or the screenshot taken from there.
[Magisk] Uluru25:
I guess we are both right: if mcv limits the charging voltage to e. g. 4100 mV it is a clear consequence that the battery can't get charged higher than 4100 mV (it's a simple fact of physics). 😎
[Magisk] G5-User7080:
thats true, however I'm not sure if it would actually charge to 4100mV and not stop a bit earlier, Idk how much of "more voltage" is required for enough current to flow into the battery.

So I'd always use the regular limit and mcv as a sort of failsafe maybe? In case some weird chargers wanna charge with some really high voltage idk
[Magisk] eried1:
Same. Don't know how to solve this systemlessly. Can't use BCL or Tasker since they write to the system files and should therefore break SN. The whole point of Magisk would be lost.
[Magisk] eried1:
Make sure 1) it is not battery optimized and 2) allow it to always run in the background (=not restricted).
[Magisk] eried1:
AFAIK, BCL and ACC are completely independent solutions on how to set a charging limit.
[Magisk] Uluru25:
I have set a mcv limit of 4150 mV and a pause limit of 80 %. As you can see from the screenshot, acc stops charging very close to that 4150 mV and resumes after a drop to around 4100 mV until the 80 % are reached. Maybe it's better to inactivate the mcv to prevent these micro-charging cycles. Will try with the next charging...
[Magisk] Lada333:
Yup, my mistake for wording my sentence weirdly. I meant maximum charging voltage the way @G5-User7080 interpreted it.
[Magisk] Lada333:
But wouldn't that defeat the purpose of setting a maximum charging voltage?

The way I understand it and intend to use maximum charging current/voltage is to essentially limit the charging speed? On my previous device, I'd set the max charging current to 1150mA, so even when plugged into a fast-charger, the device would only get about 5 watts showed into its battery, thus not generating as much heat as quickly, thus prolonging its battery life.

Though, limiting the charging voltage instead of the current might not be the solution to the problem I just wrote about? I'm a bit confused here, ngl :D
[Magisk] Uluru25:
Max. charging current works as we expect it (limiting the current during the charging process). Max. charging voltage also does what it expresses, but this interfered in my settings in a way I do not (yet) fully understand.
[Magisk] Uluru25:
New charging cycle performed with

- pause @ 75 %

- cool down @ 60 %

- max. charging current 1000 mA

- max. charging voltage 4100 mV

- charging current in cool down 500 mA

- charging 1 s in cool down (with 1000 mA)

- charging 6000 s in cool down (500 mA)

Results:

- charging stopped @ 75 %

- no mini-cycles after this

- charging voltage remained below 4100 mV

- biphasic charging speed (1000 mA, then 500 mA)

See screenshots.
[Magisk] Zilla0617:
What phone and charging switch are you using to achieve these results?
[Magisk] Uluru25:
1) RedmiNote 8T (willow)

2) chargingSwitch=(battery/charging_enabled 1 0)
[Magisk] G5-User7080:
@Uluru25 @Lada333 Honestly it's been quiet the mess for me so far.

I'm on the Pixel 6a and it always charges, stops, resumes in irregular intervals, it doesnt attempt to stay atthe charge level, it does charge, but always interrupts in between...

idk if it might be the port on the phone since i experienced this now with 2 cables and both a wall charger and my pc, even with ACC disabled it does that.

I'm on A13, but even turning off the adaptive charging stuff in battery settings didnt do anything.

I couldnt test that much yet cuz its charging too fast for a lot of testing.

Sometimes it stays below 1000mV what I set as current limit, but when connected to the 20W wall charger it charges with about 1.6A

Interestingly when I limit the current to about 550mA it keeps around 1000mA.... It's seriously a mess lol

Oh and then sometimes it shows the charging icon but acc says its not discharging and add -i reports status IDLE, even though acc says my phone wouldnt passthrough battery and prefer idle is set to false............asdhnaiusbdiaosd
[Magisk] Lada333:
Bad cable or faulty USB port on your device then. No need to blame ACC here.

Can confirm, limiting the charging current does absolutely nothing. Best "workaround" I was able to find was to set a charging switch that "lowers" the charging current. I have main-charger and usb-charger that work, and limit the current to 2000mA. It's above my desired 1000mA, but it's better than no limit at all.

It's probably you limiting the charging voltage that does this. Or a bad switch, or you being close to charge_stop.

If none of these apply, just wait for a little bit, see if it settles.
[Magisk] Uluru25:
😁 I absolutely understand your "frustration"! Also for me the now reached situation was a long journey. Sometimes something worked as expected, sometimes what worked before no longer worked. Sometimes acc worked fine but with the very next charging cycle acc did not control at all the charging or no charging occured (only after a restart of the phone). I am sorry that I have no better news for you but rather wanted to let you know that you are not alone with your experience.
[Magisk] Lada333:
This is so interesting though. First time I used ACC was back on my OnePlus 3T, Android 10 IIRC, worked flawlessly. After that, I got a Pixel 4a, Android 11/12, there it worked most of the time. Sometimes AccA/ACC Settings would randomly crash when changing some values, sometimes to the point where I had to completely reinstall them.

Now, on my 6a, both GUI apps crash basically all the time, CLI works fine-ish, but there are many variables I cannot control.

And yeah, for me too, sometimes the charging stops right when it reaches the set percentage, sometimes it charges for a bit longer, and only then stops. No idea how to fully fix it. :/
[Magisk] G5-User7080:
oh so u had the 6a too, then this might help you too, I figured it out for me now.

So it appears that the charging, pausing, resuming, and then not charging beyond the resume_capacity was all cause I set the pause and resume capacity in mV and not %.

It looks like it always pauses and restarts charging so the voltage can drop to normal levels in order to check if the target voltage has been reached yet, except that since it actually goes into discharge mode, if it is above the resume treshold but below the pause value it will act like it does when you connect it while it is in between, - meaning it will stop charging and mini cycle at my resume_capacity.

In the documentation "off_mid" was mentioned but it didnt show up when trying to set it and had no effect.

The current limit for charging works fine when I connect to my 2A powerbank or my pc directly via USB C which I assume can supply about 2A as well, it typically charges with 1.6A but limiting it to 1A or 0.5A works fine.

Just connecting it to the actual 20W brick I have doesnt work.

I use the same switches as you, the main charger voltage one showed up as working but in fact didnt.

But the usb / current one works fine for charging from anything so far, with the exception that if I want to charge from the wall I need to limit the current to ~580mV to be at 1A.

My settings now are "acc 65 50", so range in % from 50% to 65%, usb/current switch without trailing "--" to keep it on auto if it might stop working.

charging current limited to 1000mA when not charging from the wall and to 580mA when charging from the wall.

charging voltage limited to 4100mV, no cooldown (cooldown start set to 90%), thermal max and pause set.

Keep in mind that ACC checks battery stat as they are reported from the kernel, if you call acc -i its the second block.

Kernel % and Battery Service % like to deviate a little, AccA shows the Kernel level too.
[Magisk] Lada333:
I have always had it set in %. Though, up until this point, I've been using main-charger as my charging switch, and likely that was the issue. I've changed it to the usb one, which seems to be working, except.. It randomly "dies," or kills accd, then it takes a while for it to "reboot," then I get the "plugged in" animation again, and only then do my custom values get applied. This seems to happen right when the screen turns off/on.

That is right! I just set the current to 580mA, and it does limit the charging to about .95mA - 1.05mA. Weird how that works.

Since this way of limiting the current works, I think I'll just leave the charging switch as automatic for now. After all, what I'm mainly trying to achieve besides my battery not charging above 75% is to limit the charging speed, no matter what charger I use.

I have a "slow charger," it's 5V/1A (which is what I'm trying to achieve using software), I'll have to see if having 580mA set will make it even slower, or if it will stay at around 1A.

Isn't that what battStatusWorkaround is for?
[Magisk] G5-User7080:
It's about the info command but I understood it as that ACC is reading information from the kernel rather than the battery service, at least it looks like that to me, there is a 2-4% discrepancy between the displayed level and the kernel reported level for me and ACC did start charging when I was below the Kernels resume level.

GitHub - VR-25/acc: Advanced Charging Controller

Advanced Charging Controller. Contribute to VR-25/acc development by creating an account on GitHub.

github.com

StatusWorkaround is something else I think
[Magisk] eried1:
What can be done if idleMode=false and not true for any switch?
[Magisk] beeshyams:
1. Switch to a kernel that supports idle mode

2. If you don't want to do that or can't find a kernel, go through all switches one by one hoping that some switch works despite idleMode = false (unlikely but then you have no choice)

3. I hope you are trying with the latest Dev release and not with earlier versions
[Magisk] eried1:
Thanks! I was lucky and #2 actually worked out for me, at least this time.
[Magisk] t3chwizard:
Anyone have any idea how to get it working on stock December update on Pixel 7? I tried what one guy posted for Pixel 6 but no luck. It's very frustrating as I just got my Pixel and want to make sure it lasts a long time by not over charging it.
[Magisk] G5-User7080:
@Lada333 forgot to mention I was on the latest stable release which is from like june or something.

I switched to the latest dev release now and it has more options, f.e. off_mid actually exists and there are more charging switches, it seems like Idle mode is now actually supported too.

I'm using the usb/current one still, except the one with 50000 instead of 0 at the end allows for Idle mode.

Both have the issue that when I plug in while being between resume and pause capacity it'll start charging, even tho off_mid=true.

However if I restart acc it works and actually stops charging until it hits resume capacity.

Won't really be a problem in normal use since when I plug in I usually want to charge anyway, just now when I constantly disconnect and reconnect it to my pc to transfer data to finish setting up my phone.
[Magisk] Lada333:
I am also on the latest dev build :/
[Magisk] aljustiet:
AccSettings app.
[Magisk] t3chwizard:
ok so it looks like I was wrong and it does stop charging around 80% now on my Pixel 7, I'll have to do some more testing to make sure
[Magisk] djcsurf:
I use this on my pixel 7 with ACC Settings app. It's set to pause at 80% which is does but not sure how to configure it to stop charging instead of pausing.
[Magisk] t3chwizard:
Where can I find the ACC settings app? And do I need to have the module flashed as well if I have that?
[Magisk] Uluru25:
here
[Magisk] eried1:
Don't remember by heart, but if it can't draw power from external source - untick this setting - it should stop charging.
[Magisk] G5-User7080:
for the pixel 6a i use the following:

latest dev build

AccA for monitoring and profiles but you dont need either AccA or Acc Settings for configuration.

then as config, ill attach a ss but for the charging switches I wanna say that "main charger..." and "usb..." work best for me, I just use the 2 usb ones.

the one with 3000000 0 doesn't do Idle mode, the one with 3000000 50000 does (for me) but it still charges very slowly in "idle" mode so i dont trust it completely and use the other switch without.

cooldown capacity > 100 just disables cooldown cycling

instead i pause charging for 90s whenever the temp gets over 30°C

pause capacity in mV on latest dev build pauses when charging voltage reaches this value, for this to work, max_charging_voltage needs to be >= pause_capacity(mV) + 20(mV).

this corresponds to a charge level of ~ 4000mV after charging stops.

turn prioritize_batt_idle_mode on and select a charging switch that supports idle mode if you want to use that, if not turn it off and choose one that doesnt support it.

for me, usb / current max 3000000 50000 for idle mode and usb / current max 3000000 0 for no idle mode.
[Magisk] t3chwizard:
thanks I will give this a look tomorrow. Because the P7 retains battery so well I just have been charging it when I wake up to around 80% and letting it sit at like 40-50% battery while I am asleep
[Magisk] Pervases:
Hello. Does it require extra config when using on RedMagic 6S Pro? I always receive exit code 7, both on Android 11 and Android 12. It's working flawlessly on my POCO X3 Pro tho.

Anyway here's the log.
[Magisk] panira:
Hi, i have an old phone(redmi note 5 pro) and charging maxes out at 5 watts(around 1480 mA). I have tried the official charger from xiaomi(10 watts) and another one at 15 watts, it still charges at 5 watts

Since the battery is old , is there any way to manually increase the amount of miliAmperes the device is charged?

I have set the "Max charging current" to 2500mA but still no luck.

I read somewhere that a electrical compoment will draw as much current it "wants" and needs, does this also apply with my situation?

Thanks ,
[Magisk] Retr0_680:
hi,

i'm new to rooting and all but i need help setting up this acc module cause it isn't charging above 75% while the module is installed and if i remove the module then it charges upto 100%. kindly help me with my situation.
[Magisk] Uluru25:
1. 75 % is the default value of acc

2. if you want to adapt the settings according to your needs, read here and/or install a front end

3. as explained in the link, the main reason of acc is to extend battery life time. Charging up to high levels or discharging down to low levels will do the opposite. Same applies to the charging current and temperatures. To put it short: I do not recommend to charge up to 100 % (but surely this is completely up to you)
[Magisk] ryan7646:
My Poco f4 stops charging after using ACCA app. I needed to restart my device for it to charge again. Is anyone having this type of issue also?
[Magisk] eried1:
I'd say trial and error. Make sure you untick the automatic switch setting, but I guess you already have. Don't put too much thought into this. Mine doesn't work reliably at all times. Sometimes it charges fast and other times slow. Sometimes over night it charges past the limit.
[Magisk] bizkit_120:
Hi, OP 9 os 13 ,I configured pause at 90 % it work seems ok with wired charger ( sometimes it doesn't still don't know why ).. regardless it doesn't stop wireless charging when threshold was met.. can one please let me know why?

I picked correct switcher
[Magisk] t3chwizard:
I have been using this for a few weeks now, but it seems that on my Pixel 7, the device keeps charging (rather slowly however) after hitting 80%. Does anyone know if there is a way to prevent this?
[Magisk] bizkit_120:
Stop at 90 , why it still charging.. can someone please shed some light on this? Much appreciated

(update) spent hrs to testing a good switcher and power supplies, finally able to manage get wire charging works as desired, but still can't curb wireless charging, it always ignore limit.. pls help!
[Magisk] bizkit_120:
Is there any update with your findings? I can't get wireless charging work in any ways.. wire charging works perfectly fine though.. I'm latest Jun build