2

There is a similar question here, but what I want is make macOS ignore the power adapter totally not just stop charging (which means the operations on mac will drain the battery).

Aldente has a functionality called discharge, but it stops working on latest macOS Ventura. After some digging I found that the keys of SMC driver on Ventura are completely (almost) different from that on Monterey. Not sure if it is this making the functionality unavailable.

0

1 Answer 1

4
+25

No, as of macOS 13 there is no Apple supported means to ignore the power adapter and stop charging.

Please tell Apple; only Apple can reliably offer this behaviour.

Private or Unintended

Unfortunately, Apple does not actively enable or support the behaviour you want. Any application or tool that provides this functionality is either using Apple's private System Programming Interface (SPI) or unintended behaviour within macOS's IOKit.

This explains why changes in macOS can affect third party tools that rely on undocumented or unintended functionality.

IOPMLib: Public Interface

The public Application Programming Interface (API) for power management is IOPMLib, which is part of IOKit:

IOKit

Access hardware devices and drivers from your apps and services.

IOPMLib.h

IOPMLib provides access to common power management facilities, like initiating system sleep, getting current idle timer values, registering for sleep/wake notifications, and preventing system sleep.

1
  • So maybe Aldente is using some private API?
    – Alaneuler
    Commented Nov 13, 2022 at 12:46

Not the answer you're looking for? Browse other questions tagged .