Now I have low-level Access to macOS
This is just theory, but realistically I’m only a couple of hours away from making this true.
Upon extensive research and code review on various online posts and OSS, I was able to find that:
-
Apple introduced a detailed sub-dictionary within the
AppleSmartBatterynode on Apple Silicon architectures (M1 and beyond), known asPowerTelemetryData. -
The
PowerTelemetryDatastructure yields three critical metrics that must be utilized by my app:a)
SystemPowerIn: This represents the total DC power entering the machine’s logic board directly from the external AC adapter, “prior to any internal routing”.b)
BatteryPower: This metric indicates the precise amount of power actively being routed into the battery for charging, or being pulled from the battery for discharging. (However many projects instead preferred manual calculation using our standardVoltage * InstantAmperageformula, likely for better accuracy?).c)
SystemLoad: This defines the total localized power being consumed internally by the logic board, the System-on-Chip, the display, and all active peripherals.
Stay tuned, I’m finally gonna play with these metrics!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.