PDA

View Full Version : CPU Temperature and others




CarlosH
Feb 5, 2009, 01:19 PM
Hi. Does someone knows how to get the CPU temperature, and fans rpms information using objective-c? or c.

Thanks in advance.



HiRez
Feb 6, 2009, 02:05 AM
I have no idea how to do that, but I'm almost positive you'll have to drop out of objective-c and Cocoa to do it.

Here's an open-source fan control application where you could peek at the source code: http://www.lobotomo.com/products/FanControl/index.html.

And another one: http://www.conscius.de/~eidac/software/page5/page5.html.

One website (http://www.bresink.de/osx/216202/details.html#Support) says:

Please note that Apple does not support an official or standardized way of reading out sensor data in Mac OS X (the only exception is the Server Monitor application for the Xserve series). Moreover, there is no documentation or other technical note about the individual function of the sensors.

CarlosH
Feb 6, 2009, 02:09 PM
I have no idea how to do that, but I'm almost positive you'll have to drop out of objective-c and Cocoa to do it.

Here's an open-source fan control application where you could peek at the source code: http://www.lobotomo.com/products/FanControl/index.html.

And another one: http://www.conscius.de/~eidac/software/page5/page5.html.

One website (http://www.bresink.de/osx/216202/details.html#Support) says:

Thanks for the info, this is was I was looking for.