|
|
发表于 2006-7-17 13:14:20
|
显示全部楼层
估计是你没有运行/usr/sbin/sensors-detect吧。
下面是一些参考资料
http://www.fedora-france.org/mod ... e.php?articleid=148
法语版的,我大概翻译了一下。
=+=+=+=+=+=+=+=+=+=
下面是一份关于如何监控硬件系统状态的简要介绍
1、安装必要的软件
在安装之前先来检查一下必要的软件是否都装上了:- [root@sparrow ~]$ rpm -qa | grep sensors
- lm_sensors-devel-2.9.1-3.FC4.2
- lm_sensors-2.9.1-3.FC4.2
- gnome-applet-sensors-1.4-1.fc4
复制代码 如果你发现软件包有缺失的话可以用下面的命令来安装:- [root@sparrow ~]# yum install lm_sensors lm_sensors-devel gnome-applet-sensors
复制代码 Yum应该安装四个程序:dmidecode,lm_sensors,lm_sensors-devel,gnome-applet-sensors
其中gnome-applet-sensors是可选的(也就是可以不装),它是用来在GNOME的面板上显示CPU温度的。
2、参数设置:
在root权限下使用如下命令:- # /usr/sbin/sensors-detect
复制代码 这个是传感器的探测程序,根据自己的情况回答就行了。一般选YES就可以。
直到出现摘要:- Driver `eeprom' (should be inserted):
- Detects correctly:
- * Bus `SMBus Via Pro adapter at 0400'
- Busdriver `i2c-viapro', I2C address 0x50
- Chip `SPD EEPROM' (confidence: 8)
- * Bus `SMBus Via Pro adapter at 0400'
- Busdriver `i2c-viapro', I2C address 0x51
- Chip `SPD EEPROM' (confidence: 8)
- Driver `w83781d' (may not be inserted):
- Misdetects:
- * ISA bus address 0x0290 (Busdriver `i2c-isa')
- Chip `Winbond W83697HF' (confidence: 8)
- Driver `w83627hf' (should be inserted):
- Detects correctly:
- * ISA bus address 0x0290 (Busdriver `i2c-isa')
- Chip `Winbond W83697HF Super IO Sensors' (confidence: 9)
复制代码
接下来是启动硬件监视器:
你需要修改 files/etc/modprobe.conf 和 /etc/rc.local (或者其它的启动脚本)。
在给出摘要后, sensors-detect 会给出文件 /etc/modprobe.conf 和 /etc/rc.local 的修改建议。- To make the sensors modules behave correctly, add these lines to /etc/modprobe.conf:
- #----cut here----
- # I2C module options
- alias char-major-89 i2c-dev
- #----cut here----
- To load everything that is needed, add this to some /etc/rc* file:
- #----cut here----
- # I2C adapter drivers
- modprobe i2c-viapro
- modprobe i2c-isa
- # I2C chip drivers
- modprobe eeprom
- modprobe w83627hf
- # sleep 2 # optional
复制代码 在这个例子里,把文件/etc/modprobe.conf中加入如下一行:(根据它实际显示的来进行添加)
alias char-major-89 i2c-dev
在文件/etc/rc.local中加入:
modprobe i2c-viapro
modprobe i2c-isa
modprobe eeprom
modprobe w83627hf
接下来会有一条信息- Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
复制代码 回答yes,然后重新启动就可以了。
因为要默认启动它,所以使用如下命令:- [root@sparrow ~]# chkconfig lm_sensors on
复制代码 3、测试
输入sensors,就会看到如下的输出了。- [root@sparrow ~]# sensors
- w83697hf-isa-0290
- Adapter: ISA adapter
- VCore: +1.65 V (min = +1.71 V, max = +1.89 V)
- +3.3V: +3.22 V (min = +3.14 V, max = +3.47 V)
- +5V: +4.78 V (min = +4.76 V, max = +5.24 V)
- +12V: +11.73 V (min = +10.82 V, max = +13.19 V)
- -12V: -11.95 V (min = -13.18 V, max = -10.80 V)
- -5V: -4.90 V (min = -5.25 V, max = -4.75 V)
- V5SB: +5.46 V (min = +4.76 V, max = +5.24 V)
- VBat: +3.41 V (min = +2.40 V, max = +3.60 V)
- fan1: 2777 RPM (min = 18750 RPM, div = 2)
- fan2: 1704 RPM (min = 168750 RPM, div = 4)
- temp1: +32°C (high = +2°C, hyst = +17°C) sensor = thermistor
- temp2: +58.5°C (high = +80°C, hyst = +75°C) sensor = thermistor
- alarms:
- beep_enable:
复制代码 |
|