How To Guide How to limit charging on Pixel 6

Search This thread

DaCHeF36

Senior Member
Jan 3, 2017
92
26
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.
I am using ACC 2022.2.22.1 with a chaeging switch of "gcpm/constant_charge_current_max 3160000 0" and it seems stable. It is idling at 80%. I will monitor for a bit and let you know if there are any issues.
 

DaCHeF36

Senior Member
Jan 3, 2017
92
26
I am using ACC 2022.2.22.1 with a chaeging switch of "gcpm/constant_charge_current_max 3160000 0" and it seems stable. It is idling at 80%. I will monitor for a bit and let you know if there are any issues.
I've caught it once charging back up to 85%. It was off a Dell dock USB port. When I charge it off a USB port on my end table, or executive desk, it holds at 80%. I have only seen this happen once so far, but it has happened. The charge limit may be grumpy based on input power level. I am unsure how the factory charger, or quick charging performs. I typically use lower powered sources of charging to help with heat and longevity as well.

If I can find some time, I will look into it. If anyone else tries a switch or product version that works properly, let all of us know. ACC, and apps like it, are valuable in keeping our batteries preserved, IMO. Thanks.
 

DaCHeF36

Senior Member
Jan 3, 2017
92
26
I've caught it once charging back up to 85%. It was off a Dell dock USB port. When I charge it off a USB port on my end table, or executive desk, it holds at 80%. I have only seen this happen once so far, but it has happened. The charge limit may be grumpy based on input power level. I am unsure how the factory charger, or quick charging performs. I typically use lower powered sources of charging to help with heat and longevity as well.

If I can find some time, I will look into it. If anyone else tries a switch or product version that works properly, let all of us know. ACC, and apps like it, are valuable in keeping our batteries preserved, IMO. Thanks.
I have confirmed seeing 85% multiple times. Battery idle appears to be "working" as it sits at 80% or 85% seemingly dependent on the power source.
 

Barrel Titor

Member
Jul 21, 2015
39
16
Vienna
OnePlus X
Huawei P20 Lite
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'm sorry for asking this, but i've been trying to wrap my head around this charging switch for hours now.. I think i'm nearly there, but i need to make sure..

gcpm/constant_charge_current_max 1866420 0
what exactly does the integer "1866420" represent/do? After reading through the relevant sections in the acc documentation for god knows how many times, i'm left with the conclusion that acc interprets this number as a mA value. But that translates to some toasty 1866.42 Amps, roughly translating to a charging performance of 7465.68 Watt (assuming 4V)..
So I am assuming now that, setting constant_charge_current_max to something ridiculously high like "1866420" tells the device to just max out the available charge current.. Correct?

If not, can you, or somebody please explain what exactly this number, or even better, this entire charging switch does exactly?

I've read that /sys/devices/platform/google,charger/charge_stop_level 100 5 is actually the "true", "official, "honest to god" charging switch we should be using, but this one doesn't support Battery Idle Mode..

I don't know what to say man.. Not only am i bad with electrical engineering, my entire process of switching from my trusty old OnePlus 7 Pro to the Pixel 6 Pro has so far been disastrous, to say the least..

Thanks for any insight into this.
 

aimsjahan

Senior Member
Sep 20, 2013
179
82
OnePlus X
OnePlus 5
{Mod edit: Quoted post has been deleted. Oswald Boelcke, Senior Moderator}
Short answer, no. Long answer, well may be if you are to integrate those scripts into an aosp build or a custom rom, flashing which would require unlocking the bootloader anyway.
 
Last edited by a moderator:

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/