■必要なパッケージをインストール
[root@localhost ~]# yum info lmsensors
Available Packages
Name : lm_sensors
Arch : i386
Version : 2.10.7
Release : 4.el5
Size : 513 k
Repo : base
Summary : ハードウェア監視アプレット
URL : http://secure.netroedge.com/~lm78/
License : GPL
Description: The lm_sensors package includes a collection of modules for general SMBus
: access and hardware monitoring. NOTE: this requires special support which
: is not in standard 2.2-vintage kernels.
[root@localhost ~]# yum install lm_sensors
Installed:lm_sensors.i386 0:2.10.7-4.el5
■温度などの情報を保持しているチップにアクセスするドライバをインストールする
次のコマンドで、自動的にインストールされる。
各質問には、エンターを押していくだけ。
[root@localhost ~]# sensors-detect
# sensors-detect revision 5291 (2008-06-23 23:40:46 -0700)↑ソースブリッジや、CPU、メモリにも同様のチップがあるらしいが、使っているマザーボードには見つけられなかったようだ。
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-viapro' for device 0000:00:11.0: VIA Technologies VT8237 South Bridge
We will now try to load each adapter module in turn.
Module `i2c-viapro' already loaded.
If you have undetectable or unsupported I2C/SMBus adapters, you can have
them scanned by manually loading the modules before running this script.
To continue, we need module `i2c-dev' to be loaded.
Do you want to load `i2c-dev' now? (YES/no):
Module loaded successfully.
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 Via Pro adapter at 0500 (i2c-0)
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'... Yes
(confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'... No
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
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 `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Trying family `ITE'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... Yes
Found `Winbond W83697HF/F/HG Super IO Sensors' Success! ←スーパーセンサー(本当の意味でのセンサーの、ラッパー?)が見つかった。
(address 0x290, driver `w83627hf')
Some south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (YES/no):
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD K10 thermal sensors... 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 `w83627hf' (should be inserted):
Detects correctly:
* ISA bus, address 0x290
Chip `Winbond W83697HF/F/HG Super IO Sensors' (confidence: 9)
↓発見できたセンサーや使用するドライバを登録しているのだろう。
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
lm_sensors を起動中: [ OK ]
■チップが保持している情報を表示させる
[root@localhost ~]# sensors
w83697hf-isa-0290 ←情報を持っているチップAdapter: ISA adapter
VCore: +0.98 V (min = +1.60 V, max = +0.72 V) ALARM
+3.3V: +3.34 V (min = +0.67 V, max = +0.70 V) ALARM
+5V: +4.97 V (min = +1.10 V, max = +1.29 V) ALARM
+12V: +11.49 V (min = +0.18 V, max = +6.14 V) ALARM
-12V: -14.83 V (min = +2.20 V, max = -4.63 V) ALARM
-5V: -7.66 V (min = +0.33 V, max = -3.69 V) ALARM
V5SB: +5.46 V (min = +4.35 V, max = +0.03 V) ALARM
VBat: +3.26 V (min = +1.79 V, max = +2.08 V) ALARM
fan1: 0 RPM (min = 2463 RPM, div = 4) ALARM
fan2: 0 RPM (min = 168750 RPM, div = 4) ALARM
temp1: +63°C (high = +73°C, hyst = +112°C) sensor = transistor
temp2: +71.0°C (high = +120°C, hyst = +115°C) sensor = diode
alarms:
beep_enable:
Sound alarm enabled
かなり温度が高いのはファンレスパソコンだからだ。でもそれぞれいったいどこの温度なんだろう。
BIOS設定画面で表示される情報と比較すればわかるかもしれない。
ひとつはおそらくCPUだろうと思う。
これから夏に向けて暑くなってくるので放熱が悪くなるため要注意だ。
■自動起動するようにしておく
[root@localhost ~]# chkconfig lm_sensors on
以上
○ちなみに、別マシンでは次のようになっていた。
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 `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Trying family `ITE'... Yes
Found `ITE IT8716F Super IO Sensors' Success!
(address 0x228, driver `it87')
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 south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (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
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `it87' (should be inserted):
Detects correctly:
* ISA bus, address 0x228
Chip `ITE IT8716F Super IO Sensors' (confidence: 9)
Driver `k8temp' (should be inserted):
Detects correctly:
* Chip `AMD K8 thermal sensors' (confidence: 9)
↑二つ登場
これらのチップが保持している情報は次のとおり。
[root@server01 ~]# sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +18.0°C
Core0 Temp: +21.0°C
Core1 Temp: +20.0°C
Core1 Temp: +18.0°C
it8716-isa-0228
Adapter: ISA adapter
VCore: +0.99 V (min = +0.00 V, max = +4.08 V)
VDDR: +1.22 V (min = +0.00 V, max = +4.08 V)
+3.3V: +3.36 V (min = +0.00 V, max = +4.08 V)
+5V: +4.92 V (min = +0.00 V, max = +6.85 V)
+12V: +12.10 V (min = +0.00 V, max = +16.32 V)
in5: +1.94 V (min = +0.00 V, max = +4.08 V)
in6: +1.18 V (min = +0.00 V, max = +4.08 V)
5VSB: +4.81 V (min = +0.00 V, max = +6.85 V)
VBat: +3.09 V
fan1: 2089 RPM (min = 3245 RPM) ALARM
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 11 RPM) ALARM
temp1: +54.0°C (low = +127.0°C, high = +75.0°C) sensor = thermal diode
temp2: +41.0°C (low = +127.0°C, high = +75.0°C) sensor = transistor
temp3: +36.0°C (low = +127.0°C, high = +75.0°C) sensor = thermal diode
cpu0_vid: +0.750 V
これらも、比較的高い温度を示すがどの部位の温度なのかは、
BIOS設定画面に表示される情報と比較すればわかるかもしれない。