59

A chemist told me that a battery should be charged to and used between 30-70%, and its very bad for battery life to completely load or unload it.

He uses a utility program that always keeps the charge of his Lenovo laptop between 30% and 70%.

How can I achieve the same effect using Mac OS X?

Update (7 Years later): Its finally here, Apple introduces 'introduces battery health management': https://support.apple.com/en-gb/HT211094

lhlmgr
  • 1,014
  • 1
  • 10
  • 9

8 Answers8

23

This is now supported through a tool that edits charge level in SMC:

https://github.com/davidwernhart/AlDente

I have it installed on my Macbook 12 (2016 model) it's sitting at 70% plugged in.

19

I have used a piece of receipt from shop. It is thin enough to fit. The goal is to close middle connector. It is possible to close also 2 connectors at the left or at the right. For example close 3rd, 4th and 5th connectors, but leave free 1st and 2nd or conversely.

enter image description here enter image description here

enter image description here

9

Based on this article:

  • Use partial-discharge cycles
  • Avoid charging to 100% capacity: why don't you unplug the charger now and then? Or try that software : http://fruitjuiceapp.com/ (Note: I haven't tried it myself...)
  • Limit the battery temperature: make sure your laptop is well vented, and do not forget your laptop in your car during the summer.
  • Do not charge your battery in a cold environment (<0deg Celcius). The charger circuitry is supposed to monitor the temperature but just in case...
sdive
  • 669
8

I didn't find a pure Software solution, so I've set up a quick hack based on the Belkin WeMo Switch and a Node.js app. The WeMo is a power outlet that can be switched on and off via Wifi. So you can plug your laptop charger on the WeMo, and a script or an app running on your laptop monitor the battery and switch the outlet on and off accordingly.

Edit: more explanations from the original blog post (the link is dead.):

My inspiration came from an Article on Wired, explaining that to improve your battery life, you must keep it charged in the 40% - 80% range.

In fact I really doubt the Wired article really make sense. "Not charging the battery up to 100% increase the discharge cycles", ok it's probably true. If the laptop is almost always plugged in and the battery is at 100%, you can expect 300-500 cycles, but your are only "using" a cycle once in a while. If the laptop is permanently cycling between 40-80% you can get 1200-2000 cycles, ok it's a lot more, but you are now using 10 cycles a day.

I'm not chemist and I don't know what's really going on in the battery. What happens if instead of doing 40%-80% cycles, we do tens of thoushands 79%-80% cycles ? What percentage variation is considered a cycle ? Does 0%-80% cycles are better than 20%-100% ? As always the evil is probably in the details, and all batteries, even among the LiPo familly have different specifications.

I think it would be more useful to just pop up a notification if the battery get lower than x%. Just to remind you that if you are close from a power source that would worth it to plug your laptop.

3

Unlike a Thinkpad, there is no way to control the firmware on a Mac. The only way I have found to stop the charge while running off the line power is to insert a thin piece of paper between the plug and the laptop. If you block the middle conductor, the laptop will be unable to identify the power supply, and will therefore refuse to charge the battery, which is the desired result.

Terran
  • 31
2

[Removed part in which I quoted an answer in this same question by error, left for the comments]

You need to put a thin tape in the middle connector of your magsafe to avoid the connector to be identified, but still uses A/C so your battery stays at the same level (actually it loses ~2%/day, but still much healthier for the mac)

1

Based on this article, macOS can limit battery capacity used by default. Make sure the Manage battery longevity setting is on.

1

Found a free cli tool, https://github.com/actuallymentor/battery, works like a charm, you need to type battery charging on before you unplug it and you need to type battery charging off before you plug it in. It works on m1 macs not sure about Intel macs.

anarchy
  • 257