Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

js4jiang5

macrumors newbie
Original poster
Nov 21, 2024
1
0
BatteryOptimizer_for_MAC is a simple CLI tool. Its function is just like AlDente - set battery charge limit and schedule battery calibration for macbooks, only that this tool is free and open source.

BatteryOptimizer_for_MAC is a light-weighted tool. It provides the functions of AlDente and coconutBattery, but the memory usage is only 1/20 of AlDente, or 1/30 of coconutBattery.

BatteryOptimizer_for_MAC is a fork of battery, based on which many new features and enhancements have been added, including
  • support both Apple and Intel CPU Macs (See Note below)
  • sail mode, allowing the battery to sail from maintain percentage to sail target without charging
  • scheduled calibration, starting automatic calibration on specified days per month (at most four days), or specified one day every 1-3 month, or specified weekday every 1-12 weeks
  • charging limiter still works even when macbook sleep or shutdown
    • Intel CPU: limit is at maintain percentage
    • Apple CPU: limit is fixed at 80%
  • add battery daily log and daily notification
  • send notifications when each step of calibration is completed
  • notify user to open macbook lid before calibration is started to avoid entering sleep due to discharge process, and start calibration immediately when macbook lid is open
  • notify user when new version is available to update
Note: For Intel Macs, charge limit works for all models, but discharge and calibrate only works for model 2014 or earlier. I am still searching discharge method for the other Intel Models.​
Snapshots
  • show battery status
    VHx5ytq.jpg


  • set battery charge upper limit 85% and lower limit 70%
    mWhaVjb.jpg


  • battery calibrate
    Pj87VPN.jpg


  • battery calibrate lid not open notification
    G6R5EnH.jpg%22


  • battery calibrate start notification
    J2L99Uz.jpg

  • battery calibrate end notification
    FLvcO3h.jpg


  • calibration schedule on Day 12 28 at 21:30
    yl7HxIx.jpg


  • calibration schedule on WED every 2 weeks at 10:50
    yXYeBB1.jpg
  • daily notification
    UvAivHE.jpg


  • show daily log
    ETfjely.jpg


  • new version available notification
    nQttVUL.jpg


  • show changelog before update to the latest version
    hlvnmMW.jpg

Installation and Usage

For installation and usage details, please refer to my Github BatteryOptimizer_for_MAC.​

Your support

This tool is free, but if you want to support me to make it better, you may buy me a coffee ☕ 😀.​
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.