yashsingh1/xdaforums huggingface dataset:
[Magisk] gamer1987fla:
1) I used ACC Settings before but it was not good for me because when I put the smartphone to charge in the first few seconds of charging the phone disconnected from the charger and this was only solved by uninstalling ACC Settings

2) I'm using ACCA and so far this problem hasn't occurred but the problem with ACCA is that it doesn't save my settings, I just change the configuration through config.txt

3) i want to change max charging mA to good value for battery life but i don't know where is this option in config.txt
[Magisk] Uluru25:
If you really want to fiddle even more in the config.txt and take the risk, to change sth. which you (and I) do not fully understand: attached are two screenshots indicated as A and B. In A the max. charging current was set to 250 mA (appearing as 250000 µA in different places) whereas in B it was set to 1000 mA (1000000 µA). But take care that in this section also other values related to the charging current are defined. If it is safe to copy all values as in one of the screenshots for your phone I DO NOT KNOW!

🔥🔥🔥YOU HAVE BEEN WARNED! 🔥🔥🔥
[Magisk] gamer1987fla:
If you say it's dangerous to modify then I won't change it my intention was to maximize the useful life of the battery today when I go to charge the smartphone the display shows fast charge but doesn't say the amperage
[Magisk] Uluru25:
... both frontends usually show during (dis-)charging the current. Regarding other ways to limit the charging current: as mentioned earlier, just use a weak (old) charger with not more than ~1000 mA.

🤠
[Magisk] gamer1987fla:
does the original xiaomi charger redmi note 7 limit the current to preserve the battery and is it not necessary to configure the acc?

why does my acca not save the settings? how to fix this bug?
[Magisk] Uluru25:
Maybe you get here more acc-specific support for your problem? Good luck!

BTW: XDA lives from members who take their own time to "answer" to members who want to save their own time to solve their problems and therefore "ask" here. Regarding myself, I have received here lots of valuable help from others. But I also learned, that, those members who "answer" to others (sometime 5 x or even more) would appreciate if they get a short "thx" or even better a "like" for their efforts to help others...

🤠
[Magisk] tenghc:
Hi all, for your info, I'm using terminal code :

acc 100 80.

If I want it to charge 10 more minutes after fully charge then pause charging, is there any function to do that? Thanks in advance.
[Magisk] Uluru25:
... now having played a little with the terminal commands to directly configure acc w/o a front-end, I learned how to set the max. charging current:

1) open your terminal emulator app

2) if it asks for, grant su-rights in magisk

3) enter "su" in the terminal to switch to superuser

4) enter "acc -s mcc=1000" to set the max. charging current to 1000 mA

5) leave or close the terminal

.. for sure, do not enter the quotation marks ("..."), only the text e. g. su
[Magisk] Uluru25:
... seems to need the following command:

acc -e 10m

to charge for 10 minutes more
[Magisk] david003:
I noticed with AccA, I had issues saving the settings until I ran "Test Charging Switch" (tap the edit icon by "Charging switch" in the settings), and saved it. After that it saved the settings. You should plug in the charger while it's testing.
[Magisk] gamer1987fla:
I configured my ACC module to stop battery charging at 80% but it is pausing at 82% why is this happening? I use redmi note 7 ArrowOS Rom
[Magisk] Uluru25:
I also observe such small deviations. I assume, charging percentage is not directly available, but calculated from the battery voltage. This small deviation is negligible, but if you want, you can define your limit in acc e. g. 2 % less.
[Magisk] Uluru25:
Day/Night-Profile changer via MacroDroid

Since all my attempts (a lot!) to get an automatic switch between my "day profile" (for faster charging) and my "night profile" (for slower charging) within the acc config.txt failed regarding reliable working, I finally solved this via a short MacroDroid macro. If this helps anybody else, have a look into the screenshot. Pretty simple. For sure you can adapt it to your needs by changing the values chosen by me. MacroDroid needs root privileges for this. If anybody wants to import the macro into MacroDroid, just rename the attached file to xxx.macro instead of xxx.macro. txt.

🙃
[Magisk] Uluru25:
Battery lifetime

Probably this info is already linked here but for those who read not all 200+ pages of this thread, a repetition might be helpful.

As explained here and shown in the screenshot below, the levels up to which the battery is charged and then discharged influence the number of such charging cycles until the initial capacity of the battery drops to e. g. 90 % of its initial capacity. If e. g. charging to 75 % and recharging at 65 %, the scientists could repeat 9,000 charging cycles. But keep in mind that only 10 % of the nominal capacity is recharged! This means (very roughly in order to better compare the different results shown below) that this behavior lets you drain 900 times the nominal capacity of your battery (calculated as 9,000 x 10 % full charging being equivalent to 900 "full chargings"). Also the other extreme with charging up to 100 % and recharging at 25 % allowing 1,000 cycles calculates to 1000 x 75 % equivalent to 750 "full chargings" - quite worse. An optimum of 1.500 "full charging" equivalents was possible if applying 75 % / 45 % (5,000 x 30 % = 1,500) or 75 % / 25 % (3,000 x 50 % = 1,500).

Thus, charging only up to 75 % and re-charging to this value only if reaching something between 25 % and 45 % let's you have the most usability of your battery.

For sure, also other factors (like thermal stress and charging current etc.) have shown to affect the battery life, but if you are interested in these factors, jump to the link given in the beginning and read for your own.

🤠
[Magisk] Ixioon:
Hi i own a one plus 8t pro with lineage os on it and i wanted to disable the fast charging when i use the one plus charger.

I tried settings mcc=500 mcv=4100 acc -sc=500 and settings current_workaround=true but nothing worked.

Phone still charge at ~3200mA anything more i could try ?
[Magisk] Uluru25:
... not all phones / kernels support modification of charging current. Maybe also no working charging switch was found (you can force acc via terminal and command to check all switches). If nothing works, last workaround is to charge with a weak charger (an older one).

Good luck!

🤠
[Magisk] gamer1987fla:
its difference longevity battery expectancy durability drops 20% x 30%?
[Magisk] samhhmobil:
I tried ACC on OnePlus8 (instantnoodle) with LineageOS 20, and ACC does NOT work in any way. It's strange, but nothing works. I cannot limit charging to 85% (for example), ACC shows, that it is active, but it's useless on this device. (I know, the 8 is different to the 8Tpro, but... ...)

On all my other devices (HTC, Xperia, Xiaomi, Samsung) it works as it should, and I'm experienced to configure and use it. But with OnePlus8 it does... ....: NOTHING.

So sorry.

samhhmobil
[Magisk] Uluru25:
Only for curiosity: have you checked if acc works when other kernels are flashed?
[Magisk] Ixioon:
oh really its weird for me limit charging work at least but only one switch work when i test charging switch
[Magisk] titovise:
Hello. Tell me, who has had experience, does acc work on nothing phone 1 when powered by fast chargers?

When powered by apple 5w with a usb- usb c adapter, everything works, and if I buy a charger with usb c, will it?

I use the switches as a user:
[Magisk] gamer1987fla:
I configured my ACC module to turn off redmi note 7 at 34% but it is turning off at 31% fix this?
[Magisk] panni:
Yes.
[Magisk] titovise:
Thank you, and what brands and models of chargers have you used?
[Magisk] panni:
Original Nothing charger, Xiaomi 33W charger, Xiaomi 65W charger, generic Amazon fast charger, Qi charger ...
[Magisk] kaoow:
I'm using the magisk module and ACC settings app. How do I prevent daemon from starting upon every reboot?
[Magisk] pierro78:
Hello Folks,

I have a cheap wireless charger. No issue with my Mi 10 : I put my Mi 10 on the wireless charger in the evening and then it's 100% charged in the morning.

I ve just fixed my LG V50.

Last night I put my V50 on the wireless charger. It got charged 100% in about an hour or a little more but then the wireless charger automatically turned itself off and then in the morning I had only 88% of charge in my V50.

I think acc can help me get a higher charge when I wake up in the morning after about 8 hours of charge. Like for example set the ampere limit to 100ma when the charge is above 90-91% (the usual amperage with the charger is about 900ma) so that the charger will keep charging but very slowly and I should have like 95-96% of charge in the morning ...

What do you folks think ??

Anybody got a similar issue/need ?? I would appreciate some help if somebody has a solution/an idea :) thanks !!

EDIT : SOLVED (I Think) :

Just set acc to :

charge until 99% so that "my V50 won't ask the wireless charger to turn off"

and to resume charging below 98% so that it will charge above 98%

and it seems to solve my issue. When the charge reaches 99% :

the wireless charger won't turn off and it seems to consume about 1.2-2.1W (about 4.5W before) and charges intermittently according to the charge indication displayed on the lock/standby screen (I am on Corvus ROM). The AccA app also tells me that my phone is on WiPower but is not charging.

I guess if the charge ever goes lower than 98% the charge will start again ...

that was easier than I thought ;) ... good tool ! thanks !

(I will report if I was wrong)
[Magisk] Uluru25:
... but you know that charging to 100 % and recharging at 98 % is not at all the behaviour acc was developed for?

Most acc users aim to extent the lifespan of their battery by avoiding to charge their phone to elevated levels (i. e. higher than 70 or 75 %) and to prevent too frequent re-chargings as well as too deep dischargings (i. e. below about 20 %).

If you want to read more, you can visit acc dev's homepage with very valuable info or start here.

🤠
[Magisk] pierro78:
that's very interesting thanks ! But I kind of feel safer when I leave home with my phone fully charged in the morning ...

... I ll check if I really need that full charge and maybe I ll lower the max charge to extend my battery lifespan ... do you think that lowering the max charge to maybe 95% will make a noticeable difference ??
[Magisk] Uluru25:
I don't know but I guess every little step might help. If you really "need" 100 % in the morning because you definitely drain your battery more or less completly over the day, you could at least try to reduce the time your battery is stressed with (near) 100 % charging. Zakaria has proposed a solution to use ACCA frontend and its inbuilt DJS to charge the battery only to 75 % and to time the charging of the last 25 % in such a way that the battery is reaching 100 % around your wake up time. See screenshot enclosed.

For sure you can achieve this behavior also w/o the frontend but a macro app.

🤠
[Magisk] Fostel:
Hi all. I hope you wouldn't reply RTFM 😉

I am using an older acc that was included by default when I installed AccA from F-droid. The front end mostly works but I also have issues with OP5T 'dumpling' and Xiaomi 'sweet'.

Now I've got another 'sweet' device and wanted to try the newest acc, that I found on GitHub.

I am reading https://github.com/VR-25/acc#readme for the second time and still not sure.

1. Is there any other/recommended front end apart from AccA?

2. Can I flash the newest acc .zip file from Github in Magisk and then install Acca from F-droid? Will that work?

PS.

PC with Linux Ubuntu, ADB, and Fastboot working. Devices rooted with Magisk 26.1

Any advice is appreciated.
[Magisk] Droid_JD:
Here's the latest front end app, which also hasn't been updated in a while. https://github.com/CrazyBoyFeng/AccSettings

I'd experiment with different builds of ACC though, I've had better compatibility on some devices with older builds than newer ones.

If I remember correctly, acca installs it's bundled acc version upon install, however, it also gives you the option to use different builds of the mod. Be aware of which version you flash, and if you use acca, make sure you select that version in the settings. The other app, acc settings, I do not believe has the ability to select and flash different versions of the mod, it'll just use whichever is installed.

Hope that helps!
[Magisk] Uluru25:
No. If you want to use Acca as frontend, install it. Then flash via Magisk the newest acc.zip. Your acca frontend will recognize the new version of acc.

Surely, I would recommend you to use the terminal commands and not the frontend.
[Magisk] Fostel:
Thanks for the recommendation. I love Terminal but hate to use it on mobile. Also, that will involve some more reading.

I am using AccA to easily read the values of I, U, or temp.
[Magisk] Uluru25:
... don't get me wrong! I didn't want to put in question if you can use a terminal at all! But my very personal (!) experience after long trials with both frontends was, that the guis were somehow unreliable and that the need to use terminal commands instead (and therefore forcing me to read the documentation) helped me to better understand the full power of acc.

🤠
[Magisk] Fostel:
Thanks. I already briefly tried and tested Terminal and found out that only one switch works on Xiaomi 'sweet'.

Wondering. If I set up acc by terminal do I need to uninstall the front end? Will GUI interfere with terminal settings or can I keep it just to quickly see the charging parameters?

I know that I can use the terminal to see that data but I must admit that I love the terminal on a PC and hate it on mobile. I never liked to write on an android keyboard.
[Magisk] brackenhill_mob:
Just a heads up for everyone - ACC(A) works perfectly for me with kernelsu (a kernel based rooting system which, in my view, is better than Magisk)
[Magisk] Uluru25:
... front end only to view the actual parameters should work. Notwithstanding that, for viewing purposes I use the FOSS app wattz, available e.g. here.
[Magisk] zzenyoo:
How? You used some tricks? I couldn't install it.
[Magisk] Uluru25:
Workaround for acc -e / -f one-time charging

For those who like me desire a quickly accessible 1-time-charging option that temporarily deactivates some (!) of your restrictions defined in acc but not all of your defined acc restrictions and who furthermore do not want to use a front end, I have written a short MacroDroid macro which asks you for the desired charging percentage and the desired charging current, then notifies you if charging is complete and then restores (my) default values for pause capacity (75 %), resume capacity (45 %), and charging current (500 mA). For sure, you can adapt these values according to your own preferences.

If you want to use the macro, download it, rename it to .macro and import it. Define a widget which will run the macro if opened.
[Magisk] goldwoods:
How to use it with kernelsu? Thanks
[Magisk] brackenhill_mob:
I'm assuming that you have installed a kernel that supports kernelsu. Then you need the kernelsu app which you can get from their Telegram channel (@KernelSU).

Having got the app installed, reboot. Then choose the shield icon on the bottom row of the app and add acca

The best place to start is at https://kernelsu.org

Tagging @goldwoods into this as well. HTH
[Magisk] Blue_Boxers:
Hi!

The Module works okay with my Tecno L9 plus(nougat) using the default settings, but I can't seem to make any changes to how it works.
[Magisk] VR25:
su
cs [pause%] [resume% (default 10)]
# i.e., cs 80 20

What did you run to change settings?
[Magisk] Droid_JD:
SIGNIFICANTLY better! Thank you!!

I am still noticing some minor lag though. It appears to be occurring shortly after I unplug the phone, and when the phone is in the "discharge" state.

A reboot fixed it, and I haven't encountered it since.

Amazing work! Thank you again!
[Magisk] dennnic93:
Just to flash the debugging version through recovery?
[Magisk] VR25:
Now I know for sure what's causing that lag! Thanks for the report.

Through Magisk Manager works just as well. Go to "Modules" tab, hit the "+" (plus) button, locate the zip & reboot after flashing.
[Magisk] Blue_Boxers:
Pretty much any thing. I tried cs - i, tried cs 80 10. It wrote unsupported device. I've been trying to upload the debug file, it says, "bad request"
[Magisk] VR25:
cs-2017.11.25-1-debug-1.zip is up on post #3. [MENTION=2863435]Droid_JD[/MENTION] and others facing lag/memory leaks, I would like you guys to test this version too -- and any future debug builds addressing this issue.

You have to find a way of uploading the zip or posting a link to it.
[Magisk] Hastaloego:
does %resume gets reset in case I replug charger again ?

let's say I used cs 80 20 and phone stopped charging as intended at 80% and I unplugged the phone. now I am at 40% and I want to charge again cause I have to leave soon. will it start charging again till 80% or do I have to wait till battery drops to 20% first?
[Magisk] Blue_Boxers:
Okay, here's a link to my drive https://drive.google.com/file/d/1mOYScdgULgjxvOSfr9tzt1mTUVJLr_CN/view?usp=drivesdk
[Magisk] Droid_JD:
This seemed like a step backwards, it has been incredibly laggy for me.

Perhaps it is a coincidence, but once the phone hit its desired charge level and began to discharge, the phone started to become laggy again. I rebooted it and changed the charge level, and the same thing happened. Don't know if the CS_DEBUG log helps, but it's attached in the hopes that it does (with the lag, it took me a good 5 minutes to try and upload it through Tapatalk App - didn't work; Then I tried to copy it to PC from the phone - didn't work. Finally rebooted and copied it over that way).

Thanks again!
[Magisk] VR25:
A new debug build is up on post #3.

That's device-dependent. You have to try it and see. Generally, though, cs is supposed to only allow changing to start again when battery level is lower or equal to the resume% value -- that is with charger connected. This doesn't apply if you reboot the system.

Anyway, If changing happens to not start when you want, simply run "cs -e % && cs -a", i.e., "cs -e 80 && ca -a". That means "charge until 80 & unpause service afterwards."

Will take a look. -- Thanks
[Magisk] Hastaloego:
but wouldn't that mean if I don't unplug in time, that as soon as the phone drops to 79% it would start charging again? won't that be the same as not using cs at all, only with 80% than 100%?
[Magisk] dennnic93:
New debug works wonders, it's a really - set and forget - thing now. I've been searching for this stuff for a looong time. Thank you very much!
[Magisk] Hastaloego:
I tried, unplug and replug charger won't restart charging while still above %PAUSED on Op5
[Magisk] Jaymin.0.1910:
Hey VR25, it's me again, I think there's a little mistake in zzz-cs-service script. There you first defined variable "mod_path" and then used "mod_dir" to point to the module directory.
[Magisk] Droid_JD:
Current version working amazing!

Been using it all morning, no lag.

FANTASTIC!

Thank you for all your hard work and dedication!
[Magisk] ainurrofiq:
I have this problem too, even after flashing new ROM, I can't charge my phone , what should I do?

when I check on ampere app it showing not charging , the charging indicator is not glowing , but the battery on status bar showing thunder , [MENTION=5228676]VR25[/MENTION]
[Magisk] vegdroid:
Tried it. Doesnt work for me.

https://drive.google.com/file/d/1ZibjWRbGilIB7l6eX8Mo2XdeYXpBGBlc/view?usp=drivesdk
[Magisk] bmwfrkvt:
What policy do you all run if using your phone for navigation etc? Would bouncing between 75-80% be beneficial? At least it would avoid charging to 100 but also wouldn't leave you with a dead battery after a trip.
[Magisk] VR25:
No, that would be the case with "cs 80 79" for instance -- never with cs 80 60 or similar.

Then your systems don't reset the values automatically. If cs is running, it should enable charging on every boot.

Thanks for point that out.

Will take a look.

For that kind of usage (prolonged), you want your battery bouncing between 40-45%. That's the "sweet" spot of lithium ion batteries. If you've noticed -- generally, new/shelf batteries come ~40% charged -- never fully charged/discharged, nor too low/high %. This assures long lifespan either in normal usage or stored state.

----------------------------------

The next build will be fully compatible with Magisk 14.5 and more future-proof.
[Magisk] zzenyoo:
I didn't precise. I'm using KernelSU, but i can't install acc module. It needs some BusyBox. I've tried some but didn't work 🤷🏻‍♂️
[Magisk] brackenhill_mob:
That I can't help you with as it's device specific. I'd ask in the forum for your device. Have you tried installing the ACCA app and setting that in kenerlsu? That's what I did.
[Magisk] zzenyoo:
🤔 I'll try thnx.

Btw, I've got poco X3 NFC.
[Magisk] brackenhill_mob:
Same as me. Might be worth trying a different kernel. I'm using the modified Stratosphere one you can find here https://t.me/StratospherePilots
[Magisk] zzenyoo:
Same 😉
[Magisk] brackenhill_mob:
New CRDroid ROM has just dropped with support for kernelsu built-in
[Magisk] zzenyoo:
I know. Currently I'm on Alpha but planning some change when back from work. Btw official or Thestrechh ?
[Magisk] brackenhill_mob:
Official, but Nick uses Stretch tree I believe
[Magisk] david003:
I can get acca to work with kernelsu initially, but after rebooting it goes into a boot loop.
[Magisk] magi44ken:
Which brand and model number wireless charger are you using that works your OnePlus 9 for battery idle mode?

Which acc switch you use?

Thanks
[Magisk] roirraW "edor" ehT:
New ACC release https://github.com/VR-25/acc/releases
[Magisk] Admiral2145:
Thx for the update... One of the best reasons to root
[Magisk] Doomkopf:
@VR25 Thanks for the update! Very much appreciated.

I have a change suggestion, maybe you find this inspirational: I always though of the max_temp implementation as a little bit flawed. Why not swap the max_temp and max_temp_pause with something like max_temp and max_temp_hysteresis? In my opinion, it doesn't make sense to continue charging when the temp is still at max_temp or even above it after the max_temp_pause.

And (I'm not 100% sure about this) I think that there is a small logic bug in cooldown_temp. If I plug my phone in while having a temp > cooldown_temp, I'm pretty sure that the cooldown_cycle doesnt get triggered even though it should, because Im not actively exceeding the temp. But I'm not certain if it really does not.

Anyways, thank you. Saving my battery day by day.
[Magisk] adhammagdy:
Causes bootloop on kernelsu
[Magisk] beeshyams:
Sorry to bother you

With the June update and latest module released a few days ago. I haven't been able to get charge cut off run reliably, much less idle mode.

Mind sharing what works for you? TIA
[Magisk] G5-User7080:
I didnt change anything, latest update works just fine for me, but I never use idle mode since it has always been buggy.

{"profile":{"uid":5,"profileName":"4000","accConfig":{"configCapacity":{"shutdown":15,"resume":55,"pause":63},"configVoltage":{"max":4100},"configCurrMax":1000,"configTemperature":{"coolDownTemperature":35,"maxTemperature":30,"pause":90},"configResetUnplugged":false,"configResetBsOnPause":false,"configChargeSwitch":"main-charger/current_max 900000 0","configIsAutomaticSwitchingEnabled":true,"prioritizeBatteryIdleMode":false}},"mIsChecked":true}

thats the AccA config I usually use
[Magisk] beeshyams:
Thanks a lot for the Prompt help! Much appreciated

I Haven't worked with scripts before so this looks new to me so a newbie question if you care to spend more time on this..

How do I use it?

Ideally I should be doing the spade work to learn but a pointer may help

Sincere thanks for your time even if you can't help me beyond this point 🙏