Protect battery health by limiting the charging capacity.
This extension supports both bclm
and batt
command-line tools to limit battery charging on Mac computers:
bclm
: For macOS versions before macOS 15 (Sequoia), using the System Management Controller (SMC)batt
: For macOS 15+ (Sequoia) and newer, using the modern battery control APIThe purpose of limiting the battery's max charge is to prolong battery health and to prevent damage to the battery. Various sources show that the optimal charge range for operation of lithium-ion batteries is between 40% and 80%, commonly referred to as the 40-80 rule. This project is especially helpful to people who leave their Macs on the charger all day, every day.
Battery Optimizer
command will limit charging above 80%.Reset Battery Optimizer
command will allow charging to continue to 100%.Get Battery Threshold
command will check the current battery charging limit.
Battery Optimizer Menu Bar
shows the current battery charging threshold and enable/disable the Battery Optimizer in the menu bar.Note that in order to write values, both tools require root/administrator privileges. This is not required for reading values.
To use this extension, you'll need to install either BCLM or BATT based on your macOS version:
brew install bclm
or visit https://github.com/zackelia/bclmbrew install batt
or visit https://github.com/charlie0129/batt for installation instructions