GUiLZ Project Personal & Experimental Blog

foltia ANIME LOCKER

富士通 PRIMERGY MX130 S2 環境だと、foltia ANIME LOCKER の管理画面からでは下記画像のようにCPU温度とTDP(で合ってるのかな) しか表示されない。

MX130 S2 温度センサー画面  初期状態

MX130 S2 温度センサー画面 初期状態

 

ここに他の値も表示したいと思っていろいろ試したところ、こんな感じでちゃんとデータ取得できるようになったので、その方法をメモがてら。

MX130 S2 温度センサー画面   改良時

MX130 S2 温度センサー画面 改良時

スポンサードリンク

 

問題点の特定

foltia ANIME LOCKERでのセンサー値の表示には lm_sensors が使われているようなので、

# sensors-detect

 

としてセンサー状態を調べてみたところ、特に情報が出てこなかったため、最新版の sensors-detect をダウンロードして実行してみた。

# cd /root
# wget http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
# chmod 700 sensors-detect
# ./sensors-detect

 

最新版の sensors-detect だと以下のようなエラーメッセージが出たので、どうやらセンサーのドライバが読み込まれていないために、うまく温度表示がされていない模様。

Sorry, no sensors were detected.
Warning: the required module sch5627 is not currently installed on your system.

 

このエラーからすると sch5627 というドライバが必要そうなので、lm_sensors の対応デバイス情報 を確認。それによると、カーネル 2.6.39以降ならドライバが標準で用意されているようだけど、foltia ANIME LOCKER 4.0.9時点ではカーネル 2.6.32ベースなので、標準ドライバはない模様。

幸い、上記ページに standalone driver というリンクがあり、ここにドライバが用意されているので、それを持ってきてコンパイルすることにした。

 

センサー用ドライバの導入

まず、コンパイルのためにディレクトリの準備をしておく。ちなみに今回も特に別途ソフトウェアの追加インストール等することなく、下記作業を行うことができた。

# cd /usr/local/src
# mkdir sch56xx_driver
# cd sch56xx_driver

 

続いて必要なファイルを持ってくる。

# wget https://fedorapeople.org/~jwrdegoede/sch56xx/compat.patch
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/Makefile
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/sch56xx-common.c
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/sch56xx-common.h
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/sch5627.c
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/sch5627.txt
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/sch5636.c
# wget https://fedorapeople.org/~jwrdegoede/sch56xx/sch5636.txt

 

上記8ファイルが揃ったらコンパイル。

# make all

 

コンパイル自体はすぐに終わり、いくつかのファイルが生成されるけれど、自分が試した限りで必要だったのは、

sch56xx-common.ko
sch5627.ko

 

上記2ファイルだけだったので、これらをドライバディレクトリにコピーする。(コピー先はfoltia ANIME LOCKER 4.0.9時点での場所)

# cp -a sch56xx-common.ko /lib/modules/2.6.32-431.23.3.el6.x86_64/kernel/drivers/hwmon
# cp -a sch5627.ko /lib/modules/2.6.32-431.23.3.el6.x86_64/kernel/drivers/hwmon

 

コピーできたら、

# depmod -a
# modprobe sch5627

 

とすることで、ドライバの読み込みは完了。

 

設定と動作確認

ドライバの読み込みまで終わったら、再度最新版の sensors-detect を実行する。(今回の例では /root ディレクトリにダウンロードしているので、それを指定)

# /root/sensors-detect

 

選択肢は全て yes またはリターンキーで飛ばしていくと、今回はエラーメッセージではなく、/etc/sysconfig/lm_sensors を書き換えてもいいかという確認画面が出るので、yes と入力して変更する。

# sensors-detect revision 6281 (2015-05-28 08:01:18 +0200)
# System: FUJITSU PRIMERGY MX130 S2
# Board: FUJITSU D3090-A1
# Kernel: 2.6.32-431.23.3.el6.x86_64 x86_64
# Processor: AMD Opteron(tm) Processor 3280 (21/1/2)

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...                           Success!
    (driver `k10temp')
AMD Family 16h thermal sensors...                           No
AMD Family 15h power sensors...                             Success!
    (driver `fam15h_power')
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             No
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 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'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     Yes
Found `SMSC SCH5627 Super IO'                               Success!
    (address 0x580, driver `sch5627')

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/SB700/SB800 SMBus

Next adapter: Radeon i2c bit bus 0x90 (i2c-0)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: Radeon i2c bit bus 0x91 (i2c-1)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: Radeon i2c bit bus 0x92 (i2c-2)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: Radeon i2c bit bus 0x93 (i2c-3)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: Radeon i2c bit bus 0x14 (i2c-4)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: Radeon aux bus DP-auxch (i2c-5)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: SMBus PIIX4 adapter at 0b00 (i2c-6)
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 `sch5627':
  * ISA bus, address 0x580
    Chip `SMSC SCH5627 Super IO' (confidence: 9)

Driver `fam15h_power' (autoloaded):
  * Chip `AMD Family 15h power sensors' (confidence: 9)

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 15h thermal sensors' (confidence: 9)

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

Starting lm_sensors: loading module sch5627                [  OK  ]

 

ここまで終わったらセンサー情報を表示して、取得できる情報が増えていればOK。

# sensors

k10temp-pci-00c3
Adapter: PCI adapter
temp1:       +52.4°C  (high = +70.0°C, crit = +70.0°C)  

fam15h_power-pci-00c4
Adapter: PCI adapter
power1:      64.86 W

sch5627-isa-0580
Adapter: ISA adapter
VCC:         +3.27 V
VTT:         +1.42 V
VBAT:        +0.54 V
VTR:         +3.30 V
in4:         +1.13 V
fan1:       2459 RPM  (min =  400 RPM)
fan2:       1617 RPM  (min =  400 RPM)
fan3:          FAULT  (min =  400 RPM)
fan4:          FAULT  (min =  400 RPM)
temp1:       +52.2°C  (high = +71.0°C, crit = +187.0°C)  
temp2:       +33.5°C  (high = +48.0°C, crit = +50.0°C)  
temp3:       +43.9°C  (high = +61.0°C, crit = +70.0°C)  
temp4:       +33.5°C  (high = +48.0°C, crit = +50.0°C)  
temp5:       +61.6°C  (high = +77.0°C, crit = +85.0°C)  
temp6:       +64.9°C  (high = +86.0°C, crit = +90.0°C)  
temp7:       +61.2°C  (high = +77.0°C, crit = +85.0°C)  
temp8:       +52.2°C  (high = +71.0°C, crit = +76.0°C)  

 

今後のfoltia ANIME LOCKERのバージョンアップ次第で、再度ドライバを入れ直す必要があるかもしれないけど、作業自体は簡単でシンプルなので、そんなに手間をかけずにできるかなと。参考になれば幸い。

スポンサードリンク

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

当サイトのコメント欄は承認制となっております。また、日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

スポンサードリンク

Twitter
利用中のサービス

GUiLZ Project では、以下のサービスを利用しています。


関連サイト
巡回先サイト様
アーカイブ