sensors/lm_sensors を華氏から摂氏に変換する

sensors の温度を調整中。

it8712-isa-0290 なんだけれども、/etc/sensors3.conf によると温度がおかしい場合はセンサーのタイプが違うんじゃないかとのこと。thermal diode に変更してみる。

# Temperature
#
# Important - if your temperature readings are completely whacky
# you probably need to change the sensor type.
# Adujst and uncomment the appropriate lines below.
#
# 2 = thermistor; 3 = thermal diode; 0 = unused
#   set temp1_type 3
#   set temp2_type 3
   set temp2_type 3
#   set temp3_type 3

そうすると、CPUが93℃と言われるのでおそらく華氏で報告されている風。怪しいけど、下記を追記して華氏を摂氏に変換してみた。

# by takke, 華氏っぽいので摂氏に変換する
   compute temp1     ((@-32)*5/9), (@*9/5+32)
   compute temp2     ((@-32)*5/9), (@*9/5+32)

結果はこんな感じ。

[root@www.takke.jp ~]# service lm_sensors restart; sensors
Stopping lm_sensors:                                       [  OK  ]
Starting lm_sensors: loading module it87                   [  OK  ]
it8712-isa-0290
Adapter: ISA adapter
VCore 1:     +1.74 V  (min =  +0.00 V, max =  +4.08 V)
VCore 2:     +1.49 V  (min =  +0.00 V, max =  +4.08 V)
+3.3V:       +3.38 V  (min =  +0.00 V, max =  +4.08 V)
+5V:         +5.24 V  (min =  +0.00 V, max =  +6.85 V)
+12V:       +11.65 V  (min =  +0.00 V, max = +16.32 V)
-12V:        -9.20 V  (min = -27.36 V, max =  +3.93 V)
-5V:         -3.32 V  (min = -13.64 V, max =  +4.03 V)
Stdby:       +5.08 V  (min =  +0.00 V, max =  +6.85 V)
VBat:        +4.08 V
fan1:       6750 RPM  (min =  664 RPM, div = 8)
fan3:       9926 RPM  (min =  664 RPM, div = 8)
M/B Temp:    +35.0°C  (low  = +52.8°C, high = +52.8°C)  sensor = thermal diode
CPU Temp:    +33.9°C  (low  = +52.8°C, high = +52.8°C)  sensor = thermal diode
Temp3:       +43.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode
cpu0_vid:   +1.750 V

それっぽい温度になったのでしばらく様子を見ることにする。

ちなみに fan1, 3 もヘンテコ数値だけどまだ放置。