Skip to content

SMC sensor keys for Apple M3 and M3 Pro/Max #1703

Description

@tycho

Describe the bug
I am sure this will be a fun one to figure out, but it would be nice if Stats could recognize and handle the SMC sensors for the Apple M3 (and Pro/Max) chips. The keys are definitely different from M1 and M2. Here's what Stats currently sees (during a CPU-intensive build, so the sensors look a bit alarming):

Screenshot 2023-11-27 at 3 42 19 AM

It's pretty clear it's not reading the right keys, particularly for CPU P-core/E-core temperature sensors and the GPU.

I've written a little script to try and identify the right sensors, but there is a lot of data making it difficult to correlate. Some of the SMC values are likely not instantaneous values but rather aggregates over certain time windows (e.g. moving averages or similar).

Here's the work-in-progress script. I've added some comments to it to explain the design. I also have a few guesses in there for what some of the keys correlate to.

https://gist.github.com/tycho/73fb64e7ba0b259923a92a4bacea9e78

If you have any tips on identifying the right sensors for temperature, power, etc, I'd appreciate suggestions.

Details:

  • Device: MacBook Pro late 2023, Apple M3 Max
  • macOS: 14.1.1
  • Application version: 2.9.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions