How To Guide How to limit charging on Pixel 6

Search This thread

boe323

Senior Member
Jun 22, 2012
1,952
392
Burton on Trent
If you would have read the correct information on this subject. You would know that this not true for today's battery technology.
This is nothing but a myth.
You will have a better chance looking for Bigfoot.

Why waste 40% of your battery use....
the 20% is use li-ion batterys, dropping below 20% (if the battery is malfunctioning) can lead to swelling, but its best practice to charge your phone around 15/20%, the 80% thing is just a myth. storing li-ion batterys should be around 40/60% though
 

WibblyW

Senior Member
May 24, 2011
736
135
Google Nexus 4
Moto X Play
the 80% thing is just a myth
Do you have non-anecdotal evidence for this? All I've seen is evidence to the contrary...
  1. the often quoted 'Battery University' data https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries
  2. various phone manufacturers slowly introducing various strategies to limit the time the battery spends above 80% e.g. https://support.google.com/pixelphone/answer/10011133?hl=en#zippy=,optimizing-for-battery-health-pixel-later,get-the-most-life-from-your-battery,charging-temporarily-limited-pixel-later
If fact I've NOT seen other than anecdotal evidence that discharging to below 20% before a recharge IS a problem! All I've read (sorry can't find a reference) is that the reason to keep the battery at 40% in storage is to stop it discharging too soon to the point where the battery's protection circuitry doesn't get power and stops the battery from charging at all. This is actually below the battery's 'indicated' 0%. And an indicated 0% still leaves enough charge in the battery not to damage it chemically.

Either way I would say don't obsess about it, but keeping the battery between 20 and 80% can only improve battery longevity whenever 60% of its capacity can get you through the day. This in my case is frequent given, like many, I now work from home. I will charge it up more when I know I'll be out for the day, though to be honest with in-car charging if I'm driving I find I'm often not using even 50% of the phone's battery capacity in a day... What have you got to lose by doing this anyway? All this just means I hope I won't need the hassle and expense of a battery replacement whilst I have the phone (3 yrs probably) and even then I will have nearer to 100% battery capacity on those occasions I actually need it.
 
Last edited:

WibblyW

Senior Member
May 24, 2011
736
135
Google Nexus 4
Moto X Play
Another interesting point is that (at least according to the Battery University page above) "The worst situation is keeping a fully charged battery at elevated temperatures."

That's exactly what happens when you use a phone for navigation attached to the windscreen in a car on a hot and sunny day and have it sitting, potentially for hours at a time, at 100% plugged into a car charger. And you'll probably get even more heat if you happen to be using a wireless charger :-( Another good reason to limit charge level and, perhaps, temporarily halt charging whilst the phone's temperature is too high. All sounds complicated, but if an app can automate it all...
 
Last edited:
  • Like
Reactions: nutzfreelance

NCVol

Member
Jul 15, 2022
19
11
I have this working for me on a rooted P6 and it’s pretty easy to do. I just installed AccA from F-Droid. The ACC module in Magisk showed v2022.6.4 by VR25. In settings for AccA I clicked on ACC version and changed it from bundled to v2022.6.4. Rebooted and it’s working.

Hopefully that helps someone else struggling with it like I was. With the bundled version selected in AccA the Daemon would stop running but I haven’t had that happen yet with the version changed.
 
  • Like
Reactions: santa leone

yigal_l

New member
Apr 7, 2009
2
1
With credit to VR-25 from Github:

If you edit these files and put you own values in then your phone will start charging when it drops below 75% and stop when it gets to 80%. (put your own values in, etc.)

I have only tested it briefly but it seems to work for AC and USB charging for me so far. No other apps or tweaks needed.

/sys/devices/platform/google,charger/charge_start_level:75
/sys/devices/platform/google,charger/charge_stop_level:80
Hi can you explane how to modify the file and where it is located ? i can not fint this folder you mention it look like a text that is in the text file
 
  • Like
Reactions: yflee90

ansher

Member
May 29, 2007
22
7
Hello, I read mixed success on making acca idle mode work on pixel 6pro. For those who were successful could you please share your success story?

Thanks!
 

DaCHeF36

Senior Member
Jan 3, 2017
92
26
This is working exactly as expected. I set the pause at 79, which allows the Pixel 6 to stop at 80. Sometimes it trickles to 81, but all's well. The idle mode is working. I can leave the phone plugged in forever and it will maintain its charge. Aside from not being able to unplug and plug it back in to maintain the charge further, it's working as expected. I am happy.
Android 12 was fine. Now, Android 13 is working fine as well.

ACC version is 2022.2.22.1. I am using the charging switch of "gcpm/constant_charge_current_max 1866420 0 --"

Idle while keeping it plugged in after a charge works perfectly. Upper and lower percentage configuration works as expected. I'm not touching it. :)
 
Last edited:

BarrettBear

Senior Member
Jun 16, 2009
96
8
ACCA wasn't working for me (Android 12, Pixel 6, Build: SQ3A.220705.001.B2), the charging limits were ignored, and the daemon kept stopping every few seconds.

I installed above package through Magisk (didn't reboot, console said wasn't required), and now ACCA app/ACC package is working fine 🙏🏻
 
  • Like
Reactions: DaCHeF36

lackalil

Member
Mar 10, 2011
44
12
I was running fine on the final release of Android 12 using gcpm/constant_charge_current_max 3160000 0 with the latest stable ACC (2022.6.4) and AccA. I lost root with a failed update to Magisk Manager and begrudgingly updated to A13 TQ1A.230205.002. Now the old charging switch won't work (although testing says it works) and none of the switches in the AccA list do either. Automatic works but doesn't idle.

Does anyone have a functioning setup on the latest A13 version?

Edit: A few hours later and everything including idle is working with gcpm/constant_charge_current_max 3160000 0. I didn't change any settings, install/uninstall anything or reboot. No idea what was going on there.
 
Last edited:

DaCHeF36

Senior Member
Jan 3, 2017
92
26
I was running fine on the final release of Android 12 using gcpm/constant_charge_current_max 3160000 0 with the latest stable ACC (2022.6.4) and AccA. I lost root with a failed update to Magisk Manager and begrudgingly updated to A13 TQ1A.230205.002. Now the old charging switch won't work (although testing says it works) and none of the switches in the AccA list do either. Automatic works but doesn't idle.

Does anyone have a functioning setup on the latest A13 version?

Edit: A few hours later and everything including idle is working with gcpm/constant_charge_current_max 3160000 0. I didn't change any settings, install/uninstall anything or reboot. No idea what was going on there.
I'm still using "gcpm/constant_charge_current_max 1866420 0 --" with success, mostly. ACC version is 2022.2.22.1.. I've found recently that some lower charging currents end up a couple percentages over or under the upper limit. I'll try yours too, shortly.
 
Last edited:

Anio*

Member
May 23, 2023
5
0
I'm still using "gcpm/constant_charge_current_max 1866420 0 --" with success, mostly. ACC version is 2022.2.22.1.. I've found recently that some lower charging currents end up a couple percentages over or under the upper limit. I'll try yours too, shortly.
I have installed with Magisk ACC 2022.2.22.1 and got the latest ACCA 1.0.35 GUI app. The idle doesn't work for me, it switches just on and off the charging. Is it still working for you ?
 

DaCHeF36

Senior Member
Jan 3, 2017
92
26
I have installed with Magisk ACC 2022.2.22.1 and got the latest ACCA 1.0.35 GUI app. The idle doesn't work for me, it switches just on and off the charging. Is it still working for you ?
Yes. Albeit less accurate than before, but still working. I find the battery charging to 82%, on most power supplies, when set at 79%. Otherwise, it does idle just fine.
 

Anio*

Member
May 23, 2023
5
0
Yes. Albeit less accurate than before, but still working. I find the battery charging to 82%, on most power supplies, when set at 79%. Otherwise, it does idle just fine

Can you share your exact setup? I'm doing something wrong and can't figure out what.. It doesn't idle for me, it discharges as quickly as without charger plugged in.

I'm adding your charging switch to the default profile. Upon adding it asks me for ON and OFF value, I leave them blank. It should be using the default values of 70 and 80 in the capacity control, I guess ?🤔 Also the capacity control by default has value of 5% to Shutdown if not charging. Then I turn ON "Prioritize battery Idle mode". Don't touch anything else.
The only other thing that is ON by default is the temperature control with values 40deg 45deg and 90sec.
Actually I did play with different settings and switches before with no success, this is my 3rd or 4th fresh installation 😅
 
Last edited:

DaCHeF36

Senior Member
Jan 3, 2017
92
26
Can you share your exact setup? I'm doing something wrong and can't figure out what.. It doesn't idle for me, it discharges as quickly as without charger plugged in.

I'm adding your charging switch to the default profile. Upon adding it asks me for ON and OFF value, I leave them blank. It should be using the default values of 70 and 80 in the capacity control, I guess ?🤔 Also the capacity control by default has value of 5% to Shutdown if not charging. Then I turn ON "Prioritize battery Idle mode". Don't touch anything else.
The only other thing that is ON by default is the temperature control with values 40deg 45deg and 90sec.
Actually I did play with different settings and switches before with no success, this is my 3rd or 4th fresh installation 😅
Looked at this over the past few days. I had my Pixel 6 plugged in over the weekend. Unfortunately, earlier this afternoon I found the battery up at 89%. It appears to be slowly trickle charging past the set limit. Upon visual inspection, I saw the typical +2ma / -2ma kind of activity, which led me to believe it was working as intended. I don't often idle my phone for days at a time, but this weekend I did. I am back to the drawing board for a charging switch that works 100%.

I wish ACC was able to idle no matter the charge. For instance, if I was between the low and high values, it would idle immediately aftrer being plugged in. It would only charge if it was lower than the bottom setting. I used to have another module that worked this way, but unfortunately it didn't translate from my old Note 4 to th Pixel 6 well.

I'll be sure to post what I figure out, if anything.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    If you would have read the correct information on this subject. You would know that this not true for today's battery technology.
    This is nothing but a myth.
    You will have a better chance looking for Bigfoot.

    Why waste 40% of your battery use....
    On the contrary. The most recent phones attempt to limit the time that they spend at 100% exactly because it's so bad for battery longevity. Having options like the OP's approach just gives users more flexibility, should they want more control than, in this case, Google's adaptive/AI approach.

    And it's not 'wasting' 40% of the battery. Keeping between 80% and 20% just optimizes battery service life during those days you only actually only need 60% of it's possible capacity. When working from home that's often the case for me. I actually tend to use ~30% of the battery in a day. Better to charge it up daily to about 70% than all the way to 100% and let it go down to 10% over 3 days. If it's easy to do, why not?

    Not quite the same, but EV design also has their batteries normally operating in the middle range so as not to compromise their service life...

    Definitely not myth. The only myth is that lithium cells exhibit a memory effect and need to be deep discharged and fully recharged periodically to maintain their capacity. It's actually bad for them to do this! The only reason to do this would be in an attempt to recalibrate the software for the battery level gauge (at the cost of a little damage to the battery each time you do that).
    9
    If you do some reading you will see that charging over 80% and draining under 20% will significantly shorten the lifespan of your battery. This is important for those of us that have devices not sold in our country so getting replacement batteries would be very difficult and expensive. I have phones that are more than 9 years old and still going fine if charged like this.
    If you would have read the correct information on this subject. You would know that this not true for today's battery technology.
    This is nothing but a myth.
    You will have a better chance looking for Bigfoot.

    Why waste 40% of your battery use....
    6
    With credit to VR-25 from Github:

    If you edit these files and put you own values in then your phone will start charging when it drops below 75% and stop when it gets to 80%. (put your own values in, etc.)

    I have only tested it briefly but it seems to work for AC and USB charging for me so far. No other apps or tweaks needed.

    /sys/devices/platform/google,charger/charge_start_level:75
    /sys/devices/platform/google,charger/charge_stop_level:80

    EDIT: You need to be rooted to do this, and you need to reapply the settings after reboot.
    I have a Tasker action that does this automatically 5 minutes after rebooting.
    5
    What would be the purpose for this.
    I always charged to a 100% and never had issues on my devices.
    If you do some reading you will see that charging over 80% and draining under 20% will significantly shorten the lifespan of your battery. This is important for those of us that have devices not sold in our country so getting replacement batteries would be very difficult and expensive. I have phones that are more than 9 years old and still going fine if charged like this.
    4
    ... and if you really want to knacker the battery, heat it up too!

    Worst case scenario - using a sat nav app on your phone in the car on a hot day with the phone plugged into a car adaptor. It's going to be sitting there at elevated temperatures, possibly with the sun shining on it, whilst being kept at 100% battery....

    I'm only a customer (and have no other affiliation) and like to tinker, so I got one of these for use in the car to limit temperature when charging and limit max charge. Not cheap, but ok compared with the cost of the phone https://chargie.org/