yashsingh1/xdaforums huggingface dataset:
[Magisk] VR25:
It's like the above situation - most likely a charging switch (kernel issue) introduced by Android 11.

ACC only unsets the switch if it fails to disable charging.

This is what seems to be happening.

You can disable that behavior or enforce a different charging switch.

Refer to readme > default config > charging_switch and readme > troubleshooting > charging switch.
[Magisk] VR25:
Same as above.
[Magisk] Vantskruv:
Thanks, it have been working now in about 36 hours I think. I am not sure why. Before, I have been adding the the two dashes '--' trailing the charging-switch line with a space between (i.e. "charger/charge_disable 0 1 --"). Removed them now, and I have not had any problems, as of yet.

I will read the manual more thoroughly. Thanks!
[Magisk] Vertron:
We need to find the charging switch apparently, I'll let you know if I find it.

---------- Post added at 05:52 PM ---------- Previous post was at 05:25 PM ----------

Found this file:

/sys/devices/mediatek,battery_common/Charging_Enable

It stopped charging when it reached the percentage I set and it set the file to 0 but it's still discharging now it's back to 1 too, this tablet does suffer from discharging issues while on charge though to be fair. The status file does change from charging to discharging which is promising.

It might be the same location for all mediatek devices assuming it works properly.

Update:

After turning the tablet off for a while and back on, it is charging now so the charging switch should be good.
[Magisk] VR25:
Share the output file of acc -le so that I can look for other potential MediaTek charging control files.

/sys/devices/mediatek,battery_common/Charging_Enable is not available on all mtk devices.
[Magisk] Vertron:
I'll get this for you tomorrow :good:
[Magisk] Vertron:
Attached :good:

I had to uninstall this on my tablet unfortunately as it's this that's causing my battery to drain while on charge, I'm testing out the control switch file using the Battery Charge Limit app instead.

Update:

My tablet seems to keep automatically changing the value of this file back to 1. I wonder if this is why I was getting battery drain while using this module?
[Magisk] Nazo:
Unfortunately it seems forcing store_mode via acc -ss doesn't seem to change anything. It still fails to charge again after the first time.
[Magisk] Melovespa:
is normal that acc doesn't work on a11?
[Magisk] Vertron:
I've found another file on my MediaTek tablet that changes from 1 to 0 when the charger is plugged in here: "/sys/devices/mediatek,battery_common/Pump_Express"

The only problem is it won't let me edit it despite seemingly having write permissions. Any ideas?
[Magisk] smartpr1v4t3:
I wanted to use acc on my Nexus 7 2012 but the config is ignored.

I set a config and AccA shows the config and the deamon is running. For example i set a maximum load level but it doesnt matter and loads to 100%

I want to plug it all the time to the power supply so Acc would be great (maybe you can recommend a config ;))
[Magisk] Nazo:
Oh, I do want to add one piece of information that may or may not be useful: it does turn charge back on once after the first time it turns it off. When it first charges up to my set maximum it then stops the charge, but because it's at the bottom end of that maximum it then reenables charging for just a short bit longer to charge it up towards the top end of that maximum percentage, then it turns it off again and from then on until I reboot again it stays off. I don't know if it might base it on the battery's voltage or something like that perhaps and make its own determination of the proper time to turn off and maybe it drops a tiny bit once the charging is disabled?

The fact that it at least momentarily reenables charging maybe seems to indicate that it's not completely impossible to properly reset once the charge is too low.
[Magisk] JAVOLL007:
Did anyone find a working charging switch for pixel 5?

Have been testing files for a whole day but came up empty.

Also submitted my power-logs to the Dropbox if that will help.
[Magisk] Frenziedwazzock:
Pixel 3 Major issue

Hi all, great module but just came across a major issue for me. I am on Android 11 running Magisk and have had the module running for a few weeks along with ACCA (which I had only used to tweak the percent values). I was having freezes whenever I plugged in to charge that I thought may have been related to this module so I attempted to uninstall via Magisk. This worked fine however it left me with 1% battery showing on the phone and never changed. The phone would charge in the background but then never change the display. I could use the phone off charger but always at 1%. The phone got discharged completely and somehow shows zero percent. I now cannot use the phone without a charger as soon as I unplug the phone it switches off. The battery was healthy so that isn't the issue. I tried re-installing the ACC to see if that would at least make the phone work but no help.

Anyone any ideas?
[Magisk] merlin6335:
Do you have, by any chance, the systemless hosts module active in Magisk? For me, that was the cause for the regular freezing on my Pixel 3a. It happened very randomly, sometimes when the device started charging, sometimes it just froze over night. There is also a github thread regarding this problem: https://github.com/topjohnwu/Magisk/issues/3171

I can't help you with the 1 % bug though. I'm running AccA fine on my Pixel 3a, without having the acc module installed additionally.
[Magisk] Frenziedwazzock:
That's great yes I do have the systemless hosts enabled for adaway. I'll look into that once I have a phone I can use. I can boot into recovery etc but I need to know what the next steps are to recover my phone as I can't use it for more than a couple of minutes at a time normally on charge. It stays in fastboot or recovery fine though.

Any thoughts on what to flash and how would be greatly received. I've been unable to re-flash the magisk-boot images. Device not found each time. I'm doing something badly wrong here!! I was trying a re-flash of that as it recovered me a week back when my exkernal manager flashed the latest kernel and soft bricked my phone but it won't work at present :(
[Magisk] Frenziedwazzock:
Ok I managed to re-flash my magisk modified boot.img using adb somehow. I'm not sure if this has helped at all? When I go to charge the phone though it's still stuck at 0% with the band of white circle lights around. It doesn't increase. It says fast charging on it when it loads into the system but doesn't hold charge long enough and shuts down. I'd be happy to lose data if needs be I'd just like some ideas on how to get this thing charging again. To be clear the battery was fine before I started messing with ACC... I'm not blaming the app - it may be acombination of things I have done?

Any suggestions?
[Magisk] LeifAlbor:
Nope - but I'm having no joy with ACC on my Pixel 5 either. Just submit logs to VR-25's github to see what can be offered.
[Magisk] Frenziedwazzock:
0% and unable to charge

Ok here's an update to what happened to me with this mod installed - not blaming the mod but here you go.....

I was unable to get the device to charge - see my posts above, I eventually carried out a factory reset and then a full stock re-flash - still no good. Couldn't get the device to charge.

Thinking back to what was happening I was having random freezes - which could have been attributed to systemless host as has been suggested. It just concerns me that I had this mod and very often when loading the system my device would say 1% for quite a while until something triggered and it clicked to the real percent. This would happen every boot and I thought may have been just a part of this mod. Maybe this is not normal and not what people see however with this mod? One day the 1% stuck and wouldn't go away. I drained the battery completely to 0% then attempted to recharge and reload to re-baseline things possibly but all I got was 0% percent now sticking. However the device would now not charge whereas at 1% it would charge fine.

The battery was showing no signs of wear to this point although I do use the phone heavily all day. I'm willing to accept the phone just fell over and stopped working in a hardware sense but it was a little too intertwined with this mod to be conclusive - happy to be convinced otherwise however and appreciate the support and work of VR-25 and all.

In the end I was still in warranty and will hopefully get a replacement RMA- just writing this so hopefully someone else doesn't have to faff around like I have the past few days. :)
[Magisk] mjunqueira:
Problemas with batt_slate_mode

Congrats for the job, very excelent module (And needed).

I´m trying to use the ACC modole on Samsung's SM-t280 (Android 5.1.1)

I was succesfully using the batt_slate_mode with another app, but this other sulution depends on another apk running and sometimes it stops, ACC ideal is much better.

The probleming is that the charging is not resuming when the level goes bellow the "resume charge" setting.

I tried to to test using in termux.

1) acc -d is working fine, the charging stops immediately

2) acc -e throw "Charning enabled" but nothing change. Only repluging the charger cable physically.

Treboshooting:

1) Monitoring the file /sys/class/power_supply/battery/batt_slate_mode getting this:

- After plug the charging cable, the value is 0

- running acc -d, the value is changed to 1 and the chargin stops immediately

- running acc -e, the value is changed to 0 but the charging remaing paused, the only way is repluging it physically

2) trying to change the file mannually like echo "0" > batt_slate_mode and echo "1" > batt_slate_mode is working fine

Any ideas? maybe permission issues when ACC is writing the file?
[Magisk] stm8923:
Still 70% on Samsung S10+

Hi,

I have switched to "batt_slate_mode", as described in the README. But still charging stopps at 70%.

I am on lineagos with Magisk and a S10 (G975F) and an actuall acc (v2020.10.28).

It seems, that acc could not activate charging, if 70% are reached.

Should I provide logs?

Thanks

=> after rebooting the device, it seems to work now
[Magisk] baldybill:
I have the Oct 25 acc magisk mod and an older version of acca working fine.

Should I update to the Nov 20 acc mod?

Should I update to the new acca?

Just curious about stability and such.
[Magisk] svendsvin:
Doesn't recharge. Stops at about 74-77% and never starts charging again no matter how long it's plugged to the charger.

I'm on latest release. Running Xioami Redmi Note 7 stock ROM and magisk.
[Magisk] daniel_loft:
Hello everybody!

I want to apply the following behavior/profile via AccA and I cannot seem to figure out how to do it:

Charging 0 - 80 % - normal charging

Charging 80 - 90 % - slow charging (limit to 500 mA)

Charging 90 - 100 % - no charging (limit to 0 mA)

At this point I'm not even sure this can be done with AccA alone. Maybe with schedules, but for whatever reason I cannot install DJS.

Any tips on how to do this profiling with AccA?

Thank you!
[Magisk] dasbooter:
On poco x3 nfc installed this through Magisk.

Battery/input_suspend 0 1 is the only switch that works

Battery idle mode is not supported by kernel

I'm using the Cool down after 60% profile included in AccA

This phone is marketed as a phone that can play games and show video both of which can be battery use intensive. Because of that I would like to keep the phone plugged in while doing those things without unnecessary wear and tear.

1)I'm curious about the work arounds built in for devices that do not support Battery idle mode. How can I ascertain if those workarounds are working on my device. Having read the documentation it seems like modification of current and voltage(which is being utilized for the workaround?) is maybe even less likely supported than a kernel that supports bat idle mode? I've probably confused what I have read though.

2)My phone is made by Xiaomi and I understand wake locks are a problem for these devices. How can I figure if I have this problem?

3)I own tasker and I saw it mentioned where can I find out more about this? Sorry I've been reading for a couple of hours on the first 2 questions

Lastly thanks to the developer :good::highfive:. I think you are making the world a better place in a big way in this age of planned obsolescence and waste. I'm surprised you haven't been picked up by one of the big manufacturers and quietly payed off.
[Magisk] CBMC:
Edit: Nevermind, I found the acc -t command in the readme.
[Magisk] CBMC:
Should CURRENT_NOW, POWER_NOW, and VOLTAGE_NOW still be showing an output when my phone reaches its battery pause capacity? Even if battery idle is active?
[Magisk] Kgonla:
I just tried the latest version on my Oneplus 7 pro.

I have installed the Magisk plugin plus the app.

After a few minutes running, the phone screen has been emptied except the top bar.

After restarting it has worked again.

The battery was at 80% and I have configured, to test, the maximum load to 90%, maximum voltage 4V and load 500mA.

I put it to charge and I look every few minutes.

80% - 82% - 85% - and suddenly 100%

It should not have reached 100% because of the 90% limitation nor should it have reached 100% because of the 4V limitation.

So it doesn't work.
[Magisk] nocsop:
Hello, I have a Pixel5 with Android 11, Nov-Update and Magisk v21.1. SafetyNet test is successfully passed. Nonetheless, acc seems to have no effect at all on the charging behaviour of my phone, it charges independently of the selected profile once the charger ist plugged in. Maybe someone can help? log-Files are attached.

I'd really like to use acc to preserve my battery!

Thank you so much!
[Magisk] payas0:
I've been using this for a long time now on my PH-1 and it works amazingly.

But I tried to use it on my Poco X3 which is running Resurrection Remix ans it's just not working. It ignores the max charge capacity.
[Magisk] faxpaper:
I have a Pixel 4a5G with Android 11, Nov-Update and Magisk v21.1. SafetyNet test is successfully passed. ACC not working and failed all 3 tests? Help please as this is the main reason I rooted phone!
[Magisk] faxpaper:
I just updated to December and still doesn't work.
[Magisk] dirtyreturn:
I have a pixel 5 also. It works just fine it seems. Switching up on the charging switches and finding the most compatible one makes all the difference
[Magisk] yaconsult:
I just upgraded from a pixel 3a to a pixel 4a 5G and while acc is stopping charging at the 90% charge level that I set, the state-of-charge message on the always-on display is different.

On the pixel 4a 5G, it says "90% - Charging rapidly (26 min until full)" on the always-on display.

On the pixel 3a, it only says "90%" on the always-on display.

Again, acc is functioning properly on both phones because the charge level does not increase above 90%.

So on the pixel 3a, the phone has realized that it is not charging when charging is disabled by acc. But on the 4a 5G, the phone THINKS that it is still charging rapidly even though acc has stopped the charging and the charge level never exceeds 90%.

Does this indicate an issue with the latest android release on the pixel or has the way that acc integrates with android changed somehow in the latest releases? Google DID add the "adaptive charging" feature in the latest update and it is enabled on the 4a 5G. I tried turning both "adaptive battery" and "adaptive charging" off to see if it made a difference in the charging message that appears on the always-on display and it did not.
[Magisk] nocsop:
Hello dirtyreturn, can you please elaborate on that. What do I have to do to make it work? Are there certain settings or configs I have to use?

Your Help is very much appreciated!
[Magisk] dirtyreturn:
Sure thing!

Well, firstly, do you also have AccA downloaded and installed?

If so, on the main screen of AccA tap on the cog wheel to access acc settings!

And then you'll come to this page - P.S. so far, in my experimenting, ive found that particular charging switch provides my pixel 5 with the fastest charge.￼

P.P.S please disregard the value of 9000 - I've meant to disable that. And, personally, I don't mind a warm device - so, I just unticked every other option including automatic charging switches and make it a priority to keep the switch pictured to be active before I charge my device.

Hope this helps even a little
[Magisk] AllanRSS:
On my last device when charge reached the upper limit the phone would start running off external power instead of battery bower, and the battery charge would remain constant. This was two years ago on a Mate 20 x running android 9. Could this functionality be reimplemented? Would be great for long sessions plugged in.
[Magisk] AllanRSS:
Sorry I just downloaded the app and saw the battery idle mode option. Guess my kernal doesn't support it ☹️. Any tips on how I can modify the kernel to support it?
[Magisk] skizzo_d:
A me funziona su POCO X3
[Magisk] payas0:
I gave up on using this on my POCO X3.

I updated my ACC in my Essential PH-1 and now changing values via AccA won't work too. I just settle for the default config now but it seems like it's not working as my PH-1 charged to 100%.
[Magisk] theistus:
What switch are you using? I have a 4a 5g as well but it doesn't seem to be working for me
[Magisk] nocsop:
Hi dirtyreturn, thank you for your hint, unfortunately, the switch you metioned does not work on my pixel5 - I tried /sys/kernel/debug/google_charger/chg_mode with parameters 1 und 0 but the charging of the battery only depends on the battery charger plugged in or not. Do you have alternative switches or do you know where or how to find alternative switches I can try?
[Magisk] aadish:
Hi everyone. I'm using ACC v1.0.24(28) on my LG V35 running Android 9. I'm not using newer versions as they don't seem to work for me. The only things I've changed are the charging cutoffs. But for some reason when the battery is under 20% my V35 refuses to charge many a times. The only way to get it to charge is to restart the phone. Anyone knows why this happens and if there is a setting to prevent that?
[Magisk] faxpaper:
EX Kernel on 4a 5g works with ACC!
[Magisk] RMarques:
Sup guys, I can't find the search button on this new app. Does anyone have been successfully using this amazing module on an OP8?
[Magisk] BostonDan:
I'm on a TMo OP8 5g and it works fine.

Cheers,

B.D.
[Magisk] RMarques:
Thanks bud, world you mind telling me which ACC & ACCa versions you are using?
[Magisk] BostonDan:
Acc version v2020.11.20 (chosen from settings)

Acca version 1.0.29 (33)

Cheers,

B.D.
[Magisk] RMarques:
Thanks bud
[Magisk] theistus:
Can you elaborate? I am on a 4a 5g and can't get ACC to work. I haven't tried ex kernel, but I am curious to know what switch you are using.
[Magisk] theistus:
Okay, after some fiddling I got this to work on the Pixel 4a 5G. I believe my issue may have been at least in part due to having edited the props file so that the device appeared to to be pixel 3a for purposes of passing safety net. When i used the props manager to go back to reporting as a 4a 5G, I had additional/different switches available. Using the wizard in terminal emulator quickly found the right one this time.

If anyone is wondering, on my 4a 5g 11(RQ1A.201205.011) december update, rooted, with EX Kernel P5-1.04 installed, the correct switch is /sys/kernel/debug/google_charger/input_suspend 0 1.

Hopefully that saves someone some trouble.
[Magisk] dirtyreturn:
On the screenshot posted - where it says automatic, tap on the pencil icon.
[Magisk] Qamarfk:
No charging switch is working for my poco x3 surya

Using latest ACC

Anyone help
[Magisk] nocsop:
I have checked if I have the /sys/kernel/debug/ -> I have not such a folder. It seems that /sys/kernel/debug/ depends on the debugfs system that was removed with android 11 (https://source.android.com/setup/start/android-11-release), so with the stock android (kernel) there wont be switches available in /sys/kernel/debug/... Maybe you have such switches because you don't run the vanilla android-kernel?

Does anyone know where to find charging switches in android 11 with vanilla kernel?

Update:

I had to install the EX Kernel -> that will make the /sys/kernel/debug folder available once again and one of the switches there works
[Magisk] yaconsult:
Hmmm, I went back to check by running the Test Charging Switches function and it said that all the charging switches "won't work". But they are working because the charge never exceeds 90% when plugged in all the time.

So there seems to be some change in the 4a 5G charging function that acc is not able to compensate for. So while it does seem to be stopping the charging when told to there are issues with acc on this phone.
[Magisk] rcbjr2:
Does AccA have an option to display an Android notification while it's active (i.e., while it's limiting charging). I ask because Battery Charge Limit has one, and I use it in a Tasker profile, but I can't get BCL to work correctly on my rooted OnePlus 8T (it keeps flipping quickly between charging and not charging and it's not limiting charging when it does this). So, I am trying to figure out a way for Tasker to determine if AccA is active in the background while my phone is plugged in. Thanks.
[Magisk] theistus:
Thanks, I wondered about that. Not willing to experiment heavily on this device because I kind of need it to actually work, lol. Already furked myself twice and had to wipe and start over. Interesting that the kernel makes such a difference.
[Magisk] SouthOkanagan:
Hi everyone!

I'm having major issues with the way my phone charges after installing the ACC MODULE some time ago and just following the install of it I ended up darn near bricking my phone, which had nothing to do with the ACC whatsoever only that since I first installed it before the crash my charging went all crazy and slow...

I was messing around we the module and unfortunately, I probably tried out a few console commands not fully understanding it could and ultimately did change some sort of charging instructions the phone gives the battery.

My device is back up now, fully working with its stock ROM flashed and successfully rooted with TWRP AND MAGISK.

I've also put back the ACC ADVANCED CHARGING CONTROLLER MODULE and it's be fully working and I've also put a console app in my device so I can follow along with any sort of fix or default setting command someone here will hopefully give me!

So with that said, please please PLEASE say you have a solution to my obviously numbskull move?

I would simply like any ACC setting that might be in my device as a result of my blind meddling be removed and or replaced with a default battery setting and default limit numbers, or even settings particular to this devices make/modell, if it's done that way in phones by default or not I don't know.

Say, a device like mine WITHOUT the ACC module, by default would it still have charging limits of its own? I.e. max and mins etc?

+++***DEVICE SPECIFICATIONS AT THE END OF THIS POST+++***

Pretty please include any links to config fix files or any command line entries I need to make in console/ACC to get my battery and how it charges back to the way it should be.

Much appreciated, best regards!

Daniel.

@SouthOkanagan

P.s.Hope your Christmas was a happy and, covid free one for you and your friends and family! (Even for your non friends too.. hey why not?)

Galaxy A8(2018)

Model : SM-A530W

Manufacturer : samsung

Device : jackpotltecan

Board : universal7885

Hardware : samsungexynos7885

Brand : samsung

Build Fingerprint : samsung/jackpotltevl/jackpotltecan:9/PPR1.180610.011/A530WVLSECTK1:user/release-keys

USB Host : Supported

Code Name : Pie
[Magisk] killer23d:
If you have issues charging, have you consider running the reset?

You can also uninstall as well

If you use Magisk, you can simply remove it from the Magisk manager.

Normally the settings should be back to factory (kernel) parameter if ACC is removed or reset. The nuclear solution would be using ODIN and re-flash and reset the device to factory.
[Magisk] Estebanium:
Is it possible to add that switch without a custom kernel? I am currently in Lineage with my 4a 5G.