yashsingh1/xdaforums huggingface dataset:
[Magisk] rez78:
Hi,i'm newbie,a question: i want let stop charging to 90 %. What i must write on terminal? Thanks
[Magisk] amn1987:
I

I am quoting the dev's reply in a similar matter in the ACC TG channel : "Yes, this kind of issue is usually kernel related

However, when it comes to OnePlus and OPPO, it may have to do with the power adapter

Have you tried a generic power adapter?

OnePlus' and OPPO's proprietary power adapters double as chargers*

Meaning, these bypass the charger inside the phone, potentially rendering charging control files useless

* Yes, a charger and a power adapter are not necessarily the same thing."
[Magisk] Nazo:
I keep updating acc in the hopes someday it will fix my issue, but still no good. There is still no change from my last posts. When it hits the target threshold it completely cuts off all charging semi-permanently until I reboot the phone. This means slowly but surely the voltage goes down every time I use the phone (usually only a few moments, but it adds up.) I don't need my phone to have a huge charge, but when it's getting into the lower 70s I need it to be higher so that when I do actually have to use it on the go I can count on it for as much as I actually would use it (which isn't much) to remain in a good voltage range (plus, ok, I'll admit it, a little bit is an OCD thing, but I can't have it that low.)

I guess it will never properly reenable charging like it should when the low threshold is met, but is there at least some way I can manually force the system to reenable charging without having to reboot? Just stopping the service isn't enough. Whatever it does to stop charging stays in effect even if I stop the service. Is a reboot the only way to fix it?
[Magisk] Jirachilover:
Latest update enables limiting mA on my pixel 4a 4G running a11, pseudo battery idle mode here we goooo 🥰
[Magisk] Hyperwool:
ahhm in latest update why when i set up my Charging Capacity to 95% its okay, but when im rebooting my device it stops in charging in my Redmi Note 8 Device?
[Magisk] Michael1200:
Has anyone figured out a way to make it work on the Pixel 5 without flashing a custom kernel? For me, unfortunately none of the switches work, and so my Pixel always charges fully, regardless of the set maximum ...
[Magisk] amn1987:
You could maybe manually edit the control files? With recent kernel updates I can now reliably tweak both charging current and voltage. Earlier Acc was a bit problematic in my Poco F1 so I now have Tasker in charge of it all. I have also placed Tasker widgets on the home screen to change values with just a tap. The file permissions are seemingly reset at every boot and I have set Tasker to change it automatically to desired values.
[Magisk] Nazo:
If you mean the one acc controls (eg /sys/class/power_supply/battery/store_mode in my case,) this alone seems to not be enough. Changing that file manually still does not reenable charging. I already tried that before. There must be something else that gets changed along the way when acc does its thing that I need to change back I guess?
[Magisk] amn1987:
I don't knowvabout that. Maybe if you could provide logs or something someone could take a look.
[Magisk] JONBOY345:
Question, would it be possible to integrate a feature that switches charging profiles according to wireless or Bluetooth connection?

As an example, if my phone is connected to my bluetooth headunit in my vehicle and plugged into a USB charger, switch from the default profile to a profile that allows the phone to charge to a user defined percentage as quickly as possible.
[Magisk] Nazo:
I did in this post: https://xdaforums.com/t/advanced-charging-controller-acc.3668427/post-83867419
[Magisk] brackenhill_mob:
Check out something like Tasker. Shouldn't be too difficult to get this idea to work
[Magisk] deepakdavidster@gmail.com:
All Phone makers should adopt this, as laptop makers did in recent laptops
[Magisk] chomsky55:
They want us to buy a new phone when the battery dies.
[Magisk] faxpaper:
Stopped working with March update and ElementalX 1.05. Any suggestions?
[Magisk] 73sydney:
Could be worse, i have a Pixel 2XL with a custom ROM and kernel, which supports i think ALL the switches, and yet it still charges all the way to 100%

How can it not work on Pixels? I see post after post on every Pixel variant.....

Im trying to manually set switch and see what happens...i dont hold out much hope though
[Magisk] raginginferno:
I had to change the control file to:

/sys/kernel/debug/google_charger/input_suspend, 0, 1

But it still doesn't quite work with ACC. It will get it right the first time you activate. But then it will charge past your limit. It's like it doesn't write to file properly anymore. It's like you need to have ACCA force write the file... But I couldn't figure it out with the app. Maybe it works better manually?

So for now I went back to the old Battery Charge Limit App. It seems to work there for now.
[Magisk] raginginferno:
It won't work without the custom kernel. For whatever reason Pixel 5 needs the custom kernel to be able to access the control files to stop the charging. Even with root you won't find the files if you look for them manually. It will never appear. But the moment you have a supported kernel. You will find them exactly where they are.

Older Pixel phones don't seem to have this issue.
[Magisk] Meth0d:
Acc stopped working for me on pixel 4a after march update running blu_spark kernel.

Have not figured out how to get it working again.
[Magisk] Nazo:
May I ask what this app is? Perhaps it would help me on my own phone.
[Magisk] GoldElocks:
I'm having the same issue on the Pixel 4a 5g. Worked fine on February build with Elemental 1.04.

Where can I find this old Battery Charge Limit App you speak of?
[Magisk] raginginferno:
Battery Charge Limit [ROOT] - Apps on Google Play

Stop charging at desired level to preserve battery health for most devices!

play.google.com

I say it's old because it hasn't updated since 2018. Which doesn't make that much difference since it's just writing 1 and 0 to a file. As long as you know what file it is, in theory it should just work.
[Magisk] codlike:
I love this module, I hate overcharging my battery, much love and appreciation to the developer. I have a Pixel 4a, its worked fine until the March update. Magisk installed. Not working since the March update. If I try acc-t, all of the switches say "dont work".
[Magisk] Rudi154:
Same until March update.

Pixel 4a with stock rom and kernel.
[Magisk] 0LDST4R:
Similar problems with my Pixel 2 official LOS 17.1 , ElementalX kernel 3.20 , massive underclocked. This module is great, great, great - but i'm out of ideas to get it to work proper on this device. I'm a long time user of acc and fbind since the beginning on my Sony and Sammy devices , @VR25 is a wizard for me , great modules. Acc works partial on my Pixel 2 , charging until my specified lvl is reached , all fine , but the phone stays at this lvl , no discharging until my specified minimal lvl and charging again. Monitoring apps gave the output " charging with 4 mA " , no discharging. I played around with the config file, no problem here , all values and changes are well explained. But this damn Pixel 2 won't do what i want. Crazy.

Anyways, great module, working on all my Sony and Sammy phones since a long time. Thanks.
[Magisk] ImBenny:
My Sony Xperia has Charging Optimization setting by default. Can I use this module next to it or should I turn it off before install.

Or should I use only the factory one?
[Magisk] amn1987:
Is there any issue if maximum charging current is set too low? Like 50-80mA while emulating pseudo battery idle mode. Setting it to 0mA causes battery charging LED to continusly blink. By capping charging current the battery temp. usually doesn't exceed 40°C with the device still in use.
[Magisk] mzeigler1:
Hello,

ACC is not working on Pixel 5...I have tried both the app and the module, neither seem to work. I test and change the charging type, but I always wake up and the phone is fully charged.
[Magisk] btb55:
I really rate acc, its such a good app, though like others it had lately stopped working properly on my OP6T, and i wasn't sure which update seemed responsible for it failing. Whatever I set the limit to, it would indicate charging had stopped, but still the charge level kept seeming to increase at an unrealistic rate up to 100%, and it would then discharge really quickly back to level I'd set. I couldn't trust the charge level to be accurate.

So after some intense version testing I now have it fully working again, with battery idle mode too, just as it should.

If it helps anyone else AccA v 1.0.26 (30), and ACC v 202007260, are the ones I have, OOS 10 with mcd_op6x r3 kernel, (pre-release from telegram group), and Magisk 22004, it now obeys my charging rules and is reliable again for me.
[Magisk] dasbooter:
Hopefully not a stupid question that I'm asking here but I cant figure out if an answer exists by searching.

My Poco x3 nfc has had ACC running on it from the very beginning in the hopes of preserving the battery and getting off the "get a new phone every 18 months wasteful train"

The phone seems to obey the parameters I have set charging to 80% and stopping and then it will charge back up to 80 if it goes down to 70%. The thing is if I happen to take it off the charger at 80% it will stay at 80% for a long long time while it is being used.

Is it possible it is still charging to 100% and only showing 80% in the software then once it actually declines to 80% it then goes down in the GUI? Can somebody who knows more about how the software/hardware interaction works comment?

I thought about charging it to 100% once as some sort of calibration but would that help? Sorry there is some fancy stuff going on in this thread which is really cool but I'm just trying to stop getting a new phone and not sure I am accomplishing that.
[Magisk] add_pl:
Dont work on my Mi 11
[Magisk] gorilla p:
It is no longer working on my OnePlus 8 Pro on Android11. The Daemon will not start. Tried 2021.2.25 as well. Cleared storage in app.
[Magisk] lysiong:
may I know that command need to add to which file? I'm using Mi11 too :)
[Magisk] add_pl:
@gilgamesh0808 please explain how to add this switch on mi11
[Magisk] mwahahaa:
Flash proton kernel and it will work. Latest elementalx 1.05 does not work, but 1.04 does if you can find it and flash with the app.
[Magisk] Domac5:
How much max current (Ma) should I set to keep my battery health as much is possible? I charge during the night so i don't care how long does it take to charge
[Magisk] 73sydney:
I personally set my old Pixel 2XL to charge at 500mA off the mains charger - which is the same max as if you plug it into a PC's legacy USB-A port.

Enable the Priority battery idle mode option if your device supports it, and when it hits your % limit, it will switch to using the supplied power, over using the battery and trickling, leaving you the full battery when you unplug in the morning. At least thats the theory as i understand it
[Magisk] ricky56789:
Do you happen to have a link for 1.04? I can't seem to find it anywhere
[Magisk] gorilla p:
The app is now working on my OP8 Pro on A11.

Installed latest version. DJS failed to install from app. Installed DJS via Magisk.

ACCA deamon started. Will see if it keeps working.
[Magisk] gorilla p:
So its kind of working, but having problems. Each morning, I wake up and the battery is between 40-60%. I think its having trouble with the cooldown or with wireless charging. Disabled cooldown and charged via cable and it charged without issue.

Now, despite having DJS module installed, ACCA keeps telling me that DJS needs to be installed and fails each time I try to install via the app.

Any suggestions?
[Magisk] Alex Martin:
I confirm. The Daemon will not start. Tried 2021.2.25. More or less, only version 202010150 works fine.

POCO X3 NFC, Android 10
[Magisk] gorilla p:
Try uninstalling, installing magisk module, installing DJS magisk module, and installing latest app from github and reboot. I had to play with mine a little to get the daemon to work.
[Magisk] michael-mml:
Tested all the charging switches on the repo and none worked for stock Pixel 4a (sunfish) on RQ2A.210405.005 image to set charge limit; using Feb 25 acc

Voltage and current limit seems to work however
[Magisk] Rudi154:
I still have the exact same problem since the March OTA on my Pixel 4a. (Rooted with Magisk 22.1 and stock kernel.)
[Magisk] MrBrowseGierza:
When it says only working switch is Battery/mmi_charging_enable 1 0 means what?
[Magisk] iaTa:
I have a Pixel XL which I'm using purely as a photo backup device so it stays on charge.

The battery is almost at the end of it's life and even when plugged in sometimes shuts down.

Is it possible to bypass the battery circuit completely using ACC so that the device uses USB power only to operate?
[Magisk] T3ch_@advanced:
I have to admit this is a really weird problem. Clearing the store should have solved everything...
[Magisk] isaiah17:
how to set cooldown current to 700ma when battery temp reached 46c?
[Magisk] LeifAlbor:
I think it's become pretty clear that Advanced Charging Controller is no longer supported by @VR25 and could arguably be labelled as abandonware. The original post here hasn't been updated since June 2020, and @VR25 hasn't been active on XDA since November 2020.

Looking at @VR25's Github, he's also generally been inactive since November 2020, with an exception of a couple commits in February 2021. I hope @VR25 is doing well and there hasn't been any negative life impacts which have caused this.

It's a shame, because ACC is a fantastic tool - but I'd be strongly inclined to suggest that anyone having issues with ACC should start looking for other solutions. Any methods that re-enables ACC's functionality will be workarounds and are likely to be short lived. Good luck folks!
[Magisk] Extreme_Ninja2099:
It is sad that ACC has been abandoned. Like it still works for me and probably would till I stop using it. I use the one on Magisk manager (V2021.2.25), tweaked config.txt to start at 82% and stop at 86% and it still works
[Magisk] mindyabiznis:
What phone and os/kernel are you running?
[Magisk] Extreme_Ninja2099:
OP6T. Doesn't matter what ROM or kernel I'm running. It will work either way
[Magisk] mindyabiznis:
I thought it needed to be enabled in kernel to work.

I'm trying to get it setup on my new pixel 4a but having no luck
[Magisk] Extreme_Ninja2099:
Well this is my normal process of installing ACC

Download or install v25 in magisk manager

Find config.txt and modify it

Install Acca app to check if the daemon/mod is working

Go into the settings to see if my changes lik stop at 86% and start at 82% worked

Done
[Magisk] Twodordan:
I don't have Telegram and can't read the full post. Do the S21 series phones support battery idle mode? The ACC app when trying to Test Battery Idle mode, sometimes it quickly turns charging on and off like 3 times and determines it's not supported by the kernel, either it gets stuck forever on the "Please Wait... This will take a few seconds" screen.

The phone only has a 25W charger, so that might mean that it may not be enough to run the phone at 100% without the battery, so samsung might have disabled the feature or who knows what they're doing in the backend. I am just speculating I have no idea, hopefully someone can clarify.
[Magisk] amn1987:
It's not listed. Very few newer devices anyway.
[Magisk] 73sydney:
Sadly it doesnt work well on Pixel devices....i think one custom kernel out of many supported it on my Pixel 2XL, but even i have forgotten which one that was as i flash ROM's far too often.

I gave up on this and just used an app from the store to stop charging at a certain %
[Magisk] mindyabiznis:
Right so this may or may not be of some help to those with pixels running custom kernel, I'm using blu.spark r97 on P4a latest official lineageOS build ...

Open AccA app

Go to settings - ACC version - select 2020.10.24 let it download.

Go back to main screen select profiles and then either edit one already there or create new profile and call it what you want.

Create custom charging switch to /sys/kernel/debug/google_charger

On value 0

Off value 1

Save

Turn off "automatically cycle through switches"

Then enable "prioritise battery idle mode" in that profile setting

then plug in your phone open the app up check that daemon is running, click the log button in top right wait for text to start scrolling then swipe back, it should say "AccA was granted superuser rights" it should now stop at the % you set and not charge over whatever it is.

Nothing was working for me until I tried this and now it seems to be working, it stops at set % for about 30s and then it restarts but at very low ma like 3-400ish and then goes back to 0, I guess it takes a little time for the daemon to check battery and initialise the scripts that are set based on what the battery reports?

Before I enabled the prioritise battery idle mode it would stop charging at set % and then 20 seconds later would start charging again, first slow at like 300-500 ma and then right up to 1970ma and within a minute or 2 be 3-4% higher than what I set it at.

Try it out, it might work for you, again though, you need a custom kernel, stock kernel had the kernel debug folder removed in Android 11.

EDIT - so it was working like this but I have since rebooted my phone and it doesn't seem to be working now so f**k knows, worth trying though YMMV.
[Magisk] mindyabiznis:
Edit double post
[Magisk] mindyabiznis:
I'm thinking something has been changed in the way the switch to turn off charging is not a persistent setting, it pauses at % specified and then seconds later it starts charging again and with a rapid charger it only takes that 30 seconds for ACC to kick back in and stop it charging for it to have gone up past whatever % you set.

So it creeps up like half a % everytime the charging is stopped then re-enabled and then stopped again.

The problem is that because of this even though charging is stopped, the constant re-enabling of charging means that it won't pause charging until it drops back down to it's start %

I don't know how this can be fixed, seems like something implemented in Android 11... The stop function does work but it's not persistent so it has to constantly loop back through check battery - report % - enable switch... *charging re-enabled itself* check battery - report % - enable switch and so on.

If I plug in my phone when battery is charged above the % I set, it doesn't charge straight away because AccA is working but after a say 15 seconds it starts charging again low ma and then stops again.
[Magisk] mindyabiznis:
Edit - doesn't work.
[Magisk] T3chDelicious:
Just wondering - Can you tell me what app you use?
[Magisk] canka591:
Hello guys I'm using Galaxy Note 8 with Hades Rom Q v1.0 (Android 10). I've been using ACC and ACCA for a long time, but somehow I can't use it the way I want. When I come to the Acc config section and set the charging transition setting to "battery / store_mode 0 1", my phone is charging 70% while it is connected to the charger and when I want to charge it 100%, I have to turn off the phone and turn it on again. The charge without restriction option it does not work.

Can someone tell me a way to keep the charge stable at 70% or 80% for the Samsung Galaxy Note 8 and make it 100% whenever I want?
[Magisk] 73sydney:
Sure, this one:

https://xdaforums.com/t/app-root-4-0-battery-charge-limit-v1-1-1.3557002/
[Magisk] Scepterus:
hello, I'm trying to move over to this app from battery charge limit, but can someone tell me if the profiles are broken? because I set them to something and it always stops at 70% no matter what.
[Magisk] 73sydney:
Use battery charge limit...it works
[Magisk] Scepterus:
except when it doesn't and my battery reaches 100%. anyway, it's also dead the last update was in 2018.
[Magisk] 73sydney:
Or except when its the only app that works on a Pixel reliably, and you can make it work on any ROM by changing the control file to reflect the correct entry under /dev to stop charging - which by the way doesnt work with ACC even if you get it right...

Just because theres been no development since 2018 doesnt mean a thing, i have more than one app that hasnt seen a dev in years and still performs important functions....im sure theres plenty have similar on their devices...

If having a recent version of something was critical, then the app store would be empty...
[Magisk] Scepterus:
well, i got it to work, turns out you need to first install the app and let it install the magisk module.

as for your reason to keep using battery charge limit, I don't have a pixel, and it did not support other devices I have and tried.

also, apps have a certain API they must meet, so if an app has not been updated in 3 years it will most likely not work on the latest android or maybe a few versions after that.
[Magisk] cyber.wise:
Hello there.

I just want to ask two questions.

How can I get to the Therminal command list and detailed descriptions?

How can I learn the health and other values of the battery.?
[Magisk] amn1987:
Its usually located in sys/class/power_supply/battery. The file named "uevent" shows a boat load of details including battery cycle count if supported, max. and current charging voltage and charging current, original and current battery capacity, the charging control file in use etc.
[Magisk] cyber.wise:
Elleriniz

Don't be sick at all. Thank you.

I want to ask one last question.

My phone is Xiaomi Mi10 UMI.

Designed battery capacity 4780mAh.

It's been 1 year. I bought the device 1 year ago. Now the battery information is as follows.

142 charging cycles.

Maximum battery capacity with 4281mah.

Healt looks good.

It cannot be doal that my device's battery capacity is so low. This is ridiculous.

I was using Iphone 8 Plus. The battery capacity was 83% in 2.8 years. Charging Cycle 500.

Can this be a calculation error?

I don't know how to calibrate the battery. Does it improve after battery calibration?

How is the battery calibration done if possible? Can you tell me? So much to me
[Magisk] add_pl:
Hello,

I looking for wireless charging switch for Mi11

Please help, logs here
[Magisk] amn1987:
In my Poco F1, battery capacity has reduced twice in the last 20 months, roughly once every 10 months ~300 cycles. The built-in utility only seems to register a change when capacity drops by 10%. Accubattery has been better in terms of predicting the decline earlier. Interestingly even when new Accubattery estimated battery capacity only at 93-94%. I am inclined to agree. Current estimate 73%.

Interestingly in the last few days since I have enabled bypass charging (by just limiting the max. charging voltage ) the battery cycle counter hasn't budged from 631. I think if this holds I should be able to get through another year w/o much more degradation. My older Redmi devices are still in 82-85% health range 4+ years later as they supported bypass charging from the beginning.

Usually Apple uses batteries that hold useful capacity over far longer cycle counts. And they are a lot more expensive as well despite usually being significantly lower in capacity relatively. Once battery health falls below 80% it usually goes downhill rapidly thereafter. Manufacturers only guarantee 80% capacity after 300 cycles or so. In case of Apple I think it's at least 500 cycles. I have heard 800-1000 cycles for their MacBooks.

In my case calibration didn't do anything. From a high of 14-16h SoT when brand new, down to 10-11h currently.
[Magisk] Valiante:
Are there any kernels for the Pixel OG / Pixel 1 to enable bypass charging aka battery idle?
[Magisk] xtzy:
It would be nice if an audible notification of the end of charging to the set level was issued.

Can this be implemented in the next versions?
[Magisk] 73sydney:
It seems there is no further development, just so you arent waiting for your feature to be adopted.

There are apps, or even tasker or automate profiles that will do what you are looking for. I know it would be nice to get everything in one app, but it probably won't happen here
[Magisk] xtzy:
It's a pity, of course, if that's the case.
[Magisk] htcpili:
redmi k40pro,miui 12.5,invalid,help me