Menu

1 / 3

Reading Apple Silicon temperatures, watts and clocks without sudo

DEV Community: swift·Zernonia·7 days ago
#Ulm1cxFu
#devtoswift#devto#dev#power#energy
Long article (2029 words) — no AI summary yet.
Reading 0:00
15s threshold

Run powermetrics on a Mac and the first thing it tells you is powermetrics must be invoked as the superuser . For a one-off check that's fine. For a menu bar app that wants to show CPU temperature and package watts all day, asking for root is a non-starter: no one should hand a system monitor a privileged daemon just to read a thermometer.

While building Stat Space I wanted temperatures, power per rail, CPU and GPU clocks, and fan speeds, all as a normal user process. It's possible. Here's what each number actually comes from, how I load the private parts safely, and the things that differ between M1 and M4 that will bite you.

Three sources, two of them private

What Where it comes from Private?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.