lavoiesl / osx-cpu-temp

Outputs current CPU temperature for OSX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output is "0.0°C" on a mid-2013 MacBook Air with Mavericks (10.9.1)

bfontaine opened this issue · comments

$ git clone https://github.com/lavoiesl/osx-cpu-temp.git
(…)
$ make
cc -O2 -Wall -framework IOKit -o osx-cpu-temp smc.c
$ ./osx-cpu-temp
0.0°C
$ uname -a
Darwin mbf.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

Sorry, it seems it is no longer supported by Apple to access the temperature through the SMC.

Try this instead: http://www.bresink.com/osx/216202/Docs-en/commandline.html