Check the battery's health
Cycles, maximum capacity and condition.
- System Settings → Battery → Battery Health (the "i" icon).
- Details on the command line:
system_profiler SPPowerDataType | grep -E "Cycle Count|Condition|Maximum Capacity"
- A "maximum capacity" below 80 % or the "Service Recommended" condition means a replacement should be considered.
- Turn on "Optimised Charging" to slow ageing.