timdev / osx-cpu-temp

Outputs current CPU temperature for OSX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSX CPU Temp

Outputs current CPU temperature for OSX.

Usage

Compiling

make

Running

./osx-cpu-temp

or

sudo make install # installs to /usr/local/bin
osx-cpu-temp

Using clib

clib install lavoiesl/osx-cpu-temp

Output example

61.8 °C

Options

  • -h Print command line options.
  • -C Output temperature in Celsius (default).
  • -F Output temperature in Fahrenheit.
  • -c [key] Print CPU temperature, optionally providing the SMC key.
  • -g [key] Print GPU temperature, optionally providing the SMC key.
  • -f Output fan speed.
  • -t key Print temperature value of given SMC key.
  • -r key Print raw value of given SMC key.
  • -a Print ALL available SMC keys (without description!).

Explore keys

Print the raw value of any key, if it exists

osx-cpu-temp -r '#KEY' # number of keys
osx-cpu-temp -r TC0P # CPU proximity sensor

Maintainer

Sébastien Lavoie github@lavoie.sl

Source

Apple System Management Control (SMC) Tool Copyright (C) 2006

Inspiration

About

Outputs current CPU temperature for OSX

License:GNU General Public License v2.0


Languages

Language:C 91.9%Language:Shell 4.9%Language:Makefile 2.2%Language:HCL 1.0%