I leave my MacBook plugged in for days at a time, so the battery stays charged to 100%. Despite Apple claims to the contrary, I believe that the battery’s capacity would be better preserved if I could keep it at an 80% state-of-charge. Is there any command or setting that would let me disable charging from the power adapter?
Here are various options, (1) being my most preferred:
(2) could be cobbled into (1) with some kind of script. Even if not possible from the Mac itself, (3) could be cobbled together with an IOT switch. But with (3), it’s unclear the lower maintained SoC would outweigh the cost of the additional cycling.
Follow the instructions on github:
# 1. Install command-line tools xcode-select --install # 2. Install Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # 3. Install Python3 brew install python3
Alternatively, you can also get python3 from python.org.
git clone --recursive https://github.com/DevNulPavel/osx_battery_charge_limit,
cd osx_battery_charge_limit, and finally
sudo python3 main.py -s 80
I think it might be better if you set it even lower, for example, 60% or 70%. Then, before you need to use it on battery for a long time,
sudo python3 main.py -r. You can automate this switching between 80% and full using
There is also a GUI version: https://github.com/godly-devotion/charge-limiter. Both work by setting the
BCLM key in SMC to a custom value.
Correct answer by Joy Jin on December 10, 2020
1 Asked on January 27, 2021 by dogweather
1 Asked on January 27, 2021 by nan-xiao
1 Asked on January 26, 2021 by ispiro
1 Asked on January 26, 2021
1 Asked on January 24, 2021 by eugenio
3 Asked on January 24, 2021 by paolo-bartoli
1 Asked on January 23, 2021 by freeviruses
6 Asked on January 21, 2021 by yannisalexiou
4 Asked on January 21, 2021 by esaruoho
0 Asked on January 20, 2021 by salient24
3 Asked on January 18, 2021
0 Asked on January 17, 2021 by orun
0 Asked on January 16, 2021 by oscar-serna
11 Asked on January 15, 2021 by dan-j
2 Asked on January 14, 2021 by kanso37
1 Asked on January 13, 2021 by ifandonlyif
0 Asked on January 12, 2021
Get help from others!