Repository navigation
v1.4.0: Intel Mac support
battery CLI 1.4.0: Intel Mac support.
- Intel Macs are now supported. On Intel Macs that have the
BCLMkey (most T2 Macs, e.g. the 2018–2020 MacBook Pro),battery maintain 80sets the Mac's own charge limit to 80% once, instead of switching charging on and off every minute. It's re-applied after a reboot or wake if needed.battery maintain stopandbattery uninstallset it back to 100%. battery charging on/off,battery statusandbattery uninstallwork on Intel. Forced discharge isn't possible on Intel, sobattery dischargeandbattery adapter offexplain that and skip it instead of failing.battery statusnow also shows whether the battery is really charging, read fromioreg, becausepmsetcan be minutes behind.- AlDente warning: battery warns you when AlDente is running, since both tools control the same setting and would fight each other.
- Universal smc: the bundled
smctool is now one universal binary for Apple Silicon and Intel (built from hholtmann/smcFanControl, GPL-2, license included), withdist/build-smc.shto rebuild it from source. - Setup checks which charging keys your Mac has, instead of assuming Apple Silicon.
- The passwordless
sudorules also allow readingBCLMand setting it to 20–100%. - Updates now come from this fork. Install and update downloads (setup,
battery update, the menu bar app) use github.com/Salcedoandrew/battery (main) instead of the original project.
Install the CLI:
curl -s https://raw.githubusercontent.com/Salcedoandrew/battery/main/setup.sh | bashThis release ships the CLI only; no menu bar app build is attached. Based on actuallymentor/battery (MIT).