2011-09-06

lm sensorを使ってみる


CentOSにGTX460とTeslaC2070を搭載しているが2台の間隔が2mmぐらいこれは温度が気になる!!ってことで温度情報を得たい.
いろいろ調べてみよう!!っと思ったが一番上にあったlm sensorを使ってみることにした



参考サイト:lm_sensors: マザーボード上の温度センサーなどから情報を取得 - 玉虫色に染まれ!
参考サイトを見ながら作業

インストール
yumを使ってインストール
# yum install lm_sensors

自動検出
/usr/local/sbin/内sensors-detectがあるこれで自動検出ができるらしい
では早速
[user@localhost ~]$ sudo /usr/local/sbin/sensors-detect
lm_sensors を停止中:                                       [  OK  ]
# sensors-detect revision 5984 (2011-07-10 21:22:53 +0200)
# Board: Intel Corporation DX58SO2
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...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  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/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
Found `Nuvoton W83677HG-I (NCT6771F/NCT6772F/NCT6775F) Super IO Sensors'Success!
    (address 0x880, driver `w83627ehf')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/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-i801' for device 0000:00:1f.3: Intel ICH10
Module i2c-dev loaded successfully.
Next adapter: SMBus I801 adapter at 6000 (i2c-0)
Do you want to scan it? (yes/NO/selectively):
Next adapter: NVIDIA i2c adapter 0 at 3:00.0 (i2c-1)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Probing for `EDID EEPROM'...                                Yes
    (confidence 8, not a hardware monitoring chip)
Client found at address 0x51
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Client found at address 0x52
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Client found at address 0x53
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Next adapter: NVIDIA i2c adapter 1 at 3:00.0 (i2c-2)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 2 at 3:00.0 (i2c-3)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 5 at 3:00.0 (i2c-4)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 6 at 3:00.0 (i2c-5)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 7 at 3:00.0 (i2c-6)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 8 at 3:00.0 (i2c-7)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 9 at 3:00.0 (i2c-8)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 0 at 4:00.0 (i2c-9)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 1 at 4:00.0 (i2c-10)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 2 at 4:00.0 (i2c-11)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x2e
Probing for `Myson MTP008'...                               No
Probing for `National Semiconductor LM78'...                No
Probing for `National Semiconductor LM79'...                No
Probing for `National Semiconductor LM80'...                No
Probing for `National Semiconductor LM85'...                No
Probing for `National Semiconductor LM96000 or PC8374L'...  No
Probing for `Analog Devices ADM1027'...                     No
Probing for `Analog Devices ADT7460 or ADT7463'...          No
Probing for `SMSC EMC6D100 or EMC6D101'...                  No
Probing for `SMSC EMC6D102'...                              No
Probing for `SMSC EMC6D103'...                              No
Probing for `SMSC EMC6D103S or EMC2300'...                  No
Probing for `SMSC EMC6W201'...                              No
Probing for `Winbond WPCD377I'...                           No
Probing for `Analog Devices ADT7467 or ADT7468'...          No
Probing for `Analog Devices ADT7470'...                     No
Probing for `Analog Devices ADT7473'...                     Success!
    (confidence 5, driver `adt7473')
Probing for `Analog Devices ADT7475'...                     No
Probing for `Analog Devices ADT7476'...                     No
Probing for `Analog Devices ADT7490'...                     No
Probing for `Andigilog aSC7611'...                          No
Probing for `Andigilog aSC7621'...                          No
Probing for `National Semiconductor LM87'...                No
Probing for `Analog Devices ADM1024'...                     No
Probing for `National Semiconductor LM93'...                No
Probing for `National Semiconductor LM94'...                No
Probing for `Winbond W83781D'...                            No
Probing for `Winbond W83782D'...                            No
Probing for `Winbond W83791D'...                            No
Probing for `Winbond W83792D'...                            No
Probing for `Winbond W83793R/G'...                          No
Probing for `Nuvoton W83795G/ADG'...                        No
Probing for `Winbond W83627HF'...                           No
Probing for `Winbond W83627EHF'...                          No
Probing for `Winbond W83627DHG/W83667HG/W83677HG'...        No
Probing for `Asus AS99127F (rev.1)'...                      No
Probing for `Asus AS99127F (rev.2)'...                      No
Probing for `Asus ASB100 Bach'...                           No
Probing for `Winbond W83L786NR/NG/R/G'...                   No
Probing for `Winbond W83L785TS-S'...                        No
Probing for `Analog Devices ADM9240'...                     No
Probing for `Dallas Semiconductor DS1780'...                No
Probing for `National Semiconductor LM81'...                No
Probing for `Analog Devices ADM1026'...                     No
Probing for `Analog Devices ADM1025'...                     No
Probing for `Maxim MAX6639'...                              No
Probing for `Texas Instruments AMC6821'...                  No
Probing for `Analog Devices ADM1029'...                     No
Probing for `Analog Devices ADM1030'...                     No
Probing for `Analog Devices ADM1031'...                     No
Probing for `Analog Devices ADM1022'...                     No
Probing for `Texas Instruments THMC50'...                   No
Probing for `Analog Devices ADM1028'...                     No
Probing for `Texas Instruments THMC51'...                   No
Probing for `ITE IT8712F'...                                No
Probing for `SMSC DME1737'...                               No
Probing for `SMSC SCH5027D-NW'...                           No
Probing for `SMSC EMC2103'...                               No
Probing for `Fintek F75373S/SG'...                          No
Probing for `Fintek F75375S/SP'...                          No
Probing for `Fintek F75387SG/RG'...                         No
Probing for `Winbond W83791SD'...                           No
Client found at address 0x73
Probing for `FSC Poseidon I'...                             No
Probing for `FSC Poseidon II'...                            No
Probing for `FSC Scylla'...                                 No
Probing for `FSC Hermes'...                                 No
Probing for `FSC Heimdal'...                                No
Probing for `FSC Heracles'...                               No
Probing for `FSC Hades'...                                  No
Probing for `FSC Syleus'...                                 No
Next adapter: NVIDIA i2c adapter 5 at 4:00.0 (i2c-12)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 6 at 4:00.0 (i2c-13)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 7 at 4:00.0 (i2c-14)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 8 at 4:00.0 (i2c-15)
Do you want to scan it? (YES/no/selectively):
Next adapter: NVIDIA i2c adapter 9 at 4:00.0 (i2c-16)
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 0x880
    Chip `Nuvoton W83677HG-I (NCT6771F/NCT6772F/NCT6775F) Super IO Sensors' (confidence: 9)
Driver `adt7473':
  * Bus `NVIDIA i2c adapter 2 at 4:00.0'
    Busdriver `nvidia', I2C address 0x2e
    Chip `Analog Devices ADT7473' (confidence: 5)
Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
lm_sensors を起動中:                                       [  OK  ]
Unloading i2c-dev... OK
こんな感じ
基本Yesでokみたい
参考サイトとちょっと違うが気にせず進む

動作確認
とりあえず動くのかがきになるので確認

[user@localhost ~]$ sudo sensors
coretemp-isa-0007
Adapter: ISA adapter
Core 7:       +43.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0006
Adapter: ISA adapter
Core 6:       +45.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0005
Adapter: ISA adapter
Core 5:       +43.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0004
Adapter: ISA adapter
Core 4:       +46.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0003
Adapter: ISA adapter
Core 3:       +43.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0002
Adapter: ISA adapter
Core 2:       +45.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1:       +43.0 C  (high = +77.0 C, crit = +97.0 C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +46.0 C  (high = +77.0 C, crit = +97.0 C)
えっ!?これだけ?
だいぶ参考サイトと表示内容が違う
どうしたものか???
しかし,動くことは確認できたので表示に関しては後ほど

0 件のコメント:

コメントを投稿