13

I wanted to monitor handy temperature data like I did dozen times on Linux machines. No problem! I found a beautiful one-liner:

sudo powermetrics --samplers smc | grep -i "CPU die temperature"

and immediately have got the error powermetrics: unrecognized sampler: smc

Then I tried a dozen of other suggestions, but none of them work well with Apple Silicon.

It's a very strange decision for me to get rid of those sensors; definitely a classic Apple-way. Also iStats, TG Pro, and other GUI tools work perfectly fine, so something there definitely exists.

Also, I wanted to add temperature sensors in htop, but I don't think it's possible.

2

1 Answer 1

13

Temperature is not mapped to the power metrics command line app on Apple Silicon. What is easy to see thermal pressure which aggregates temperature across the 15 to 42 cores present on M1 integrated package SIP/SOC.

sudo powermetrics -s thermal

You can also monitor CPU / GPU frequency if you need to know relative activity levels.

sudo powermetrics -s cpu_power,gpu_power
3
  • suspicious..., why would Apple do that.... maybe because their M2 MacBook Air without a fan is constantly overheating? ...
    – Adler
    Sep 21, 2022 at 18:31
  • I’ve loved the original MacBook “one” with no blower. Did solid work on it and my M2 Air is the best Mac I’ve owned. Have you had Apple run diagnostics on yours @Adler we’re seeing them to be well behaved at work and more reliable than the ones with blowers TBH.
    – bmike
    Oct 8, 2022 at 1:34
  • @Adler - some additional background on updated thermal pressure / thermal state change APIs: developer.apple.com/library/archive/documentation/Performance/…
    – jefflunt
    Oct 27 at 15:22

You must log in to answer this question.

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