yashsingh1/xdaforums huggingface dataset:
[Magisk] dudeperfect:
Hi, how did you get the wire charging to work as per your config? I'm facing the same issue rn. Adding log for more info.

battery/charge_control_limit 0 battery/charge_control_limit_max
curr=-2652,-2652 off=true status=Charging
curr=-2652,-2652 off=true status=Charging
curr=-2652,-2893 off=true status=Charging
curr=-2652,-2893 off=true status=Charging
curr=-2652,-2893 off=true status=Charging
Switch doesn't work ❌

battery/input_suspend 0 1
curr=-2893,-2876 off=true status=Charging
curr=-2893,-2876 off=true status=Charging
curr=-2893,-2876 off=true status=Charging
curr=-2893,-2876 off=true status=Charging
curr=-2893,-2876 off=true status=Charging
Switch doesn't work ❌

battery/step_charging_enabled 1 0
curr=-2906,-2906 off=true status=Charging
curr=-2906,-2906 off=true status=Charging
curr=-2906,-2906 off=true status=Charging
curr=-2906,-2906 off=true status=Charging
curr=-2906,-2926 off=true status=Charging
Switch doesn't work ❌

/sys/class/qcom-battery/restrict_cur 1000000 0
curr=-2926,-2926 off=true status=Charging
curr=-2926,-2926 off=true status=Charging
curr=-2926,-2930 off=true status=Charging
curr=-2926,-2930 off=true status=Charging
curr=-2926,-2930 off=true status=Charging
Switch doesn't work ❌

battery/constant_charge_current_max 5400000 0
curr=-2930,-2516 off=true status=Charging
curr=-2930,-2516 off=true status=Charging
curr=-2930,-2516 off=true status=Charging
curr=-2930,-2516 off=true status=Charging
curr=-2930,-2516 off=true status=Charging
curr=-2930,-2516 off=true status=Charging
curr=-2930,-2942 off=true status=Charging
Switch doesn't work ❌

battery/current_max 50000 0
curr=-2942,-2942 off=true status=Charging
curr=-2942,-2942 off=true status=Charging
curr=-2942,-2942 off=true status=Charging
curr=-2942,-2942 off=true status=Charging
curr=-2942,-2622 off=true status=Charging
Switch doesn't work ❌

main/constant_charge_current_max 350000 0
curr=-2622,-2622 off=true status=Charging
curr=-2622,-2622 off=true status=Charging
curr=-2622,-2622 off=true status=Charging
curr=-2622,-2622 off=true status=Charging
curr=-2622,-2938 off=true status=Charging
Switch doesn't work ❌

main/current_max 1500000 0
curr=-2938,-2938 off=true status=Charging
curr=-2938,-2938 off=true status=Charging
curr=-2938,-2929 off=true status=Charging
curr=-2938,-2929 off=true status=Charging
curr=-2938,-2929 off=true status=Charging
[Magisk] LeFish1:
Same here, still no wireless charging. No message from any of the devs.... This is simply one level to high for me to get working on my own.

I bought a qi-charging pad which plugs into the USB-C port of the phone. Yet I still long for the internal phones qi charging function...

I am still willing to do tests if anyone advices me!
[Magisk] bizkit_120:
I've spent plenty of time doing testing.. you need find good working switch that give you OK to configure, I configured OnePlus battery charging that seems give me consistent result most of times, and yes wired charging 9 out of 10 it works as expected..

. wireless charging still a problem.. may have to give up as for me most of time I use low speed overnight wireless charging..and it good for me to use for next whole day.
[Magisk] bizkit_120:
Same boat, I'm not sure anyone able to successfully manage wireless charging acc work..I doubt..
[Magisk] bizkit_120:
Wireless charging acc finally works,trick is that need to find a good pair of power supplies and wireless charger ,it doesn't work as soon as replace either one of them.

I configured stop charging at 45 %, it stopped right on the spot, when it's charging lock screen show a text says wireless charging, now it's gone apparently acc is kick in..🙂
[Magisk] bizkit_120:
It seems my phone I need switch 2 switcher in order to make wired and wireless wireless charging works, when i run acc -ss working wireless charging option does not on the list, is there a way I can add it to the list OR any solution I can have 2switches configured it auto select itself depending on which supplies im using?
[Magisk] bizkit_120:
Hello, any workaround about this exit 143 issue, also facing same issue now, it works perfectly during the day, However it charging to 100 % while sleeping then I found out from log it print like this

:/data/data/com.termux/files/home # acc --log tail

77: '[' Discharging '!=' DischargingIdle ']'

77: '[' DischargingDischarging '!=' DischargingIdle ']'

77: '[' Idle '!=' DischargingIdle ']'

77: '[' IdleIdle '!=' DischargingIdle ']'

80: return 1

349: sleep 10

349: exxit

83: exitCode=143

84: false

84: set +eux

2022 6.4 version
[Magisk] BoomBucks:
I've had success with the following switches.

dc/current _max xxxxxx 0

gcpm/constant_charge_Current_max xxxxxx 0

I used to use the gcpm one, but wasn't perfect. Switched to dc, and it's been much better. Wireless charging works, too, with the dc switch.

I'm currently on a Cheetah, but have tested it on Raven as well.
[Magisk] bizkit_120:
👍 Wonderful,glad to hear yours works fine now, I'm using OnePlus 9 it doesn't have those switches available. .going to sell my p7 I have had it..hate that damn fingerprint scanner....anyhow, my understanding it over charged because of daemon has been killed while sleeping, but how does that switch solve the problem...🤔
[Magisk] BoomBucks:
Not sure if a different switch can help if your phone's software keeps stopping acc.
[Magisk] bizkit_120:
I just installed acca app and keep it background active, will see if that help, tonight's test will tell.. what's annoying me is that problem can't reproduce during the day as it acc daemon always running..
[Magisk] BoomBucks:
I doubt that will make a difference, but doesn't hurt to try. If it happens at night, I would imagine a deep sleep state of the software kicking in after a certain minutes or hours of inactivity (of screen, accelerometer, etc.)
[Magisk] bizkit_120:
That's exactly what I thought, I installed acca lock it in background which internally invoke acc core , technically it should not be killed again if I already give background active permission.
[Magisk] BoomBucks:
Please keep us posted. I'm eager to know.
[Magisk] bizkit_120:
Absolutely.. will do.. also eager to get bottom of it..
[Magisk] knasiotis:
I also have wireless charging issues. It never stops charging.

Mi 11 Ultra (star)

I have also opened an issue on the github page and uploaded logs the way they recommend in the repo.
[Magisk] bizkit_120:
Very interesting result,I set pause at 95 ,from battery charging history graphics shows, I put it on wireless charger around 40% , it charged about 2hrs all the way till 95,it indeed stopped at 95 for about 30 mins ish, but acc daemon eventually stopped throw exit 7 error , and continue charging again... can't explain why..
[Magisk] eried1:
Difficult to handle overnight issues. Guessing you're also allowing Magisk in the background? Think of all related processes.
[Magisk] bizkit_120:
I didn't change permission of magisk since it installed,but it shouldn't matter either allowed background or what, it just a manager for module installation..acc should runs itself once set up
[Magisk] uradryct:
It is incompatible with POCO F3 Alioth arrowOS 12.1
[Magisk] Fırat.ç:
Hi, I am using lastest version with AccA. However, it don't stop at my settings when I charge with wireless charger. "Daemon stopped with exit code 7!" warning is appeared in the notification bar. How can I fix this?
[Magisk] Admiral2145:
Is there a way to set charging voltage on the p6... Instead of 11amps trying to turn it down to 5 or 7amps...using acca app

Thx in advance
[Magisk] Uluru25:
I don't remember acca since I switched to acc settings because of better functionalities for me. With acc settings it is very easy to limit the charging current (see ss).
[Magisk] Admiral2145:
Just Google searched... Where do you get your app from? I see these settings in acca app also.
[Magisk] Uluru25:
From Github
[Magisk] samhhmobil:
ACC did work many years without issues on several devices (pioneer, gta4xlwifi, gauguin, etc.).

But since I switched to OnePlus8 (instantnoodle) running LineageOS20 (Android13) it does nothing. No charging control on this device.

Does someone know how to fix it?

Thanks,

samhhmobil
[Magisk] mwahahaa:
acc works on my Pixel 7, both plugged in and wireless charging. However, the problem I have which prevents me from using it is at there moment is that it causes my screen to turn on every few minutes for a short period of time. At night this can lead to sleep disruption (not to mention it is annoying). I'm on 2022.7.30 dev and have tried other versions with no success. Any suggestions to address this problem?
[Magisk] Uluru25:
Maybe (!) you have checked in the rom's (!) settings to activate the screen if unplugged from the charger and maybe (!) acc stopps due to your config the charging periodically and maybe (!) these stopps are misinterpreted as unplugging of the charger?
[Magisk] mwahahaa:
I'm on stock android 13 and there is no setting on my pixel to turn on the screen when being unplugged. In fact, I have been searching for a setting or a magisk module to prevent exactly that but cannot find one. It's a shame because acc works perfectly otherwise but this is a deal breaker for me.
[Magisk] samhhmobil:
What's about

==>Settings==>Display==>Wake on plug

That one you should switch off.

samhhmobil
[Magisk] mwahahaa:
What kind of phone do you have? I certainly don't have that setting on my stock pixel 7.
[Magisk] x111:
I'm on Google pixel 7 pro with a stock room and there is no option to disable wake on plug charge/discharge

is there any third party solution to add it to p7p stock rom ?
[Magisk] sally802528:
Can it solve the situation of power failure?
[Magisk] bizkit_120:
Set stop at 70% , checking charging history in the morning, it didn't stop but switch to very slow speed charging. Tested 3days in a row,same results.

Does anyone know why and how to resolve this?

OnePlus 9 oos13 stock ROM and kernel

Logs look good,daemon is running

.
[Magisk] kiwigi:
My setup p6, Magisk, ACC and AccA. The ACC version 4.06.2022 does not seem to hold. When trying to update it ends with it failed.

Is there another way of getting ACC to work?
[Magisk] Koray_:
Having an issue where my Pixel 6 is constantly spamming charging/disconnecting, so it's constantly lighting up and making a noise. Seems to happen regardless of the switch set every second. I've read that it has something to do with idle mode, but I haven't had any luck disabling it

Here's a log from one of my attempts:
[Magisk] mwahahaa:
I have the same issue with my Pixel 7. I have to put my phone face down on the night stand or else it will disturb my sleep with frequent screen awakenings.
[Magisk] Koray_:
temporary solution i found is to turn off wake on plug, and charging sounds/vibration. hope that helps for now!
[Magisk] mwahahaa:
Where do you find the wake on plug option? I don't see it anywhere in my Android 13 settings.
[Magisk] Koray_:
settings -> display -> all the way down below prevent accidental wake-up. I am running Evolution X, stock may not have it
[Magisk] mwahahaa:
Ah, I am running stock which would explain the lack of control over this. I may have to consider switching roms if the issue isn't otherwise fixable.
[Magisk] gigavolthavoc07:
This happens to me too when i upgrade my Android from A12 to A13 but my Phone is Poco F3.
[Magisk] Lu5ck:
Can't install on magisk delta a13, any idea why?
[Magisk] samhhmobil:
It does not work in any way on device OP8, LineageOS20, Magisk 25.2 (with older devices and ROMs it does work for many years)

samhhmobil
[Magisk] iamthechickengod:
I'm on Canary 25206 and LOs 20 and it works.
[Magisk] G5-User7080:
Use the latest pre-release.

I have the P6a and otherwise the same setup, it works just fine.

Test charging switches then set it with acc -ss.

The "main charger some number 0" and "usb some number 0" work the best for me.

I'd recommend to use them over the similar ones that have another number instead of the 0 as those appear to sometimes support Idle mode and Idle mode is just kinda wanky.

I can share my AccA config if you want.
[Magisk] G5-User7080:
try using a switch that doesnt support Idle mode, as well as setting "prioritize_batt_idle_mode=false" in config.

usb/current_max <number> 0 or main charger/current_max <number> 0 don't support Idle mode for me and work on my P6a.
[Magisk] Zaxx32:
I also have the P6a...I'd be interested in checkin' out your AccA config. Wish I understood the inner workings of the P6a battery maint. & charging etc. and didn't need a frontend app...:rolleyes:
[Magisk] mwahahaa:
Then I won't have access to idle mode! I like that feature because it keeps my charge level right at the peak set point and puts less strain on the battery. I suppose a compromise has to be made.
[Magisk] G5-User7080:
from my experience Idle mode doesn't really work anyway.

When I tried it it kept slowly charging or discharging my phone over a few hours anyway.

If you don't use your phone and just have it sitting on usb it's better to disconnect it anyway, it seems like being connected to usb prevents the cpu to go in sleep state so the battery drains a lot faster when connected to usb than when it's disconnected.
[Magisk] mwahahaa:
Idle mode actually works perfectly for me. Ever since I found the right switch I wake with my phone at the top level of the charge range, when previously I would often find the phone had drifted down close to the bottom range after reaching peak charge. The down side apparently is that it causes my phone screen to keep turning on periodically, which means I can't use my wireless charging stand at night. That's something I can live with I suppose.
[Magisk] bizkit_120:
Case dismissed... damn it..after a month, I finally figured out my att wireless charger is the culprit.. 😑😑😑

Everything works fine now after switched to another wireless charger... 👍

P.S. OnePlus 9 stock oos13
[Magisk] johnha:
Nevermind, might've been a fluke
[Magisk] kiwigi:
Thanks @G5-User7080 for your feedback. I will reinstall and follow your suggestion within the next few days.
[Magisk] son_91:
Did anyone try Advanced Charging Controller (acc) with kernelsu?
[Magisk] angus6969:
For me not working properly on oneplus 8t aicp 17.1. Stop charging at set value but it continues to hold the charge at that value even if it should recover from 50%. Any ideas
[Magisk] TAirForce:
I have a OnePlus 7T and I'm facing the same issue after updating to android 12. Have you got an answer?
[Magisk] vip5912:
My config for acc on Samsung S4 (I9505) with Optimized LineageOS 19.1:

chargingSwitch=(battery/batt_slate_mode 0 1 --)
applyOnBoot=(/sys/kernel/fast_charge/force_fast_charge::2::1 /sys/kernel/fast_charge/failsafe::1::0)
applyOnPlug=()
maxChargingCurrent=(1000 /sys/kernel/fast_charge/ac_charge_level::1000::1900 /sys/kernel/fast_charge/usb_charge_level::1000::1600)
maxChargingVoltage=()
[Magisk] guglicap:
Hi!

Not OP but I also have a OnePlus Nord. I also don't have acc installed yet (was actually trying to find out if it has issues on this phone before using it) but I noticed in Settings -> Battery -> Advanced Settings there is a switch labeled something like "Optimized Night Charging". Maybe you could try disabling that? Assuming you have it and it is enabled.

Let me know if you get it to work, thanks!
[Magisk] gamer1987fla:
I use ACC Setings for battery charge control but when I connect the smartphone to the charger after a few seconds the charger disconnects from the smartphone and I replug it to charge up to 100% is this some ACC Setings or magisk configuration problem? do they have some setting that is causing this?

i uninstall acc settings and problem solved more i need acc settings

i use redmi note 7 arrowos 12.1
[Magisk] iamthechickengod:
This happens to me on my OP 7TPro when I use the original charger. Try using a different generic charger. I estimate this is because the charge is controlled by the charger and not the battery management chip on the phone.
[Magisk] gamer1987fla:
I use the original charger and I've used several usb cables it's the best and I wanted to solve this problem but I need to use ACC Settings without this problem

if i uninstall accsettings the problem disappears

ACCA has no smartphone shutdown setting at 30%
[Magisk] iamthechickengod:
Try a different generic charger.

You can edit the shutdown percentage in ACCA. I don't use ACC settings do I can't provide more information about it.
[Magisk] gamer1987fla:
generic chargers are unreliable reduce battery life or may expose manufacturer recommend only original charger

ACCA in the shutdown configuration appears at a maximum of 20% does not appear 34% is it possible to insert 34% in the ACCA configurations?

Does ACCA have the same behavior as stopping charging at start?
[Magisk] Uluru25:
Try editing the config.txt (in /data/adb/vr25/accu-data) directly via a root file manager as shown in the screenshot. My value is 5 so change it to 34.
[Magisk] gamer1987fla:
is ACC module magisk or ACCA app? what app i download for modifications? Is it possible to perform this procedure on the PC and then transfer it to the smartphone?
[Magisk] Uluru25:
... there is a strong warning to never edit this file in windows:

WARNINGS

# Do not edit this in Windows Notepad, ever!

# It replaces LF (Linux/Unix) with CRLF (Windows) line endings.

# Nullifying values that should not be null causes unexpected behavior.

# However, doing so with "--set var=" restores the default value of "var".

# In other words, for regular users, "--set" is safer than modifying the config file directly.

# Do not feel like you must configure everything!

# Do not change what you don't understand.

See here.

Here you also find more background info to the module and some frontends.
[Magisk] gamer1987fla:
1) I configured config.txt in the smartphone as oriented to shutdown at 34% and stop charging at 80%

2) any other settings in config.txt to increase battery life?

3) does ACCA have the same behavior as ACC Settings, does it interrupt and disconnect the beginning of battery charging?

4)

this setting in config.txt is for magisk's ACC module or for the ACCA app

to discard the ACCA app?

5) When I connected the charger to the smartphone more seconds to be recognized is this modifiable in the ACC settings?
[Magisk] Uluru25:
... personally I prefer acc settings as front end, since it allowed me more configurations compared to acca (see previous posts in this thread). Acca allows you, to define some different profiles (e. g. when to stop charging, max. current, etc.) which can be selected by a single tap instead of changing these values in the acc settings gui. So if this advantage outweighs the disadvantage, you might prefer acca. Regarding options to enhance battery life, I would recommend the following (this is my very personal flavor, not claiming to be the scientific truth):

1) charge to max. 75 - 80 %

2) discharge to max. 10 %

3) limit the charging current to 500 - 1000 mA

4) pause charging above 35 degree Celsius

5) try to charge only when the phone is idle

But again, this is my philosophy, which I "ignore" 😁 if that is too inconvenient for me (e. g. needing a full charged device for a hiking day)
[Magisk] gamer1987fla:
1) 10% discharge is not bad? I read that the battery discharge was correct 20 or 30% so as not to harm the useful life of the battery

2) I am in doubt about using only the ACC magisk module or using ACCA if I use ACCA will it consume more battery because ACC and ACCA will be together?

3) ACCA has difficulty saving my settings but in the txt file it was easy

4) pause charging above 35C I don't understand why my Redmi Note 7 only works at 43C so it will never charge the battery at 35C

5) where configures for 500 - 1000 mA???

6) I don't know if it's a configuration problem I was using the ACCA and ACC module I plugged the smartphone into the charger and it was only recognized after a few seconds not immediately and the battery charging stopped at 81% and not 80% that was configured
[Magisk] Uluru25:
Don't be too paranoid 😁, you want to use (!) your phone (and not its battery). A forced shutdown of my phone is very restrictive. Maybe I need may phone in this situation. Therefore, I use a different app to remind me at 20, 15, and 10 % to recharge but acc will shutdown only at 5 %.

The frontend apps don't drain (measureable) the battery. I recommend to use one of the frontends to configure, since you can harm your phone if manipulating something wrong. Carefully read the documentation for acc already posted by me above.

If your phone runs at 43C even in idle status (!) this wonders me but then for sure choose a different value e. g. 50C.

Defining the max. charging current can easily be done in the frontends (see screenshot) but is from my point of view not easy via the config.txt file, since the value appears in more than 1 place and I do not fully understand the syntax. But maybe you understand it when having studied the a. m. documentation.

Don't worry about 81 % vs. 80 %, this is precise enough for your needs.
[Magisk] gamer1987fla:
1)sometimes i sleep and i wake up with the phone 0% so 34% is safe as there are 4% discharge left before below 30% because below 30% the battery university says it is not good for lifespan

2)which frontend do you recommend ACCA or ACC Settings with me the ACC Settings disconnects at the beginning of the load

3)yes my phone charges either at idle 42 or 43% but my city temperature averages 35C i set the app to 48C

4) 1000ma is good for battery?
[Magisk] gamer1987fla:
why are my configurations inside ACCA not saved? I configure it and click on the save button but nothing is saved I managed to save it only by config.txt but I tried to configure 1000ma but it didn't save
[Magisk] Uluru25:
... have experienced this also sometimes with both frontends without fully understanding the reasons 😐

I then deinstalled, rebooted, reinstalled and reconfigured until it worked. Then I cross my fingers and appreciate that it works...

I also experienced that configuring while having the phone connected to my charger sometimes make the trick...

Don't give up. As soon as it works, let it unchanged.

Sorry for not having better advice for you.
[Magisk] gamer1987fla:
What can I do to configure acca?

configure in config.txt for limit 1000ma?
[Magisk] fedex_742:
prioritizeBattIdleMode=prioritize_batt_idle_mode=BOOLEAN

Is this like what the new sony xperia and the new galaxy s23 have? use direct charging from the charger without going through the battery?

using ACC App (AccA) my motorola g82 says that it is compatible, how do I know if this is true or not?
[Magisk] Uluru25:
See my screenshot: in the second aection of acca profile configuration you can set the max. charging current. I set it to 1000 mA. As already written I would NOT change this manually in the config.txt.
[Magisk] gamer1987fla:
I tried to configure it but it doesn't save I don't understand why it doesn't save
[Magisk] Uluru25:
Maybe I can't help you further 😓. As you can read in this thread, several guys have had issues to get acc working as expected. My last 3 recommendations:

1) if acca doesn't work, try acc settings

2) ask in the thread for your device and rom if someone can help you

3) for limiting the changing current you could achieve this also by using a weak charger from former days which delivers only a low current

Good luck! 🤠
[Magisk] gamer1987fla:
i need help limiting 1000ma inside the acc config.txt where is the option?

does the original xiaomi charger limit the current to preserve the battery? it provides up to 1000ma and is that good for her life?
[Magisk] useroso987:
Does anyone know if is safe to use this UI for this module?

Thanks.
[Magisk] Uluru25:
Whatever "safe" should mean in this context: yes I use(d) this gui in some of my phones.

🤠