views:

582

answers:

1

Can anyone shed some light on how to get CPU temperature and fan speeds in osx? I understand that information is obtained from IOHWSensor in IOKit, but I'm unable to find any reliable information on how to exactly do that.

I've found an article with a sample program - http://www.booktou.com/node/148/0321278542/ch10lev1sec7.html but all I get with it is the GPU temperature. I'm sure there are cpu temperature sensors on the unibody macs, so that means i'm doing something wrong.

+1  A: 

The source code for this Prefpane that's called FanControl is avilable; it shows temperatures and fan speeds: http://www.lobotomo.com/products/FanControl/index.html

songdogtech
Thanks, I'll take a look.
Lajcik