Elena Graverini

Install hardware sensors

sudo apt-get install lm-sensors

Create and run this script:

gedit mkdev.sh

Enter:

#!/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

Save and exit.

chmod 755 mkdev.sh && sudo ./mkdev.sh
sudo sensors-detect

Answer “yes” to every “yes/no” question. At the end, take note of the list of modules that need to be loaded, and answer “no” to the automatic installation of those.

sudo gedit /etc/modules

Add the list of modules in the reverse order. For every module added:

sudo modprobe module

Then:

sudo depmod -a

To execute them:

sensors

(Source: http://ubuntuforums.org/showthread.php?t=2780)