LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1065|回复: 2

FC5配置lm_sensors奇怪问题

[复制链接]
发表于 2007-7-19 18:31:25 | 显示全部楼层 |阅读模式
大家好,我是在笔记本上配置的lm_sensors,版本号如下

[root@tinging ~]# rpm -aq |grep sensors
lm_sensors-devel-2.10.3-49.fc5
libsensors3-2.10.3-49.fc5
lm_sensors-2.10.3-49.fc5
========================================================================

安装完毕后我启动sensors,由于没有去搜索设备,接下来使用sensors-detect来查找设备,找到相关设备
[root@tinging ~]# sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[root@tinging ~]# sensors-detect
# sensors-detect revision 4348 (2007-03-18 02:45:21 -0700)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel 82801FB ICH6

We will now try to load each adapter module in turn.
Module `i2c-i801' already loaded.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: SMBus I801 adapter at 20a0 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'... No
Client found at address 0x50
Handled by driver `eeprom' (already loaded), chip type `eeprom'
Client found at address 0x51
Handled by driver `eeprom' (already loaded), chip type `eeprom'

Next adapter: NVIDIA I2C Device (i2c-3)
Do you want to scan it? (YES/no/selectively):
Adapter cannot be probed, skipping.

Next adapter: NVIDIA I2C Device (i2c-2)
Do you want to scan it? (YES/no/selectively):
Adapter cannot be probed, skipping.

Next adapter: NVIDIA I2C Device (i2c-1)
Do you want to scan it? (YES/no/selectively):
Adapter cannot be probed, skipping.

Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no):
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM78-J' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
Probing for `Silicon Integrated Systems SIS5595'... No
Probing for `VIA VT82C686 Integrated Sensors'... No
Probing for `VIA VT8231 Integrated Sensors'... No
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No

Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `ITE'... No
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'... No
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No

Some CPUs or memory controllers may also contain embedded sensors.
Do you want to scan for them? (YES/no):
AMD K8 thermal sensors... No
Intel Core family thermal sensor... No
Intel AMB FB-DIMM thermal sensor... No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `SMBus I801 adapter at 20a0'
Busdriver `i2c-i801', I2C address 0x50
Chip `eeprom' (confidence: 6)
* Bus `SMBus I801 adapter at 20a0'
Busdriver `i2c-i801', I2C address 0x51
Chip `eeprom' (confidence: 6)

EEPROMs are *NOT* sensors! They are data storage chips commonly
found on memory modules (SPD), in monitors (EDID), or in some
laptops, for example.

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To make the sensors modules behave correctly, add these lines to
/etc/modules.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-i801
# Chip drivers
modprobe eeprom
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
========================================================================

安装完毕了,我手动添加了上面相应的设备;查看加载的设备,都在里面了。
[root@tinging ~]# lsmod |grep i2c
i2c_i801 8013 0
i2c_dev 7749 0
i2c_ec 5185 1 sbs
i2c_core 21057 5 eeprom,i2c_i801,i2c_dev,i2c_ec,nvidia
========================================================================

先启动lm_sensors服务,出错了不能加载两个模块
[root@tinging ~]# /etc/init.d/lm_sensors start
Starting lm_sensors: loading module i2c-i801 eeprom No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[FAILED]
========================================================================

接下来我使用sensors命令来查看相关信息,没办法工作。
[root@tinging ~]# sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
========================================================================

于时,我想将那两个模块删除掉,再试试。
[root@tinging ~]# modprobe -r eeprom
[root@tinging ~]# modprobe -r i2c_i801

删除了,再查看一下
[root@tinging ~]# lsmod |grep i2c
i2c_dev 7749 0
i2c_ec 5185 1 sbs
i2c_core 21057 3 i2c_dev,i2c_ec,nvidia
========================================================================

再启动一下看看,启动失败
[root@tinging ~]# /etc/init.d/lm_sensors start
Starting lm_sensors: loading module i2c-i801 eeprom No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[FAILED]
[root@tinging ~]# lsmod |grep i2c
i2c_i801 8013 0
i2c_dev 7749 0
i2c_ec 5185 1 sbs
i2c_core 21057 5 eeprom,i2c_i801,i2c_dev,i2c_ec,nvidia
========================================================================

再次发现这两个模块又加载了......
[root@tinging ~]# lsmod |grep i2c
i2c_i801 8013 0
i2c_dev 7749 0
i2c_ec 5185 1 sbs
i2c_core 21057 5 eeprom,i2c_i801,i2c_dev,i2c_ec,nvidia
========================================================================


************************************************************************************************************
PS:同样的方法,上同对另一台安装FC5的台式机配置sensors成功。
[root@cacti ~]# sensors
w83627ehf-isa-0290
Adapter: ISA adapter
Case Fan: 15340 RPM (min = 0 RPM, div = 8)
CPU Fan: 5625 RPM (min = 2909 RPM, div = 8)
Aux Fan: 0 RPM (min = 958 RPM, div = 128)
fan4: 0 RPM (min = 10546 RPM, div = 128)
Sys Temp: +24��C (high = -29��C, hyst = +53��C)
CPU Temp: +23.0��C (high = +80.0��C, hyst = +75.0��C)
AUX Temp: +47.0��C (high = +80.0��C, hyst = +75.0��C)
========================================================================

我不知道应该怎么做了。
发表于 2007-7-19 23:18:55 | 显示全部楼层
两台机器硬件不同吧...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-20 08:24:24 | 显示全部楼层
Post by lpw
两台机器硬件不同吧...

你说的对,两 台机器硬件不同;而我是各自配置各自的参数。

而没有将配置好的计算机的配置拿到新的机器上用,还是谢谢你先!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表