温度計測 lm-sensors

マウスコンピュータのG-TuneNextGear に Ubuntu 12.04.3 64bitを入れて環境構築ちう。

CPUの温度を知りたいので lm-sensors のパッケージ入れて、sudo sensors-detect カマしても ZM87 チップセットは認識されなかった。

本家サイトから最新版ソースを戴いて来て、

$ cd ~/src
$ tar xvjf ~/ダウンロード/lm_sensors-3.3.5.tar.bz2 で展開。

$ cd lm_sensors-3.3.5
make すると、bison と flex を入れろと言うので、
$ sudo apt-get install bison flex でサクッと入れる。

で、make して出来上がったら、必要なドライバが分かればいいので、インストールせずに
$ cd prog/detect
$ sudo ./sensors-detect

とやればいい。

coretemp と nct6775 が必要との事で、新しいカーネルにはnct6775はモジュールとして入ってるらしいが、Ubuntu 12.04 のkernel 3.2.0 のモジュールには入ってないらしい。

PPAにextradriversってのを公開されている人が居るので、早速追加。
$ sudo add-apt-repository ppa:ppa:foresto/extradrivers
$ sudo apt-get update
$ sudo apt-cache search nct6775

nct6775-dkms – New driver for Nuvoton NCT6775F, NCT6776F, NCT6779D in DKMS format.

という事で、nct6775-dkms を入れるといいらしい。

$ sudo apt-get install nct6775-dkms

/usr/src/nct6775-0.1~git20120806.87f60dd にドライバソースが入ってて、カーネル更新の度にdkmsでカーネルドライバとして組み込まれるようになっとる訳ね。

注意書きにあるが、

Tip: If this driver loads but your network card is still using the sky2 driver, you might have to add one or both of these line to a file in /etc/modprobe.d/ :

blacklist sky2
blacklist skge

ネットワークカードで、sky2ドライバを使う場合は追加が必要との事だが、わしは使ってないから追加しなかった。

[/etc/rc.local]
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Chip drivers
modprobe coretemp
modprobe nct6775
/usr/bin/sensors -s

exit 0

と /etc/rc.local に太字部分を追加して、
sudo sh /etc/rc.local

でおっけー。

$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +33.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +33.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +31.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +31.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +32.0°C  (high = +80.0°C, crit = +100.0°C)

nct6779-isa-0a00
Adapter: ISA adapter
in0:                    +0.89 V  (min =  +0.00 V, max =  +1.74 V)
in1:                    +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in2:                    +3.34 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in3:                    +3.33 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in4:                    +1.12 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:                    +0.86 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:                    +1.15 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in7:                    +3.44 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in8:                    +3.34 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in9:                    +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in10:                   +0.34 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in11:                   +0.00 V  (min =  +0.00 V, max =  +0.00 V)
in12:                   +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in13:                   +0.83 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in14:                   +0.58 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
fan1:                  1457 RPM  (min =    0 RPM)
fan2:                  1480 RPM  (min =    0 RPM)
fan3:                  1442 RPM  (min =    0 RPM)
fan4:                     0 RPM  (min =    0 RPM)
fan5:                     0 RPM  (min =    0 RPM)
SYSTIN:                 +34.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = diode
CPUTIN:                +127.5°C  (high = +80.0°C, hyst = +75.0°C)  ALARM  sensor = diode
AUXTIN0:                +18.0°C    sensor = thermistor
AUXTIN1:                +78.0°C    sensor = thermistor
AUXTIN2:               -128.0°C    sensor = thermistor
AUXTIN3:                +68.0°C    sensor = thermal diode
PCH_CHIP_CPU_MAX_TEMP:   +0.0°C
PCH_CHIP_TEMP:           +0.0°C
PCH_CPU_TEMP:            +0.0°C
PCH_MCH_TEMP:            +0.0°C
cpu0_vid:              +0.000 V
intrusion0:            ALARM
intrusion1:            ALARM

CPU温度と電圧、ファンスピードなど細かいデータが取れるようになった。

dell studio1558だと、CPU温度が55〜100℃だったが、デスクトップは温度が低くていいなあ 🙂

コメントを残す

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

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください