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):
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
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):
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: