Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

f54da

macrumors 6502a
Dec 22, 2021
503
185
I think it's been there for quite a long time, since 10.7 at least? Fyi the battery health warning is purely a function of cycles and reported capacity measured over a given time interval. See the code at https://opensource.apple.com/source....5/pmconfigd/BatteryTimeRemaining.c.auto.html

So it's not like the OS has access to any data that coconut battery doesn't already show you, it just weights it slightly differently.

You can see the breakdown for the categories at

Code:
// no battery present? no health & confidence then!

// Permanent failure -> Poor health
// Specifically log that the battery condition is permanent failure
// The battery status should not fluctuate as battery re-learns and adjusts
// its FullChargeCapacity. This number may fluctuate in normal operation.

// Hysteresis: a battery that has previously been marked as 'declining'
// will continue to be marked as declining until capacity ratio exceeds 83%.


// Poor|Perm Failure = max-capacity is more than 1.2x of the design-capacity.
// Good = CapRatio > 80% (plus or minus the 3% hysteresis mentioned above)
// Fair = ExceedingCycles && CapRatio >= 50% && CapRatio < 80%
// Poor = ExceedingCycles && CapRatio < 50%
// Check battery = NOT ExceedingCycles && CapRatio < 80%
 
  • Like
Reactions: aurora72 and EugW
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.