yashsingh1/xdaforums huggingface dataset:
[Magisk] deechte:
I've stumbled upon this thread, because BCL stopped working on my Oneplus 7T Pro after the Android 12 update. AccA works out of the box, thank you.

I do have a question though. The battery level in AccA is 10% lower than what my device says. Searching this thread I've found that 3-5% can happen https://github.com/MatteCarra/AccA/issues/9 but normally where the system gives a lower number than AccA if I understand correctly.

Is 10% difference in this order normal too?
[Magisk] killer23d:
I am using the stable release version on Pixel 7, using the setting from Pixel 6. I still need to test but it is showing charging stopped at 80%

https://xdaforums.com/t/advanced-charging-controller-acc.3668427/post-86041949
[Magisk] SimpleStevie:
Edit... I've fixed it 👍
[Magisk] CBMC:
On my pixel 7 pro, it would only intermittently work. Sometimes it would stop idling, and sometimes it wouldn't even charge it all. I tried several switches to no avail. Every once in a while it actually would stop at shutoff point and idle for a while, but eventually it would start charging and creep up to 100%. I assume you are on v2022.6.4. What switch are you using and having luck with?
[Magisk] killer23d:
2022.6.4. I used the same switch as I used on Pixel 6 which I replied the post with the terminal command to another member above. The command was provided by VR25.

I attached a screen shot for ACCA, but my settings must be entered from adb shell or terminal. Use my screenshot as a reference only.

I use wireless charging almost exclusively and I confirmed this morning my battery is still at 81% even the wireless charger is on.

All my chargers have a Led that changes color. When ACC is working at idle state, the Led would flicker so I know it is indeed alternating between charging and discharging.
[Magisk] Captain_cookie_200:
hey uh from where do i download this. i am confused. could someone please tell me? thanks
[Magisk] dimm0k:
hi all. i recently installed ACC, as well as AccA using just the defaults on my Pixel 7 Pro... seemed fine until i went to let it charge to 100%. now the battery reading in the top right keeps "alternating". started at 100% then dropped to 97 and then a few seconds it goes back to 100... been doing this "alternating" of at least 3% all the way down to 50% now... even tried restart the phone 3x, as well as leaving it off for a few minutes before turning back on, but still doing it. any idea what's going on?
[Magisk] TUN_SD:
ACC is not working on the Motorola edge 30 ultra (stock rom). Any advice?
[Magisk] 73sydney:
yes, read the documentation the dev spent hours writing:

GitHub - VR-25/acc: Advanced Charging Controller

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

github.com

probably specifically, though you dont specify why its "not working" or provide any useful info :) :

https://github.com/VR-25/acc/#charging-switch
[Magisk] zzenyoo:
Acca is quite outdated and it's malfunctioning on newer systems (in my case it's ok 🤷‍♂️ but i have POCOX3NFC on crDroid9 a13). Try terminal setting.
[Magisk] Uluru25:
... you could give another front end a chance: https://github.com/CrazyBoyFeng/AccSettings

I am very fine with it.
[Magisk] dimm0k:
thanks, I'll give this different front end a look. however back to the reason I posted in the first place and that was to figure out what might be happening and more concerning, if it did any sort of damage to my battery as a result.
[Magisk] mochamoo:
Read the documentation about testing charging switches to find one that works for you. Try uninstalling/disabling any other battery apps that might be interfering. Also install newer version of vr25s acc. F-droid version of acca is outdated.
[Magisk] bunklung:
I used "acc -s s="/sys/devices/platform/google,charger/charge_stop_level 100 5 --"" for my Pixel 7 and it generally works, sometimes. It seems to keep charging, then stopping, then charging.

On USB charging (slow PC port), it's even worse and doesn't seem to charge long enough for it to really charge. Does anyone else have this issue? This is a Pixel 7, non-pro.
[Magisk] GivIn2It:
Do you have a link for an .apk, or can you tell how to install that? Without an apk, that github stuff is gibberish to me. But, I would like to learn how.
[Magisk] CBMC:
Mine did that. I uninstalled acc with the uninstaller, deleted any front end apps, turned off adaptive charging mode on my pixel 7 pro and installed the 2022.6.4 version of acc. I ran a test of switches, the only switch that showed idle mode capable for me was 'main-charger/voltage_max 4200000 voltage_now'. I set the switch using acc -ss. I then set my stop/start parameters via the config file. Also made sure batteryidlemode was set to true. Now my charging seems to start/stop and idle correctly. Only 24 hours in, so we'll see if I have any problems going forward. Not sure if completely deleting any acc front end apps or using the uninstaller on GitHub fixed my problem, but now it seems to be working.
[Magisk] Uluru25:
... just click on "latest" and then download the app-debug.apk
[Magisk] Darth Bidder:
Too bad the ACC App is not being updated anymore.

I keep having issues with the config not saving then the app will just crash.

I need help, I'm trying to enable the reset battery stats on pause using Termux but I'm not sure what I should put exactly on the "(rbsp)". Should it be "true" if I want to enable it?

So it's going to be like this in Termux: "acc reset_batt_stats_on_pause true"?
[Magisk] goRt:
I've done a lot of playing around on my P7, the most stable option I've found is gcpm/constant_charge_current_max 4000000 0

Although ACC -t shows that doesn't support idle it does when selected - run for over 24 hours switching from wireless to wired charging
[Magisk] Uluru25:
... as already written I use AccSettings as gui. Regarding the correct syntax for resetting battery stats on pause, see screenshot.
[Magisk] bunklung:
Thanks for both of these responses. I didn't realize I was using a pre-release, so I downgraded to 2022.6.4 and went with this option on the P7NP:

acc -s s="gcpm/constant_charge_current_max 4000000 0"

When I plug into USB is now shows USB powered as true. I also don't see the screen randomly turning on and off.

Thanks!
[Magisk] mochamoo:
This has been working for me as well. However, the last day or two I've noticed that it is charging to 100% while on wireless charger. Do you have anything in the "apply on plug"? I've been going ok without.

I also miss the battery status saying charging (fast) or (taper). Now it's just charging or discharging (unknown) in ACCA.
[Magisk] mochamoo:
Disregard. Somewhere along the way Accubattery was active (after I'd disabled it). Have uninstalled it entirely and issue seems resolved for now. However the status thing isn't helpful. It used to say "idle".
[Magisk] Jch4xer:
Tried acc settings and acca, but I think since both are depreciated and don't work anymore on P7Pro.

Switches from idle, to charging past set 80, and sometimes showing 100 when it's plugged in etc.o welll
[Magisk] goRt:
AccA is out dated, settings is fine.

What charge switch do you have set - we've identified the one we feel works a few posts above yours
[Magisk] Jch4xer:
Fixed it. Had to turn off adaptive charging and reset the whole thing.
[Magisk] bunklung:
So, I had to switch to:

acc -s s="charging_switch=main-charger/current_max 500000 0"

This is for a p7np.

Wireless charging doesn't work. It keeps phasing in and out of a charging state. Is there a way to use a certain switch depending on if you are wireless charging? Can you have more than one switch depending on the situation?
[Magisk] goRt:
Tasker?
[Magisk] Extreme_Ninja2099:
I have a OP8 pro running A13 ROM... What commands did u use in terminal? For me I managed to set start from 82% and stop at 86%. But once it reaches to 86% it still shows that it's charging when it's not...
[Magisk] zzenyoo:
like I said for me acca work quite well so I didn't had to use terminal. This is my config.txt for reference coz it may differ in your case (charging switch, etc.)
[Magisk] Extreme_Ninja2099:
I managed to get acc working on A13 custom ROM

Prerequisites:

acc 2022.7.30-dev version installed

AccA 1.0.35 from the github: Link

Method:

Install AccA 1.0.35 apk

Open the app

Grant root

Go to profiles

edit charge to 90%

Change the values

Turn on prioritize battery idle mode

Click save

Click on that profile to select it

Done

Notes:

I use a 8 Pro, so this might be different for you

The one issue on A13, is that the battery icon stays on charging and doesn't change back to normal/discharging.

This would've been better as it's more obvious that acc worked and the phone stopped charging
[Magisk] WhoIsJohnGalt1979:
I have tried using the ACC module on my P6P and now P7P to varied degrees of inconsistency. Finally I settled down to using a magisk mod that @kylechen had shared in the P6P Themes/Apps/Mods section.

What the mod essentially does is set the charge_start_level and charge_stop_level vales for Google charger in /sys/devices/platform/google,charger/charge_stop_level and start_level.

I have been using the 85% module which essentially stops charging at 85% and starts charging at 84%. Has been working flawlessly for me since August last year.
[Magisk] Extreme_Ninja2099:
Seem like that mod is only for pixels 😥
[Magisk] mochamoo:
This is what is set in acca. Yet when I look in termux it shows up capacity control as 5 101 70 75. What is the 101 and where is it coming from? My pixel 7 pro still charges to 100 after some time. Have tried different charging switches and have mcc 3900 mv 500. Just turned off the adaptive battery settings so maybe that will help?
[Magisk] Uluru25:
The 2nd value indicates the charging level which triggers to apply the cool down modus. This cool down modus can e. g. a pattern of charging - not charging - charging - not charging... for a defined amount of seconds (e. g. 50 s charging then 10 s not charging) and/or to reduce the charging current to a different value. I use the latter one, thus my phone is quickly charged to a certain level, then the last percent are charged with a reduced current.

I assume acc uses 101% if no (!) such cool down modus has been configured.

edit:

see the screenshot in https://xdaforums.com/t/advanced-charging-controller-acc.3668427/post-87695451: this is my configuration with 60 % triggering the cool down to 500 mA.
[Magisk] mochamoo:
Thanks for the explanation. Charging switch gcpm/constant_charge_current_max 1933000 0 seems to work sometimes. But then it doesn't and it goes to 100% at night when on the wireless charging stand. I watch the battery status in ACCA and it seems to be working as intended but the phone's battery usage graph shows it creeping up over a few hours to 100. Same when using ACC settings. Arghhh! Hoping that turning off the adaptive charging settings will help. Will find out tonight. Am slowly learning my way around termux and/or adb shell.
[Magisk] mochamoo:
Still no luck. Going to try calibrating with a full charge next. Was trying night settings out. Was still using phone until almost 3am. Any suggestions?
[Magisk] Uluru25:
... if you want you can try my config file and - if it basically works - modify it according to your needs.
[Magisk] mochamoo:
That would be great. Thanks
[Magisk] Uluru25:
Here it is.

edit: seems that I can't upload here. I will try to send it as pm
[Magisk] Uluru25:
... just sent you a pm
[Magisk] LeFish1:
Hi there,

I have found acc in combination with the AccA interface very useful for me. I used to charge my phone (LG G8s Thinq) wirelessly ever since I bought it new and it also worked with my newly bought fast wireless charging station integrated in my night clock.

Now a few days wireless charging stopped to work all the sudden. It does not work on neither of my 3 wireless chargers (different brands). Wired charging still works normally. The qi chargers range from old crappy model over old but reliable 5W-model to the 10W new model in my night clock.

I can not get wireless charging to work again even now that I installed LineageOS 19.1 and therefore reset my phone completely (I did not work with backup)

I would like to help to debug what happened and maybe get my integrated qi charging back. Please advice me which informations you need. I have rooted the phone and can gain adb access.

You can also PM me if it does not fit in this forum.

Thank you!

Best regards

LeFish
[Magisk] mochamoo:
Fingers crossed but I think I've finally got acc working on my Pixel 7 pro. I tried different switches and the custom config file that was pm'd without much success. For the umpteenth time I removed acc from the phone entirely and then reinstalled it. Using acc -t with the wireless charger that I prefer to use I got a new switch that tested good (and for idle too). "maxfg/offmode_charger 0 1". Been using it for almost 24 hours now. So far so good. Also set mcv 4100 and mcc 1000, acc 75 70. Seems to be working both wired and wireless with idle enabled. Will continue testing as other switches that would work for a while would suddenly not work any more. I have done most of my configuring in termux or with acc settings gui.
[Magisk] dzjin:
Updating my Nothing Phone 1 to latest 1.1.4 NothingOS broke ACC. It's a clean install and it charges to 100% (I've set it to 80%) but low battery shutdown works at 5%. I'm not getting any error messages either this is the config I've been running with. Had it working perfectly fine until the updates. It's a copy-paste from someone earlier in this thread. Do bear in mind that I don't just copy-paste the config.txt file I actually type in all the changes on the default one. Am I missing something here? I'd really appreciate if someone could help me out with this. BTW the nothing phone 1 now supports fast charging and maybe that's my issue? The config.txt files location is in: /data/adb/vr25/acc-data/

configVerCode=202207300

ampFactor=

battStatusWorkaround=true

capacity=(5 101 75 80 false false)

cooldownCurrent=

cooldownRatio=()

currentWorkaround=false

dischargePolarity=-

forceOff=true

idleThreshold=40

language=en

offMid=true

prioritizeBattIdleMode=false

rebootResume=false

resetBattStats=(false true false)

temperature=(40 45 90 65)

tempLevel=0

voltFactor=

applyOnBoot=()

applyOnPlug=()

battStatusOverride=''

chargingSwitch=(battery/charge_control_limit 0 battery/charge_limit_max --)

cooldownCustom=()

maxChargingCurrent=()

maxChargingVoltage=()

runCmdOnPause=''
[Magisk] dzjin:
Anyone with a OnePlus 5T that has a working config file to share please? Thanks in advance.
[Magisk] SebaS-DG:
Seems one of my 4 xiaomi redmi note 7 is damaged or something.

Using ACC it charges after the limit and sometimes stop and sometimes start again for no reason

I set 40 start and 80 stop

After isntalling a new system, I was using lineageos 18.1 android 11 on all my redmi note 7, and ACC is working well on 3.

This special one isnt working very well, I installed FORK OS 19.1 android 12. And the problem still here.

Not sure what to do now, right now, with good temps, and at 89%, is charging for 1-2 minutes, stop for 30 secs - 1 minute and start again.

Even with clean new profiles is doing this.

Any idea? maybe is just damaged by hardware level
[Magisk] Uluru25:
Please, upload a screenshot of your settings in the frontend and the configfile.
[Magisk] FloyderE:
Can you please send me your configuration too?

I am trying to figure it out how to set it properly on my new Pixel 7. Until now I just figured that it is necessary to disable adaptive charging in the System Settings in order to not compete with acc settings, but I'm not sure about the whole configuration that I am currently using.

Thanks in advance!
[Magisk] Uluru25:
... done!
[Magisk] mochamoo:
This worked pretty well but I found a better solution for my Pixel 7 Pro. I updated acc to the latest dev build (acc -u dev). Then tested configs. The first one I chose to try is (gcpm/constant_charge_current_max 1866420 0). It is working perfectly. Pausing and charging as it should. Idles too. I didn't change max current or voltage. The one above kind of missed the target pause / charge and had to play with mcv, mcc. Not with this new setup.

Does anyone know what gcpm stands for? Just out of curiosity.
[Magisk] radekmazur:
So what do I need to install and set to make ACC work on pixel 7 pro?.
[Magisk] Schroeder09:
I'll be closely following this. It was a buggy mess on my Pixel 2 XL, and I eventually gave up trying it. The adaptive charging on the pixel 7 pro is really, really, really good. Sometimes I'll wake up in the middle of the night and look at the battery percentage. After 4 hours or so. It may have only gained 30 or 40%. It really does a nice trickle charge when it knows that you can afford the time. I just wish I could cap the max percentage at 80. If that were native to AOSP, this module would not be needed because all the trickle charging and stopping functions are already baked in I think.
[Magisk] mochamoo:
See my post just before yours
[Magisk] radekmazur:
What configs are you referring to?
[Magisk] mochamoo:
Have you installed acc and read the documentation?
[Magisk] Schroeder09:
Can you link us to the download? I looked in the OP, at the listed GitHub there, and 1-2 other links in the thread. I'm not seeing a dev -u build. Are these configurations you say you got working available at the same link location?
[Magisk] mochamoo:
The downloads are on Github. On Github there are the master builds and the dev builds. Github isn't the friendliest. Think of it as a learning activity :) The master build has the released version from June 4th. From there you can also get to the dev build. The dev build I have is from 7/30. There is a lot of very detailed documentation that I realize is difficult for some to navigate. acc dev -u works from a terminal app like termux. The gui friendly developers have not kept up with the underlying acc builds that vr25 has built. They are ok to a certain extent but I still recommend that you look at the documentation because the guis aren't fully compatible. I am not the expert really. I just have been figuring it out as I go along. Acc has been working perfectly on my 4xl and think that I've found the perfect setup for 7pro....maybe... but looking good so far. YMMV.
[Magisk] mochamoo:
Btw there is a link to the releases and the documentation in the OP.
[Magisk] Schroeder09:
Yes. I saw those and browsed them. There are dev builds but no "dev-u" build as you originally mentioned. That's what I was asking about.

Did you use this latest dev build?

Jacc_v2022.6.4_202206040.zip

Are the settings of file or did you enter those through a terminal or the application that is also a download on the OP of this thread?
[Magisk] mochamoo:
The terminal command is acc -u dev (acc -upgrade dev) to download the latest dev build from the build you referred to or you can get it directly from the link on the OP. I use termux for the terminal app that you can get by doing a web search or from the google play store. I think it is recommended to get it through fdroid. All the acc commands and config info is in the documentation. I am no expert with the commands but did read the documentation to try to figure things out. I recommend that you do so as well before asking more questions. Vr25 spent a lot of time writing up the documentation. It answers a lot of your questions. You can try the default settings. And after you are more familiar with what those do you can tweak them as I have done.
[Magisk] Repear88:
Hi @mochamoo

I have a pixel 7 pro as well.

I went through the doc and I tried acc yesterday (uninstalled for now). With the command acc -t I noticed one that was working, it looked like the one you mentioned in post #4732. (gcpm/constant_charge_current_max 1866420 0) but was slightly different : gcpm/constant_charge_current_max 1933090 0.

So first idk where this difference come from, is it a custom switch from you ?

Plus with this switch the screen of the phone was always on (lock screen) even if it was always showing as charging. Did you have the same issue ?

Second thing is the battery percentage that was changing every 3 or 4 seconds (53% / 56%)

I did read about capacity_sync and capacity_mask but I am not sure I understand how to use it. So if you had the same issue and know how to fix it (ie display the real value).
[Magisk] mochamoo:
I think those 2 switches are very similar and probably depends on what charger or cable is used for testing. I used my wireless stand since that is what I use the most. Sounds like your battery might be idling if it is switching off like that. What is your pause / resume set at? Can you see what the current is doing via one of the acc frontends or ampere? If it's hovering near 0 then could be idling.

Or just out of sync with the Pixel. I wouldn't be too concerned about that. If you want you can calibrate the battery to see if it helps. I did do that at some point as well as some of my readings were quite a bit different between what was in the status bar and what acc settings gui was showing. The variance is minimal now.

I don't have the screen on issue. Perhaps a phone setting or another app interfering. I got rid of any battery related apps (like accubattery) and turned off adaptive battery at least until I got acc working.
[Magisk] Repear88:
Thx for your answer. I spent most of my day reading different topic and stuff about ACC :LOL::LOL:

So, I now have a better idea of how things work (slightly ^^)

my pause/resume was at default value, and the SoC was below (56%) It was charging, but the screen was always on. And if I would press the on/button, it would turn on right after ... anyway. I'll try again. and this time maybe not the dev version but the latest one + with an app (acc settings I guess) I will also remove betterbatterystat.

I still don't really understand where switches come from: I mean the syntax, and why are they different when the source is different ?

I'm very interested by the idle thing ! when I keep my phone plugged-in during long trip, or gaming. I love the tip from @VanGray https://xdaforums.com/t/advanced-charging-controller-acc.3668427/post-86751991

To be able to switch idle on/off just with a QStile !
[Magisk] mochamoo:
I know that this can be a bit of a rabbit hole trying to get to what is optimal for a particular situation. I am not sure about the charging switches myself and would be nice if there was some explanation about that. In the meantime I just tried to find one that worked. I wouldn't be afraid of the dev version. It is the one that is in the OP and also pinned on their telegram channel. (Not sure why it hasn't been "released" but it seems stable enough (at least for the pixel 7 pro). I stuck to the default config other than the charging switch and the pause /resume. (I know that can be automated day /night) but I mostly just set it based on need (acc pause% resume% in termux). I ***think*** that you can use the front end gui for some things but figure I need to learn termux/shell commands so try to use that. I prefer acc settings lately for quick tweaks and to observe the current, voltage effect.

I DO save a working config somewhere just in case I screw something up when trying something out. Honestly the current config is working well enough for me so will try to leave it alone :)
[Magisk] ahecht:
For some reason, I'm only seeing gcpm/constant_charge_voltage_max, not current_max.
[Magisk] Repear88:
Try with another charger.

From what I understand, charging switches could be different depending on the charger you are using.