Skip to content

v1.4.0: Intel Mac support

Choose a tag to compare

@Salcedoandrew Salcedoandrew released this 22 Oct 22:06

battery CLI 1.4.0: Intel Mac support.

  • Intel Macs are now supported. On Intel Macs that have the BCLM key (most T2 Macs, e.g. the 2018–2020 MacBook Pro), battery maintain 80 sets 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 stop and battery uninstall set it back to 100%.
  • battery charging on/off, battery status and battery uninstall work on Intel. Forced discharge isn't possible on Intel, so battery discharge and battery adapter off explain that and skip it instead of failing.
  • battery status now also shows whether the battery is really charging, read from ioreg, because pmset can 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 smc tool is now one universal binary for Apple Silicon and Intel (built from hholtmann/smcFanControl, GPL-2, license included), with dist/build-smc.sh to rebuild it from source.
  • Setup checks which charging keys your Mac has, instead of assuming Apple Silicon.
  • The passwordless sudo rules also allow reading BCLM and 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 | bash

This release ships the CLI only; no menu bar app build is attached. Based on actuallymentor/battery (MIT).