Search This thread

tuan94_bg

New member
Jul 12, 2022
2
0
Sony Xperia 5 II
i am using xperia 5ii. i changed my phone battery to 4500mAh. can anyone tell me how to fix these values, i can't fix it directly. thank
Screenshot_20220807-235930.png
 

panni

Senior Member
Feb 6, 2007
230
102
@VR25 v2022.7.30-dev is working great here on the Nothing phone 1. Using battery/charge_control_limit 0 battery/charge_control_limit_max and forceOff. This even works with Qi charging, not only USB. Before forceOff some internal thermal management service turned the switch on again after some time.

The only thing I've noticed: The resume percentage isn't terribly accurate. I have it at 75, and yesterday it started charging even when it was a 76% battery.

Thanks for this great tool, been using it for years.
 

Zaxx32

Senior Member
Mar 23, 2019
458
160
Morgantown
Moto G5 Plus
Moto G7
Got a new Pixel 6a...using AccA app but charging doesn't stop at 90% as it should and only ever makes it to 2.5A. What switch does the P6a use or should I jeave it on 'auto'. And yes, I gotta use AccA cuz I've no how to use ACC directly...lol So go easy on me guys...plz
 
  • Like
Reactions: VanGray

MrMojo93

Member
Sep 21, 2017
8
0
Hello,

I have a OnePlus Nord which was recently updated to Android 12. Since than ACC doesn't work. Even though I set the limit at 80%, the phone charges up to a 100% every night.
I'm using the latest dev version. I'll attach the logs. Thanks very much for your help!

Marton
 

Attachments

  • acc-logs-Nord.tgz
    54.8 KB · Views: 8

VanGray

Member
Sep 17, 2021
28
29
Got a new Pixel 6a...using AccA app but charging doesn't stop at 90% as it should and only ever makes it to 2.5A. What switch does the P6a use or should I jeave it on 'auto'. And yes, I gotta use AccA cuz I've no how to use ACC directly...lol So go easy on me guys...plz
Why not using a terminal to find which switch is working for you ?
you can do it once and then using ACCA after.

Juste plug a charger, type :

su
acc -t

and you'll find the list of all the charging swich you can use.

Find one with "charging switch true" then enforce it with

su
acc -ss
the charging switch
 

Zaxx32

Senior Member
Mar 23, 2019
458
160
Morgantown
Moto G5 Plus
Moto G7
Why not using a terminal to find which switch is working for you ?
you can do it once and then using ACCA after.

Juste plug a charger, type :

su
acc -t

and you'll find the list of all the charging swich you can use.

Find one with "charging switch true" then enforce it with

su
acc -ss
the charging switch

I didn't know that's how to find out. I've only ever worked with the 'front end' apps. Thank you for for the tip!

I've also been curious about the last 2 settings in AccA.
What is the proper syntax for setting 'apply_on_boot' or 'applyOnplug' to true. I've never messed with control files before and there not a lot of docs for Acc or AccA.
The last coding I've done was waay back in high school and a bit in college (basic, cobol and machine lang. lol)
If u can link me to any 'noob level' guides re: control files, I'm sure interested.
 

BertProesmans

Member
Aug 14, 2022
10
0
OnePlus X
Nothing Phone 1
@VR25 v2022.7.30-dev is working great here on the Nothing phone 1. Using battery/charge_control_limit 0 battery/charge_control_limit_max and forceOff. This even works with Qi charging, not only USB. Before forceOff some internal thermal management service turned the switch on again after some time.

The only thing I've noticed: The resume percentage isn't terribly accurate. I have it at 75, and yesterday it started charging even when it was a 76% battery.

Thanks for this great tool, been using it for years.
Hi, I'm new to working with acc and own a Nothing Phone. Is it possible to share your acc configuration file?

I figured out "battery/charge_control_limit 0 battery/charge_control_limit_max" is the charging switch, forceOff is the approach acc persists those values to the system.
I'm curious if there are other variables interesting to tweak, and would like to learn more from a practical example.
 

Uluru25

Senior Member
Nov 27, 2016
349
137
Samsung Galaxy S7
Samsung Galaxy A6
.. onl
Hi, I'm new to working with acc and own a Nothing Phone. Is it possible to share your acc configuration file?

I figured out "battery/charge_control_limit 0 battery/charge_control_limit_max" is the charging switch, forceOff is the approach acc persists those values to the system.
I'm curious if there are other variables interesting to tweak, and would like to learn more from a practical example.
Only to give you an idea: I use the ACC Settings front end to 1) limit the charging current, 2) limit the max. percentage of charging, 3) stop charging in case of elevated temperatures but 4) create a biphasic charging with a higher current in the beginning and a low current at the end. My motivation is to maintain a good battery health. Whether or not 4) makes really sense I don't know. See attached.
 

Attachments

  • Screenshot_20220815-122845_Trebuchet.png
    Screenshot_20220815-122845_Trebuchet.png
    103.4 KB · Views: 133
  • Screenshot_20220815-122854_Trebuchet.png
    Screenshot_20220815-122854_Trebuchet.png
    107.4 KB · Views: 131
  • Screenshot_20220815-122900_Trebuchet.png
    Screenshot_20220815-122900_Trebuchet.png
    130 KB · Views: 135

Arcline

Senior Member
Sep 11, 2016
140
52
Can someone give me their opinion on my setup? The settings are pretty overwhelming, but after reading the documentation I came up with this:
- Shut down is unchanged, cooldown at 60, resume at 75, pause at 80. Automatic charging switches.
- Temperature: Cooldown above 42, pause at 46, shutdown 50;
- Cooldown cycle: Charge period 50s, cooldown period 10s, cooldown current 500mA;
- Charging switch: Idle mode first;
- Statistics: Reset on pause;
Basically I want to limit charging at 80%, limit temperature at around 42C and make the cooldown cycle via limiting current instead of pausing. Also prioritize input power instead of battery when connected at pause level and reset stats when charged. Is my setup correct?
Thanks!
 

BertProesmans

Member
Aug 14, 2022
10
0
OnePlus X
Nothing Phone 1
I've been trying out acc since Monday on my Nothing phone. I cannot reliably put the phone into idle/slow charging mode monitoring the status through AccA and acc -i/dumpsys battery. But I've had minor success on wireless charging and USB slow chargers.
I've seen unexplainable things so far, probably because i'm handling it wrong; acca(CLI) lockups, accd crashes on valid config changes, accd seemingly sleeping when phone is locked, accd not taking new config changes etc

I suspect my computer's USB isn't a proper power source to work off, I suspect the power randomly drops to ~0Amps without accd running.
Fast chargers indeed keep pushing 2+Amps no matter what I do, which is documented in the readme.

Before calling in help I'm going to try on my own for another while.
I'm also considering moving over to AccA profiles and DJS, but as far as I can see it's not possible to encode force_off=true into AccA profiles.
 

panni

Senior Member
Feb 6, 2007
230
102
I've been trying out acc since Monday on my Nothing phone. I cannot reliably put the phone into idle/slow charging mode monitoring the status through AccA and acc -i/dumpsys battery. But I've had minor success on wireless charging and USB slow chargers.
I've seen unexplainable things so far, probably because i'm handling it wrong; acca(CLI) lockups, accd crashes on valid config changes, accd seemingly sleeping when phone is locked, accd not taking new config changes etc

I suspect my computer's USB isn't a proper power source to work off, I suspect the power randomly drops to ~0Amps without accd running.
Fast chargers indeed keep pushing 2+Amps no matter what I do, which is documented in the readme.

Before calling in help I'm going to try on my own for another while.
I'm also considering moving over to AccA profiles and DJS, but as far as I can see it's not possible to encode force_off=true into AccA profiles.
I'm using the NP1 very successfully with the latest dev acc. I'm avoiding AccA right now as it behaves weird with it. I've posted my used config a couple of posts ago - this one is VERY stable for me. Upper limit is 80% and while charging using Qi it goes to 82% at most, over 10 hours. I'd say that charging switch works fairly well, but only with forceOff.

Edit: The 2% overshoot probably happens over hours and is not a concern for me as it's still low enough and probably at a very low trickle charge.

Edit 2: To make it more clear: I use AccA occasionally to check on charging currents, but only every couple of days. I've edited the config using the acc CLI, after setting the charging switch using acc, then editing my limits using the acc CLI config editor. I've stopped using AccA for anything other than monitoring.

As I've switched between acc versions, I've stopped using AccA to set the actual config. No issues.
 
Last edited:
  • Like
Reactions: duttyend

disconmair

Member
May 18, 2012
16
3
I'm using the NP1 very successfully with the latest dev acc. I'm avoiding AccA right now as it behaves weird with it. I've posted my used config a couple of posts ago - this one is VERY stable for me. Upper limit is 80% and while charging using Qi it goes to 82% at most, over 10 hours. I'd say that charging switch works fairly well, but only with forceOff.

Edit: The 2% overshoot probably happens over hours and is not a concern for me as it's still low enough and probably at a very low trickle charge.

Edit 2: To make it more clear: I use AccA occasionally to check on charging currents, but only every couple of days. I've edited the config using the acc CLI, after setting the charging switch using acc, then editing my limits using the acc CLI config editor. I've stopped using AccA for anything other than monitoring.

As I've switched between acc versions, I've stopped using AccA to set the actual config. No issues.
Can you please share your config file?
Thanks.
 
  • Like
Reactions: duttyend

panni

Senior Member
Feb 6, 2007
230
102
Can you please share your config file?
Thanks.
Code:
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_control_limit_max --)
                                         
cooldownCustom=()                        
                                         
maxChargingCurrent=()                    
                                         
maxChargingVoltage=()

runCmdOnPause=''
 

panni

Senior Member
Feb 6, 2007
230
102
I see in my config file, the chargingSwitch is set to
Code:
(battery/battery_charging_enabled 1 0)
.
Can you tell me what is the difference between yours and the default setting?
Thanks.
The difference is mine works :D (this is the only charging switch that worked reliably for me on the NP1)

Edit: No, seriously, mine limits the charging power, yours is a switch that if it works, it disables charging. The difference is that mine will still show the charging icon and yours won't (if it works).
 

Kasinel

Senior Member
Sep 2, 2017
53
3
I have checked all the available swich for my phone (Poco x3 pro) and none of them work, could someone help me?
Rom: Evolution X (Android 12)
Kernel: Stock Evolution X
ACC Ver: v2022.7.30-dev
Front-end app: AccA
 

Attachments

  • acc-t_output-vayu.log
    13.2 KB · Views: 10
  • config.txt
    620 bytes · Views: 6
Why not using a terminal to find which switch is working for you ?
you can do it once and then using ACCA after.

Juste plug a charger, type :

su
acc -t

and you'll find the list of all the charging swich you can use.

Find one with "charging switch true" then enforce it with

su
acc -ss
the charging switch
Hello,

Need some guidance as to which switch to select from the 3 options where switch works and battidlemode is true. I have pixel 6 pro and charging using the 30w charger that came with it.
 

Attachments

  • acc-t_output-raven.log
    13.5 KB · Views: 17

VanGray

Member
Sep 17, 2021
28
29
Hello,

Need some guidance as to which switch to select from the 3 options where switch works and battidlemode is true. I have pixel 6 pro and charging using the 30w charger that came with it.
Try this one:

5/24: gcpm/constant_charge_current_max 1933090 0
switch: off (0) current: -0mA (Idle)
switch: on (1866420) current: -1378mA (Charging)
Switch works ✅
- battIdleMode=true
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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

    Fixed it. Had to turn off adaptive charging and reset the whole thing.
    1
    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?
    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://forum.xda-developers.com/t/advanced-charging-controller-acc.3668427/post-87695451: this is my configuration with 60 % triggering the cool down to 500 mA.
    1
    Hey!

    Did you achieve that by setting the max charge level to 80% and then simply just enabling 'prioritize battery idle mode'?
    I'm trying to achieve a very similar setup where I slow charge the phone overnight but then it's at 80% (or as close as it can be, since the "unplugged" battery discharge nominal) when I unplug & start my day.

    Hey. Yeah, I just set ACC to prioritize idle mode. That was enough with my kernel. Your experience may be different
    1
    I also installed Termux, and navigated to /data/adb/vr25/, but can't run any "acc" command.
    You needn't navigate to any folders. After launching Termux, type "su," hit enter, then you can use all "acc" commands.
    1
    Thanks for the suggestion! I already ran "su" and couldn't run "acc". Termux is telling me it can't find the command. But ACC is installed, I know where the folder is, and I have Acc Settings installed too.
    Have you rebooted since flashing the Magisk module?
  • 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.