免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 10264 | 回复: 7

lm-sensors 安装好了,却只能看cpu温度 [复制链接]

论坛徽章:
0
发表于 2009-11-08 00:08 |显示全部楼层
RHEL5安装在普通的pc上面,在windows下这个主板是能监控风扇转速、cpu温度、电压等各种信息

但是在linux下装了lm-sensors只能看到cpu温度。

不是很懂这个东西,高手看看这正常么? 要想看到风扇转速、电压一类的信息该怎么办呢


-----------------------------------------------------------------------------
[root@vmme01 /]# sensors-detect
Stopping lm_sensors: [  OK  ]
# sensors-detect revision 5729 (2009-06-02 15:51:29 +0200)
# System: To Be Filled By O.E.M. To Be Filled By O.E.M.
# Board: Onda Technology Corporation A78GT/128M
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.
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no):
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   Success!
    (driver `k8temp')
AMD K10 thermal sensors...                                  No
Intel Core family thermal sensor...                         No
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal and voltage sensors...                       No
Some Super I/O chips contain embedded 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 `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       Yes
Found `Winbond W83627DHG-P Super IO Sensors'                Success!
    (address 0xa10, driver `w83627ehf')

Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Trying family `ITE'...                                      No
Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no):
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No
Some hardware monitoring chips are 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):
Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no):
Using driver `i2c-piix4' for device 0000:00:14.0: ATI Technologies Inc SB600 SMBus
Module i2c-dev loaded successfully.

Next adapter: SMBus PIIX4 adapter at 0b00 (i2c-0)
Do you want to scan it? (yes/NO/selectively):
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `w83627ehf':
  * ISA bus, address 0xa10
    Chip `Winbond W83627DHG-P Super IO Sensors' (confidence: 9)
Driver `k8temp' (autoloaded):
  * Chip `AMD K8 thermal sensors' (confidence: 9)
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
Starting lm_sensors: loading module w83627ehf [  OK  ]
Unloading i2c-dev... OK
[root@vmme01 /]#
[root@vmme01 /]#

只能看到CPU温度:

[root@vmme01 /]# sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:   +7.0掳C                                    
Core0 Temp:  +11.0掳C                                    
Core1 Temp:  +10.0掳C                                    
Core1 Temp:   +7.0掳C                                    
[root@vmme01 /]#
[root@vmme01 /]# lsmod | grep i2c
i2c_isa                 9153  0
i2c_ec                  9025  1 sbs
i2c_piix4              12237  0
i2c_core               23745  3 i2c_isa,i2c_ec,i2c_piix4
[root@vmme01 /]#
[root@vmme01 /]# /etc/init.d/lm_sensors restart
Stopping lm_sensors: [  OK  ]
Starting lm_sensors: loading module w83627ehf [  OK  ]
[root@vmme01 /]#

还是只能看到CPU温度:

[root@vmme01 /]# sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:   +7.0掳C                                    
Core0 Temp:  +10.0掳C                                    
Core1 Temp:  +10.0掳C                                    
Core1 Temp:   +7.0掳C

论坛徽章:
0
发表于 2009-11-08 12:16 |显示全部楼层
试试:
lsmod|grep w83627ehf
ls -l /sys/class/hwmon/

论坛徽章:
0
发表于 2009-11-08 12:56 |显示全部楼层
原帖由 donji 于 2009-11-8 12:16 发表
试试:
lsmod|grep w83627ehf
ls -l /sys/class/hwmon/


空的,说明什么问题?

[root@vmme01 ~]# lsmod|grep w83627ehf
[root@vmme01 ~]#
[root@vmme01 ~]# ls -l /sys/class/hwmon/
total 0
drwxr-xr-x 2 root root 0 Nov  8 12:52 hwmon0
[root@vmme01 ~]#
[root@vmme01 ~]#


[root@vmme01 /]# modprobe  -l |grep w83627ehf
/lib/modules/2.6.18-128.el5PAE/kernel/drivers/hwmon/w83627ehf.ko
[root@vmme01 /]# modprobe  w83627ehf
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18-128.el5PAE/kernel/drivers/hwmon/w83627ehf.ko): No such device  ?
[root@vmme01 /]#

更多信息
[root@vmme01 /]# modinfo w83627ehf
filename:       /lib/modules/2.6.18-128.el5PAE/kernel/drivers/hwmon/w83627ehf.ko
license:        GPL
description:    W83627EHF driver
author:         Jean Delvare <khali@linux-fr.org>
srcversion:     BA6470642994D662B0F71F7
depends:        i2c-isa,hwmon,i2c-core
vermagic:       2.6.18-128.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
module_sig:     883f3504949344531b497468cdd12cf112172709e3fa7d4795b51c0256bd48b5fde444d7ceca0579c0a0cad7470f8d23216b0d1d0c25d9fbf901c1f58da

[ 本帖最后由 不进一环 于 2009-11-8 13:37 编辑 ]

论坛徽章:
0
发表于 2009-11-08 13:58 |显示全部楼层

Winbond

W83792D/G
yes w83792d I2C 2.6.14 (2005-06-23) Contributed by Winbond. Version for older 2.6 kernels is available
here
Winbond (now
Nuvoton
)

W83627DHG
yes w83627ehf LPC 2.6.21 Support added by David Hubbard.
Winbond (now
Nuvoton
)
W83627DHG-P yes w83627ehf LPC 2.6.31 Essentially compatible with the W83627DHG.
Winbond (now
Nuvoton
)

W83627EHF, W83627EHG
yes w83627ehf LPC 2.6.13 Fan control support available since kernel 2.6.19. User-space support available in lm_sensors 2.9.1.


看了一下,主板芯片是  W83627DHG-P ,从2.6.31 开始支持

操作系统版本是2.6.18
[root@vmme01 hwmon]# uname -a
Linux vmme01 2.6.18-128.el5PAE #1 SMP Wed Dec 17 12:02:33 EST 2008 i686 athlon i386 GNU/Linux


打算用高版本的源文件拿过来编译试试,就像这个帖子  http://linux.chinaunix.net/bbs/thread-887837-1-1.html

但是哪里去找源文件叻?

论坛徽章:
0
发表于 2009-11-08 20:29 |显示全部楼层
唉,不搞了,这东西太恶心

下载了2.6.31.5,在系统上升级内核,没报错,但是无法正常启动系统

单独把编译以后生成的文件w83627ehf.ko替换老的文件,报错

[root@vmme01 hwmon]# modprobe -v -i  w83627ehf
insmod /lib/modules/2.6.18-128.el5PAE/kernel/drivers/hwmon/w83627ehf.ko
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18-128.el5PAE/kernel/drivers/hwmon/w83627ehf.ko): Invalid module format

这东西,怎么这么恶心呢

论坛徽章:
0
发表于 2009-11-09 09:21 |显示全部楼层
其实你已经成功找到问题源头和解决方法,应该高兴。等你对升级kernel熟悉以后,这个问题自然就解决了。:wink:

论坛徽章:
0
发表于 2009-11-09 11:08 |显示全部楼层
原帖由 donji 于 2009-11-9 09:21 发表
其实你已经成功找到问题源头和解决方法,应该高兴。等你对升级kernel熟悉以后,这个问题自然就解决了。:wink:


高手,给点指导啊

我只是一个用户而已

论坛徽章:
0
发表于 2009-11-16 21:14 |显示全部楼层
原帖由 不进一环 于 2009-11-8 20:29 发表
唉,不搞了,这东西太恶心

下载了2.6.31.5,在系统上升级内核,没报错,但是无法正常启动系统

单独把编译以后生成的文件w83627ehf.ko替换老的文件,报错

[root@vmme01 hwmon]# modprobe -v -i  w83627 ...

升级对应的内核
/lib/modules/2.6.18-128.el5PAE/kernel/drivers/hwmon/w83627ehf.ko 这个是说缺少对应的模块
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP