PCと映画とテレビと、2nd(終)

web2web.eek.jp(2nd) から 引っ越し。 今後はmono-works.com/blog(3rd)へ

Categories
Archives
Selected Entries
Recent Comments
Recent Trackbacks
Other

Ubuntu設定|lm-sensors

HDDの温度見てたら、CPU温度を見たくなってググッてみたら、引っかかった。 「lm-sensors」がそれ。
手順は以下のサイトでゲット:

 ・Not renewal|ubuntuをより快適に:インスコしたもの
先ず、lm-sensors をインストールする。

sudo apt-get install lm-sensors

おもむろにバッチを作成する。
$ cat mk-dev.sh
#!/bin/bash
# The number of devices to create (max: 256)
NUMBER=32
# The owner and group of the devices
OUSER=root
OGROUP=root
# The mode of the devices
MODE=600
# This script doesn't need to be run if devfs is used
if [ -r /proc/mounts ] ; then
if grep -q "/dev devfs" /proc/mounts ; then
echo "You do not need to run this script as your system uses devfs."
exit;
fi
fi
i=0;
while [ $i -lt $NUMBER ] ; do
echo /dev/i2c-$i
mknod -m $MODE /dev/i2c-$i c 89 $i || exit
chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
i=$[$i + 1]
done
#end of file
# The number of devices to create (max: 256)
NUMBER=32
# The owner and group of the devices
OUSER=root
OGROUP=root
# The mode of the devices
MODE=600
# This script doesn't need to be run if devfs is used
if [ -r /proc/mounts ] ; then
if grep -q "/dev devfs" /proc/mounts ; then
echo "You do not need to run this script as your system uses devfs."
exit;
fi
fi
i=0;
while [ $i -lt $NUMBER ] ; do
echo /dev/i2c-$i
mknod -m $MODE /dev/i2c-$i c 89 $i || exit
chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
i=$[$i + 1]
done
#end of file

作成したバッチを実行してみる。

$ sudo chmod a+x mkdev.sh
$ sudo ./mkdev.sh
$ sudo sensors-detect
$ sudo /etc/init.d/module-init-tools
$ sudo sensors -s
$ sudo sensors

it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.20 V (min = +0.00 V, max = +4.08 V)
VCore 2: +1.50 V (min = +0.00 V, max = +4.08 V)
+3.3V: +3.26 V (min = +0.00 V, max = +4.08 V)
+5V: +5.03 V (min = +0.00 V, max = +6.85 V)
+12V: +11.71 V (min = +0.00 V, max = +16.32 V)
-12V: -19.26 V (min = -27.36 V, max = +3.93 V)
-5V: +3.61 V (min = -13.64 V, max = +4.03 V)
Stdby: +4.92 V (min = +0.00 V, max = +6.85 V)
VBat: +3.25 V
fan1: 2250 RPM (min = 0 RPM, div = 8)
fan2: 1721 RPM (min = 0 RPM, div = 8)
fan3: 0 RPM (min = 0 RPM, div = 8)
M/B Temp: -1°C (low = -1°C, high = +127°C) sensor = thermistor
CPU Temp: +36°C (low = -1°C, high = +127°C) sensor = thermistor
Temp3: +24°C (low = -1°C, high = +127°C) sensor = thermistor

という感じです。

◆参考サイト:Not renewal|ubuntuをより快適に:インスコしたもの
◆関連ログ:「Ubuntu設定」ネタ
デジタル的話 > Linux的話 | comments (0) | trackbacks (0)

COMMENTS

Comment Form

※本記事に関係ないと判断した COMMENTS はお断りしております。

TRACKBACKS

現在、TRACKBACKは停止させてもらってます。
Calendar
Amazon
トロン:レガシー [Blu-ray]
トロン:レガシー [Blu-ray]
ウォルト・ディズニー・ジャパン株式会社
重々しい音響が印象的
ハリー・ポッターと死の秘宝 PART 2 [Blu-ray]
ハリー・ポッターと死の秘宝 PART 2 [Blu-ray]
ワーナー・ホーム・ビデオ
2枚で3000円キャンペーン! (2012.7.13時点)