• 検索結果がありません。

温度計測

ドキュメント内 M11-JZPM01 (ページ 53-58)

第 3 章  各機能の設定方法 39

3.6  温度計測

ここでは、kernel2.6.8で温度計測をする方法を説明します。

まず、apt-get install lm-sensorsでlm-sensorsパッケージをインストールします。

次に、sensors-detectコマンドを実行しCPZ-PM/CMシリーズに適したモジュールを自動選択し、

/etc/modulesに追加します。

greenart:~# sensors-detect

This program will help you determine which I2C/SMBus modules you need to load to use lm_sensors most effectively. You need to have i2c and lm_sensors installed before running this program.

Also, you need to be `root', or at least have access to the /dev/i2c-*

files, for most things.

If you have patched your kernel and have some drivers built in, you can safely answer NO if asked to load some modules. In this case, things may seem a bit confusing, but they will still work.

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.

You do not need any special privileges for this.

Do you want to probe now? (YES/no):

Probing for PCI bus adapters...

Use driver `i2c-i801' for device 00:1f.3: Intel 82801DB ICH4 Probe succesfully concluded.

We will now try to load each adapter module in turn.

Load `i2c-i801' (say NO if built into your kernel)? (YES/no):

Module loaded succesfully.

If you have undetectable or unsupported adapters, you can have them scanned by manually loading the modules before running this script.

こ こ でEnter キ ー を 押 し ます。

こ こ でEnter キ ー を 押 し ます。

To continue, we need module `i2c-dev' to be loaded.

If it is built-in into your kernel, you can safely skip this.

i2c-dev is not loaded. Do you want to load it now? (YES/no):

Module loaded succesfully.

We are now going to do the adapter probings. Some adapters may hang halfway

through; we can't really help that. Also, some chips will 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. That often includes address 0x69 (clock chip).

Next adapter: SMBus I801 adapter at 1860 Do you want to scan it? (YES/no/selectively):

Client found at address 0x2d

Probing for `Myson MTP008'... Failed!

Probing for `National Semiconductor LM78'... Failed!

Probing for `National Semiconductor LM78-J'... Failed!

        :         :         :

Probing for `Winbond W83791SD'... Failed!

Probing for `Winbond W83627HF'... Success!

(confidence 8, driver `w83781d'), other addresses: 0x48 0x49 Probing for `Winbond W83627EHF'... Failed!

        :         :         :

Probing for `National Semiconductor LM89/LM99'... Failed!

Probing for `National Semiconductor LM86'... Success!

(confidence 8, driver `lm90')

Probing for `Analog Devices ADM1032'... Failed!

Probing for `Maxim MAX6657/MAX6658/MAX6659'... Failed!

Probing for `National Semiconductor LM63'... Failed!

Probing for `Maxim MAX6633/MAX6634/MAX6635'... Failed!

Probing for `Analog Devices ADT7461'... Failed!

Client found at address 0x50

Probing for `SPD EEPROM'... Success!

(confidence 8, driver `eeprom') Probing for `DDC monitor'... Failed!

Probing for `Maxim MAX6900'... Failed!

Client found at address 0x69

こ こ でEnter キ ー を 押 し ます。

こ こ でEnter キ ー を 押 し ます。

Some chips are also accessible through the ISA bus. ISA probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no):

Probing for `National Semiconductor LM78' Trying address 0x0290... Failed!

Probing for `National Semiconductor LM78-J' Trying address 0x0290... Failed!

        :         :         :

Trying address 0x0ca0... Failed!

Probing for `IPMI BMC SMIC'

Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no):

Probing for `ITE 8702F Super IO Sensors' Failed! (skipping family)

Probing for `Nat. Semi. PC87351 Super IO Fan Sensors' Failed! (skipping family)

Probing for `SMSC 47B27x Super IO Fan Sensors' Failed! (skipping family)

Probing for `VT1211 Super IO Sensors' Failed! (0x52)

Probing for `Winbond W83627HF Super IO Sensors' Success... but not activated

Probing for `Winbond W83627THF Super IO Sensors' Failed! (0x52)

        :         :         :

Do you want to scan for secondary Super I/O sensors? (YES/no):

Probing for `ITE 8702F Super IO Sensors' Failed! (skipping family)

        :         :         :

こ こ でEnter キ ー を 押 し ます。

こ こ でEnter キ ー を 押 し ます。

こ こ でEnter キ ー を 押 し ます。

Now follows a summary of the probes I have just done.

Just press ENTER to continue:

Driver `w83781d' (should be inserted):

Detects correctly:

* Bus `SMBus I801 adapter at 1860'

Busdriver `i2c-i801', I2C address 0x2d (and 0x48 0x49) Chip `Winbond W83627HF' (confidence: 8)

Driver `lm90' (should be inserted):

Detects correctly:

* Bus `SMBus I801 adapter at 1860' Busdriver `i2c-i801', I2C address 0x4c

Chip `National Semiconductor LM86' (confidence: 8)

Driver `eeprom' (should be inserted):

Detects correctly:

* Bus `SMBus I801 adapter at 1860' Busdriver `i2c-i801', I2C address 0x50 Chip `SPD EEPROM' (confidence: 8)

I will now generate the commands needed to load the I2C modules.

Sometimes, a chip is available both through the ISA bus and an I2C bus.

ISA bus access is faster, but you need to load an additional driver module for it. If you have the choice, do you want to use the ISA bus or the I2C/SMBus (ISA/smbus)?

To make the sensors modules behave correctly, add these lines to /etc/modules:

#----cut here----

# I2C adapter drivers i2c-i801

# I2C chip drivers w83781d

lm90 eeprom

#----cut here----

Do you want to add these lines to /etc/modules automatically? (yes/NO)yes greenart:~#

以上で、準備が完了です。一旦、コンピュータを再起動してください。

こ こ でEnter キ ー を 押 し ます。

ここでyesと 入力します。

温度情報は、sensorsコマンド実行で取得できます。

greenart:~# sensors eeprom-i2c-0-50

Adapter: SMBus I801 adapter at 1860 Memory type: DDR SDRAM DIMM Memory size (MB): 256

lm86-i2c-0-4c

Adapter: SMBus I801 adapter at 1860

M/B Temp: +42°C (low = +0°C, high = +70°C) CPU Temp: +46.0°C (low = +0.0°C, high = +70.0°C) M/B Crit: +85°C (hyst = +75°C)

CPU Crit: +85°C (hyst = +75°C)

w83627hf-i2c-0-2d

Adapter: SMBus I801 adapter at 1860

VCore 1: +1.18 V (min = +1.94 V, max = +2.14 V) VCore 2: +1.02 V (min = +1.94 V, max = +2.14 V) +3.3V: +3.25 V (min = +3.14 V, max = +3.46 V)

+5V: +4.92 V (min = +4.73 V, max = +5.24 V) ALARM +12V: +11.86 V (min = +10.82 V, max = +13.19 V) ALARM -12V: -12.20 V (min = -13.18 V, max = -10.88 V) ALARM -5V: +3.54 V (min = -5.25 V, max = -4.75 V)

V5SB: +5.27 V (min = +4.73 V, max = +5.24 V) ALARM VBat: +0.00 V (min = +2.40 V, max = +3.60 V) ALARM fan1: 0 RPM (min = -1 RPM, div = 2)

fan2: 0 RPM (min = -1 RPM, div = 2) fan3: 0 RPM (min = -1 RPM, div = 2)

temp1: +51°C (high = +0°C, hyst = +33°C) sensor = thermistor temp2: +50.0°C (high = +80°C, hyst = +75°C) sensor = thermistor temp3: +53.5°C (high = +80°C, hyst = +75°C) sensor = thermistor vid: +2.050 V (VRM Version 8.2)

alarms: Chassis intrusion detection ALARM beep_enable:

Sound alarm disabled

greenart:~#

ドキュメント内 M11-JZPM01 (ページ 53-58)

関連したドキュメント