Skip to content

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)

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy