Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

narugit/smctemp

Repository files navigation

smctemp

Print CPU and GPU temperatures on macOS.

It works on following macs.

  • arm64 (M4 mac)
  • arm64 (M3 mac)
  • arm64 (M2 mac)
  • arm64 (M1 mac)
  • x86_64

Acknowledgements

I took the code from hholtmann/smcFanControl/smc-command and modified it to specialize in temperature acquisition. Some of the sensor values were obtained from the exelban/stats project.

Installation

Brew (Recommended)

brew tap narugit/tap
brew install narugit/tap/smctemp

Manual

git clone https://github.com/narugit/smctemp
cd smctemp
sudo make install

Usage

$ smctemp -h
Check Temperature by using Apple System Management Control (Smc) tool
Usage:
./smctemp [options]
-c : list CPU temperatures (Celsius)
-g : list GPU temperatures (Celsius)
-h : help
-i : set interval in milliseconds (e.g. -i25, valid range is 20-1000, default: 1000)
-l : list all keys and values
-f : fail-soft mode. Shows last valid value if current sensor read fails.
-v : version
-n : tries to query the temperature sensors for n times (e.g. -n3) until a valid value is returned

$ smctemp -c
64.2

$ smctemp -g
36.2

Note for M2 Mac Users

On M2 Macs, sensor values may be unstable as described in the following issue:

For M2 Macs, using the -n, -i, and -f options can help obtain more stable sensor values. Try tuning these options to get better results.

The recommended settings are -i25 -n180 -f (See also https://github.com/narugit/smctemp/pull/34/files#r1721025001)

About

CLI tool to print CPU and GPU temperature of macOS

Topics

Resources

Readme

License

GPL-2.0 license

Stars

Watchers

Forks

Packages

Contributors