如何在OS X上获得CPU温度和风扇速度? [英] How to get CPU temperature and fan speed on OS X?
问题描述
如何在OS X中获得CPU温度和风扇速度?
How do I get CPU temperature and fan speeds in OS X?
我了解到信息是从IOKit
中的IOHWSensor
获取的,但是我无法找到有关如何准确执行此操作的任何可靠信息.
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.
我找到了带有示例程序的文章- http://www.booktou.com/node/148/0321278542/ch10lev1sec7.html ,但我得到的只是GPU温度.我确定单机Mac上有CPU温度传感器,所以这意味着我做错了事.
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.
推荐答案
该Prefpane的名为FanControl的源代码可使用;它显示温度和风扇速度: http://www.lobotomo.com/products/FanControl/index.html
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
这篇关于如何在OS X上获得CPU温度和风扇速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!