Enabling Motherboard Sensors

From Freespire

Jump to: navigation, search

Home-->Documentation-->Hints & Tips-->Enabling Motherboard Sensors

Enabling Sensors

  • If you want to enable an applet in your system tray that shows cpu and fan speeeds, temps and so on you need to follow these steps.
 sudo apt-get update
 sudo apt-get install ksensors lm-sensors
  • In the terminal you should then type:
 kwrite mkdev.sh
  • and paste the following into the file:
   #!/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 close kwrite. Then type:
 chmod +x mkdev.sh
  • followed by:
 sudo ./mkdev.sh
  • followed by:
 sudo sensors-detect

Answer yes to all the options, and choose smbus when you're given the choice of choosing between ISA or smbus. Agree to the option of automatic entry in /etc/modules. Reboot, and launch ksensors from the utilities menu. Choose the information to display. That's it.

Personal tools