Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Optimized battery charging issue solved ( MBP 2020, macOS Ventura )

I've fixed the issue of optimized battery charging feature and now it is working.


It looks like so called learning algorithm can not track the charging status if you connect the charger before you start the computer.

Here are the steps you need to do to fix the issue.

  • Turn off the optimized battery charging feature (Uncheck the "optimised battery charging" option in the battery settings ) ( this is necessary to make a fresh start )
  • Unplug the power cable
  • Restart the computer
  • After the restart turn on optimized battery charging
  • And then plug your charging cable


These steps helped me to resolve the issue instantly.


You can also read my post in reddit :

https://www.reddit.com/r/macbook/comments/15atsl0/optimized_battery_charging_issues_on_macos/

MacBook Pro 13″, macOS 13.4

Posted on Jul 28, 2023 9:00 PM

Reply
Question marked as Best reply

Posted on Aug 1, 2023 12:12 AM

Thank you Steve,


Currently I've already have some solutions in my hand like other thirty party developers but they mostly works with communicating with the SMC at low level. But I do not prefer that kind of solution. I need an elegant solution.


As my research continuous ( without any documentation and most of the source codes are closed ) I think I've found the service which is at the top of command chain ( PowerUIAgent ). It is responsible for giving charge decisions based on machine learning models. And I succeed in communicating with that service.


In this way I believe I can override some settings or tweak some parameters of the decision making logic.

I'll keep this forum posted once I found alternatives.


Extra note : Yesterday when I'm evaluating the alternatives, I found a power assertion ( like the assertion that prevents sleep ) but it doesn't work. ( like I think it should ) It's name is "kSBUCChargeInhibit"


Similar questions

49 replies

Jul 29, 2023 9:04 AM in response to kivanc48

kivanc48 wrote:

• Thank you for your informative replay, since there is no explanation from apple about how this feature works with a some technical point of view, we are experimenting with trial and errors. As I do not want my battery to wear off during some unnecessary charging/discharging cycles during learning.

Original poster from reddit explains that he contacted the apple support for this issue and get it is working by doing steps that I summarized.

Although I want to see some details as an engineer the solution I proposed is simple and also helpful for common usage. That is like that:
They will need to put some status indication to battery settings like "refreshing battery" or "learning in progress".
• Or some simple checkbox to indicate the computer is generally on AC power. ( Charger is always plugged )

The solution you proposed does no harm, but it is inconvenient as it requires multiple menus and clicks. For something that Apple has designed so the user does not need to do anything in order to maximize battery life. My anecdotal experience with 3 laptops is that 3 for 3, all three have "learned" to preserve batteries by staying long term at a lower charge, with the user having to do ... nothing.


I am also an engineer and do respect that some companies prefer not to release their proprietary algorithms, I see this all the time, I accept it. Especially where the algorithm appears to work.


In any case, you may be over-worrying the battery situation. As P. Phillips points out, batteries are a consumable, the wear out over time and use, no matter what. Apple has implemented a scheme to maximize battery life, and does something similar with iPhones as well.


As for worrying about unnecessary charging/discharging cycles during learning, that is probably insignificant, these batteries are designed for 1000 cycles.

As I do not want my battery to wear off during some unnecessary charging/discharging cycles during learning.

Jul 29, 2023 10:16 AM in response to steve626

No, with all due respect, I do not agree.


In my case, I couldn't understand if some buggy behavior has happened, because there was no debug information present. And all I need was some way to learn some information about ongoing battery charge learning process, it could be some terminal command or some log information, small GUI indication would be nice though.


And one of the things that bugs me a lot is the learning process takes a long time and It makes me wonder if it is working ok or not, and to verify this functionally you need to wait for 3 days ( maybe more ).

Jul 29, 2023 11:38 AM in response to kivanc48

In addition, I would like to explain another point.


There is no doubt that Apple implemented some sophisticated algorithm for battery life. But if the optimization algorithm working as most of us expected why there is need for the other third party tools ?


Simple command line utility would be enough to set Battery Max Charging Level. If I was the developer I would put a parameter inside of the pmset command.

Jul 31, 2023 9:01 PM in response to steve626

Hi Steve,


My suggestion is not a complexity but simple use case for all like me. And I do not want my battery to wear off without understanding the charging logic behind it.


It is a bit weird for me that you accept all the things happening without understanding them. Maybe I'm skeptical but I need to understand what is happening in my computer.


As I generally do, I developed my own solutions and will post it soon once I've tested and make it easy to implement for all.


I started to research details of optimized charging after this issue and I figured out Apple spend many efforts related to machine learning models of the user charge habits and I appreciate It, but in my case I do not need it. Maybe some people should really think about if optimized charging feature is not appropriate for MacBook but iPhone .

Aug 1, 2023 1:32 AM in response to kivanc48

Having left this question believing there has been sufficient advise offered, from several Contributors, for the User ( you ) to make an informed and educated choice what remedial actions maybe required for this computer.


The suggestions have been put forth on a volunteer basis, in good faith and in the best interests of the computer and not necessarily in the best interest of individual users

Aug 1, 2023 2:27 AM in response to PRP_53

I do not agree with your saying “in good faith and in the best interests of the computer and not necessarily in the best interest of individual users” because I see the voltages of each cell of the battery during the charge and you can not say 4.3 Volt is harmless to the battery. I can present documents about that.

Aug 2, 2023 8:16 AM in response to kivanc48

In my opinion all this obsession with battery charging is needless. All mobile device manufacturers spend billions of dollars of R&D on making batteries last longer, charge faster, maximize output.


There are tons of conflicting “studies" about how to maintain a battery, how often to charge, how low to let the charge get before recharging, etc. It’s a veritable cottage industry and almost all of it is poppycock when it comes to modern mobile devices of all stripes.


It is in the manufacturer’s interest to preserve battery life as long as possible, conspiracy theories about forced upgrades and planned obsolescence not withstanding.


I trust Apple’s ability to maintain a battery more than any “I read it on the internet” nonsense. My mobile devices go on the charger very night 24/7/365. My series 4 Watch is now close to five years old and battery health is just now down to 83%. It will last until I decide to buy a new Watch before I even consider a battery replacement.


Apple is doing a good job, let them continue doing it.

Aug 2, 2023 10:28 AM in response to lkrupp

Hi Ikrup, here is my replies to your sentences :

"All mobile device manufacturers spend billions of dollars of R&D on making batteries last longer, charge faster, maximize output."


I agree but it is irrelevant to the topic.


"It is in the manufacturer’s interest to preserve battery life as long as possible, conspiracy theories about forced upgrades and planned obsolescence not withstanding." I do not agree. I've colleagues in consumer electronics industry and their jobs is to make sure planned obsolescence will work.


"I trust Apple’s ability to maintain a battery more than any “I read it on the internet” nonsense"


I also trust Apple about that, but there is always possibility of a software bug if you have enough entropy. Also about "I read it on internet" it depends which pages/documents you are reading.


"My mobile devices go on the charger very night 24/7/365. My series 4 Watch is now close to five years old and battery health is just now down to 83%. It will last until I decide to buy a new Watch before I even consider a battery replacement."


Mobile devices ( phones and watches ) doesn't affected by this issue since they can not be on charge continuously.


"Apple is doing a good job, let them continue doing it."


I also think like that but I'm just pointing out some missing functionality.

Aug 2, 2023 1:24 PM in response to lkrupp

There are persons who what their moment of fame


Then there are persons who desire a true resolution of a Technical Apple Issue


In this case, one can only infer the " Powers that Be " understand there may have been something amiss in the OPs posting that OP has some kindly referenced in an earlier posting .


What it was will remain a mystery

Aug 9, 2023 8:49 PM in response to starmansmith

Hi starman,


I'm confused about whether you find the optimized charging good or bad.


I think is mostly ok for iOS but not macOS.


In my opinion sometimes you do not want to maintain two code branches and rather unify them so these kind of problems can occur.


Did you read my post about the solution for macOS ?


By the way can you give me some technical details about your saying "The official documentation details everything you need to know from them" I rather find the explanation superficial.


During my research I drill down from top to the bottom of the charging process and I my findings points that it would be better if Apple would implement like I suggested in macOS.



Mar 1, 2024 5:32 AM in response to steve626

I have a MacBook M3 Pro Max, 16 inch, with Sonoma, which I always keep plugged in to the charger, except when I store it in the closet for a few hours maybe once a week. When I put it on optimized battery charging it took about two weeks before it started slowly going down to about 94%, then it charged up again. Then a few days later it went down more quickly to 89% I believe, for a few hours and then charged up again to 100%. I think a few days after that it went down to 80% and stayed there for quite a while, maybe a week. When I took it off charger and put it in the closet, I noticed that it charged back up to 100% after I restarted and plugged it in, in that order. Eventually it went down to 80% again. The next time it had been shut down and off charger for a few hours, I plugged it in before restarting and it stayed 80%. So I agree, it seems to work the opposite of what the initial post says. Lately however for the few days to a last week it has been staying more on 100% charge and I'm not sure why. I noticed that when new, the maximum charge capacity was 242 mAh above the design capacity, which I suppose is a good thing. After it had been on 80% charge for a while, and maybe it became accidentally disconnected from battery and went down to maybe 60% one time, the maximum charge capacity dropped about 40 mAh from its initial maximum charge capacity, but after it had been charging up to 100% for a while it went back up about 20 mAh. I suspect that the program periodically charges it to 100% for some reason, perhaps because that also helps preserve the battery. I noticed after one OS update involving downloading and installing, that the battery charged up to 100% and stayed like that for about four hours and then started going down to 80%.

Optimized battery charging issue solved ( MBP 2020, macOS Ventura )

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.