lavoiesl / osx-cpu-temp

Outputs current CPU temperature for OSX
GNU General Public License v2.0
925 stars 156 forks source link

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

Closed bfontaine closed 10 years ago

bfontaine commented 10 years ago
$ 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
lavoiesl commented 10 years ago

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

bfontaine commented 10 years ago

Thanks!

lavoiesl commented 10 years ago

Fixed by 1412265