Search code examples
macosbattery

Is there a way to turn off battery charging programmatically in OSX?


I read some articles about battery life, for example http://www.wired.com/gadgetlab/2013/09/laptop-battery/

And I am curious, could I manage battery charging process? Is there a functions to manually stop charging in OS X? I found IOKit that helps to look to battery info, but I don't find such functions as stop charging / start charging.

But I also think that Apple engineers know their work very good and they already optimize battery charging / recharging process.


Solution

  • After some researches, I found that there is no such API, at least there is definitely no public API for managing this kind of stuff. From the other hand, in my humble opinion this is for the best. It's better leave this API for Apple engineers and programmers.