Search This thread

Uluru25

Senior Member
Nov 27, 2016
443
194
Samsung Galaxy S7
Samsung Galaxy A6
... 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.
 

gamer1987fla

Member
Jan 24, 2023
47
0
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?
 
Last edited:

gamer1987fla

Member
Jan 24, 2023
47
0
... 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.
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?
 

Uluru25

Senior Member
Nov 27, 2016
443
194
Samsung Galaxy S7
Samsung Galaxy A6
... 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)
 
  • Like
Reactions: Admiral2145

gamer1987fla

Member
Jan 24, 2023
47
0
... 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)
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
 

Uluru25

Senior Member
Nov 27, 2016
443
194
Samsung Galaxy S7
Samsung Galaxy A6
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.
 

Attachments

  • Screenshot_20230331-205656_Trebuchet_1.png
    Screenshot_20230331-205656_Trebuchet_1.png
    167.2 KB · Views: 52

gamer1987fla

Member
Jan 24, 2023
47
0
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.
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?
 

gamer1987fla

Member
Jan 24, 2023
47
0
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.
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
 

Uluru25

Senior Member
Nov 27, 2016
443
194
Samsung Galaxy S7
Samsung Galaxy A6
... 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.
 

gamer1987fla

Member
Jan 24, 2023
47
0
... 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.
What can I do to configure acca?

configure in config.txt for limit 1000ma?
 

fedex_742

Senior Member
Oct 27, 2016
226
31
Samsung Galaxy S21 Ultra
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?
 

Uluru25

Senior Member
Nov 27, 2016
443
194
Samsung Galaxy S7
Samsung Galaxy A6
I tried to configure it but it doesn't save I don't understand why it doesn't save
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! 🤠
 

gamer1987fla

Member
Jan 24, 2023
47
0
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! 🤠
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?
 

gamer1987fla

Member
Jan 24, 2023
47
0
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?
 

gamer1987fla

Member
Jan 24, 2023
47
0
Whatever "safe" should mean in this context: yes I use(d) this gui in some of my phones.
🤠
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
 

Uluru25

Senior Member
Nov 27, 2016
443
194
Samsung Galaxy S7
Samsung Galaxy A6
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! 🔥🔥🔥
 

Attachments

  • Screenshot_20230330-071630_Trebuchet_1_1.png
    Screenshot_20230330-071630_Trebuchet_1_1.png
    370.5 KB · Views: 40
  • Screenshot_20230403-071632_Trebuchet_1_1.png
    Screenshot_20230403-071632_Trebuchet_1_1.png
    368.1 KB · Views: 40
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    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)
    2
    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 work : when the charge reaches 99% :
    • the wireless charger won't turn off and it seems to consume about 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)
    ... 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.
    🤠
    2
    I know. Currently I'm on Alpha but planning some change when back from work. Btw official or Thestrechh ?
    Official, but Nick uses Stretch tree I believe
    2
    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.
    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!
    2
    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.
  • 77
    Archive
    Find newer zips here.
    41
    Those who are worried about other projects of mine not being updated for a long time, possibly abandoned...
    Stop worrying.
    After the next stable ACC release, I'll focus more on the other Magisk modules (fbind, Migrator, Systemless GApps, etc.).
    The current ACC framework is the base of all the other projects - meaning, making it rock stable it priority #0.
    29
    A new stable release is up.
    It can be downloaded from Magisk Manager > Downloads as well.
    Refer to the readme for a full list of changes, features and recommendations.
    Now I'll be focusing more on the other projects (migrator, fbind, systemless GApps, daily job scheduler...).
    Until these reach satisfactory status, acc will only get occasional maintenance updates (bugfixes, optimizations, new charging control files...).

    Edit: the installer enforced by Magisk Manager is not playing nice with acc. Until I fix that, use the zip from GitHub (release link above).

    Edit 2: fixed.