|
|
内容:在Linux下查看CPU、MB等的温度及保护……
软件:lm-sensors,xsensors,athcool
我用的是Debian/Linux(hiweed Desktop)
典型安装的内核需要安装i2c-2.*.**-*-***,lm-sensors-2.*.**-*-***(*为内核的版本号)支持。
比如:i2c-2.4.26-1-386,lm-sensors-2.4.26-1-386。
不知道内核具体版本号的可用apt-cache search i2c,lm-sensors列出安装包供选择。
以下就以kernel-2.4.26-1-386为例:
#apt-get install i2c-2.4.26-1-386 lm-sensors-2.4.26-1-386
#apt-get install lm-sensors,xsensors
#sensors-detect #主要用来探测主板的一些信息
你就会在结果中看到你应该加载的模块。以下是我的结果:
To make the sensors modules behave correctly, add these lines to
/etc/modules:
#----cut here----
# I2C adapter drivers
i2c-viapro
i2c-isa
# I2C chip drivers
w83781d
via686a
#----cut here----
Then, run /etc/init.d/modutils
To make the sensors modules behave correctly, add these lines to
/etc/modutils/local and run update-modules:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
按照提示做就行了,先编辑一下/etc/modules,将以下几行加入:
# I2C adapter drivers
i2c-viapro
i2c-isa
# I2C chip drivers
w83781d
via686a
编辑完后运行:/etc/init.d/modutils
接下来编辑一下/etc/modules.conf,添加以下内容:
# I2C module options
alias char-major-89 i2c-dev
运行一下update-modules更新一下模块就OK了!
现在就可以
#xsensors来查看CPU,MB,FAN……的一些参数了(当然用sensors命令也可以)
然后打开athcool就可以对CPU进行保护了
#apt-get install athcool
#athcool on
就可以了。
其它的参数自己参考一下athcool --help吧
当然你也可以在编译内核的时候选上对I2C,lm-sensors的支持,具体的模块就用
#sensors-detect 得到的结果吧!(何苦呢? :confused: )
-------------------------------------------------------------------------------
Durlon 900M
ASUS KT133 VIA 82C686
Debian/Linux (HiWeed Desktop)
sources.list =ftp://debian.ustc.edu.cn/sources.list/sources.list.testing |
|