You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(macos): read Pro/Max CPU power from raw SMC keys (IOReport reports 0)
On Pro/Max/Ultra the IOReport energy model reports 0 for CPU — verified,
powermetrics returns "CPU Power: 0 mW" with the cores pegged — so power.cpu was
Unavailable there. But the power is still in the SMC under the per-cluster keys
(PC02 + PC42 on an M3 Max, the same source Stats reads). Sum them and report a
real power.cpu tagged "P-cores (SMC)" — ~11W under load, verified live on this
M3 Max.
IOReport stays the first source so base dies (M4) are unchanged; SMC fills
Pro/Max; only a chip whose keys we haven't mapped falls back to Unavailable.
Generalized the SMC reader to read any float key, and moved the read out of
assembleApplePower (injected as a param) so the unit tests stay hardware-free.
So Apple didn't screw it — the standard energy APIs just don't surface it on
Pro/Max, but the raw SMC does. Guide 13 rewritten to match.
0 commit comments