lm-sensors

alan's 的頭像

How to detect CPU temperature, fan speeds and voltages
(Via Unofficial Ubuntu 6.06 (Dapper Drake) Linux Starter Guide, thanks!)

$ sudo aptitude install lm-sensors

Create file called mkdev.sh, and paste in the following

#!/bin/bash

# Here you can set several defaults.

# 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

Make this file executable, then run it

$ sudo chmod +x mkdev.sh
$ sudo ./mkdev.sh

Now detect sensors, and answer "y" to all questions.

$ sudo sensors-detect

Load the modules into kernel

$ sensors -s

Now, let's see the output

$ sensors

Install hddtemp first to monitor hard drive temperatures

$ sudo aptitude install hddtemp

發表新回應

這個欄位的內容會保密,不會公開顯示。
  • 可使用的 HTML 標籤:<a> <em> <pre><strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img><h1><h2><h3>
  • 自動斷行和分段。

更多關於格式選項的資訊