Skip to content

v0.1.20

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:01

Highlights

  • CPU, DRAM and ANE power work again on macOS 27. Since macOS 27 the kernel recomputes the IOReport Energy Model counters only for samplers holding a private entitlement (powermetrics, the powerlog daemons). Everyone else — root included — read frozen values: 0.000 W for CPU, every core, DRAM, ANE and fabric, then one catch-up jump worth kilowatts. macpow now reads the same energy accumulators from the AppleCLPC driver, which are not gated. No sudo, no powermetrics. This affects every Apple Silicon Mac on macOS 27, not a particular chip.
  • Per-core power is back, as an estimate. No exact per-core source exists without the entitlement, so each cluster's power is divided between its cores by V²·f-weighted DVFS residency. Estimated rows are marked ≈.
  • Correct core tiers on M5 Pro/Max. The tree now shows P-Cores and S-Cores (Performance / Super), and per-core utilization is attached to the right cores.

Fixes

#20 — CPU/DRAM/ANE power reads 0.000 W on macOS 27

  • CPU total, DRAM, ANE and the SoC total come from AppleCLPC energy counters. Cluster totals are exact on M5 Pro/Max (CLPC per-cluster counter); on other chips the CPU total is divided using the PMP power histograms or DVFS residency and marked ≈.
  • At startup macpow checks which CLPC reports the driver really delivers and falls back to the PMP histograms where they are missing. Rails with no live source are shown as n/a instead of 0 W.
  • GPU SRAM, ISP, media and display-controller power have no counter of their own on macOS 27; they are included in a combined Fabric + other SoC row so the SoC total stays exact.
  • Catch-up jumps are never shown as power and no longer inflate cumulative Wh.
  • Checked on an M5 Max (macOS 27.0.1) against the exact energies an entitled sampler publishes, over 5–9 minute windows: CPU, cluster totals, DRAM and fabric within 0.1–1.4 %; per-core power within ±5 % for most loaded cores, one core of the Super cluster 12–14 % high.

Thanks @apurvamarya for the report and the stall analysis (#21), @yuchenzhu-research for the investigation in #22, and @ItsEmilyJpg for testing on an M4 Pro.

#20 — wrong cluster labels and per-core utilization on M5 Pro/Max

Tier labels now come from hw.perflevelN.name. Per-core utilization is matched to cores through the device-tree topology instead of assuming the top tier comes first in logical CPU order, which it does not on M5 Pro/Max.

#19 — Bluetooth accessory names rendered with �

pmset can print accessory names in Mac OS Roman; they are now decoded correctly (Someone’s Magic Keyboard). Thanks @yuchenzhu-research (#18). No new dependency: the decoding uses a built-in table.

#15 — USB power draw of charging-only devices

A device that only draws power, without a USB data connection, is invisible to device enumeration. Ports that source power but match no enumerated device now get their own Port N (unidentified) row, and a port no longer flickers to 0 W while USB-PD renegotiates. Thanks @randyoo for the report.

--json

Field names are unchanged. New fields:

  • cpu_tier_names — marketing names of the two tiers, e.g. ["Performance", "Super"]; cpu_high_tier — which logical CPUs belong to the top tier.
  • Flags inside soc, present only when true: energy_model_gated, cores_estimated, clusters_estimated, cpu_estimated, cpu_unavailable, rails_merged, rails_unavailable.

Internal

  • CLPC report IDs live in src/clpc.rs; the scalar IDs come from the macmon project.
  • Fixed the clippy errors raised by current stable Rust.
  • README table formatting (#16, thanks @ShakyPizza).

Compatibility

No breaking changes. On macOS 26 and earlier the Energy Model is still live and is used exactly as before.

The macOS 27 path was verified on an M5 Max only. If CPU power looks wrong on another chip, please open an issue with macpow --dump and a few seconds of macpow --json.

Full Changelog: v0.1.19...v0.1.20