If you are reading this story, you likely have an iPhone or a Mac that you would like to use for as long as possible.
Unfortunately, both iPhone and Mac devices have batteries that are not user-serviceable even though they are consumables and have limited lifespan.
According to research, lithium batteries should ideally be charged to a maximum of 80% of their capacity and discharged to a minimum of 20% to increase their lifespan.
Electric car batteries should not, generally, be charged to 100%. Long-term, this reduces the battery's longevity, and Tesla cars actually charge up to 90% by default. Mashable
So really, if you were super-keen on keeping your battery living as long as possible, you should keep its charge between 20 and 80 per cent. Wired
As a result, Apple has implemented a feature called Optimized Battery Charging available and enabled by default starting on iOS 13 and macOS Big Sur (requires “Location Services” which isn’t great for privacy).
When Apple Silicon MacBook Air or Pro is chronically plugged in (when using a dock for example), Optimized Battery Charging is supposed to pause charging when battery is charged to 80% to preserve its lifespan.
Problem is… it doesn’t. At least this is what I noticed on my M1 MacBook Air (corroborated on my girlfriend’s M1 MacBook Air) when I investigated why capacity of battery was at 89% after only 50 charging cycles.
Heads-up: to contribute to project, please share cycle count, maximum capacity and purchase date of your Mac in the comments of YouTube episode.
To find cycle count and maximum capacity, run following command (without the
$
) in “Terminal” app.To find purchase date, please go to https://checkcoverage.apple.com/, enter serial number and hit “Submit”.
Another common (and very expensive) issue with chronically plugged in Macs is swollen batteries. To be fair, this is not an Apple-specific issue but rather one related to Lithium batteries in general. That said, I believe Apple could easily do something about it such as asking users to discharge battery to 20% once in a while.
When I say easily, I mean it… here is how one can discharge battery of Apple Silicon Macs to 20% while plugged in (using a secret trick).
$
, strip out $
as this character is not part of the commandcat << "EOF"
, select all lines at once (from cat << "EOF"
to EOF
inclusively) as they are part of the same (single) commandShout-out to actuallymentor for opening my eyes (use at your own risk, may void warranty)
/usr/local/bin
directorydischarge.sh
convenience scriptdischarge.sh
executable