No description
Find a file
yifan wang 9b25cbf035 readme
2020-11-28 12:04:58 -05:00
.gitignore add licence for temp_sensor.m 2020-11-28 10:47:12 -05:00
monitor.cpp init 2020-11-28 00:15:40 -05:00
readme.md readme 2020-11-28 12:04:58 -05:00
screen_record.low.gif readme 2020-11-28 12:04:58 -05:00
screen_record.low.mp4 add licence for temp_sensor.m 2020-11-28 10:47:12 -05:00
screen_record.mp4 readme 2020-11-28 10:10:19 -05:00
screen_shot.png readme 2020-11-28 10:10:19 -05:00
temp_sensor.m add licence for temp_sensor.m 2020-11-28 10:47:12 -05:00

Temperature Sensor Monitor for Apple Silicon M1

  • temp_sensor.m: A modified version of the code for iOS sensor by freedomtan;

  • monitor.cpp: A c++ wrapper of Objective-C output for monitoring temperature in the terminal.

Usage

./temp_sensor | ./monitor

Only test with my Mac mini with M1. Please check your mac's ioreg -lfx output if needed.

References

For better names (e.g. what is PMU TP3w ?) for the sensors, please refer to

https://github.com/exelban/stats/blob/master/Modules/Sensors/values.swift

https://github.com/acidanthera/VirtualSMC/blob/master/Docs/SMCSensorKeys.txt

Here is a similar code in swift for getting sensor values using IOKit (for intel Mac)

https://github.com/exelban/stats/blob/master/Modules/Sensors/values.swift

For intel Mac, an easier way to get sensor infomation:

sudo powermetrics

Demo: screen shot and screen record

  • screen record : screen_record.mp4[1.4MB] or screen record

  • screen shot screen shot