You are not logged in. Login or Register for free.
Title only?
Strange sound and vision from here to the end of the world.
"We're fans first, journalists second."






  9 comments
  Email this



Posted on Sunday, October 1st, 2006 3:47:00 GMT by: quietearth
Posted under: ubuntu lm-sensors temperate

One of the basic things you need, especially if you build your own boxes like I do, is to be able to watch cpu temperatures, voltages, fan speeds, etc. This is easily done with the lm-sensors package in conjuction with code which is available for most types of motherboards in the kernel. This is pretty straightforward, first off lets install lm-sensors:
# apt-get install lm-sensors

Once that's done we need to create the i2c device files and unfortunately this isn't done automatically, so we can grab the necessary script from the lm-sensors source package, use this link, or cut-n-paste this:
--cut here--
#!/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
--cut here--


After running that script, we can then run sensors-detect to figure out our motherboard type:
# sensors-detect

This might hang your system while probing for the right motherboard, but if it doesn't all the questions are pretty straightforward and you can usually just hit enter for everything. At the end it will ask if you want to add the necessary kernel modules to /etc/modules, answer YES. You can then reboot to load everything, or take a look at /etc/modules and manually modprobe each one IN THE ORDER it's in the file. Then run the sensors command and we get this:
# sensors
V1.5:      +2.467 V  (min =  +1.42 V, max =  +1.58 V)   ALARM
VCore:     +1.479 V  (min =  +1.48 V, max =  +1.63 V)   ALARM
V3.3:      +3.373 V  (min =  +3.13 V, max =  +3.47 V)
V5:       +5.000 V  (min =  +4.74 V, max =  +5.26 V)
V12:      +11.734 V  (min = +11.38 V, max = +12.62 V)
CPU_Fan:   2299 RPM  (min = 4000 RPM)                     ALARM
fan2:         0 RPM  (min =    0 RPM)
fan3:      1057 RPM  (min =    0 RPM)
fan4:         0 RPM  (min =    0 RPM)
CPU:      +41.50°C  (low  =   +10°C, high =   +50°C)
Board:    +35.25°C  (low  =   +10°C, high =   +35°C)
Remote:   +35.50°C  (low  =   +10°C, high =   +35°C)     ALARM
CPU_PWM:   144
Fan2_PWM:  112
Fan3_PWM:  112
vid:      +1.550 V  (VRM Version 9.0)


If you want to monitor things under gnome their is a handy applet for that:
# apt-get install sensors-applet

But really at this point you should reboot. If you need to change incorrect scaling or set temperature lower/upper limits, just modify /etc/sensors.conf.

Tested under dapper and edgy.
Under feisty, you do not need to install any packages or run the above script. Just run sensors-detect and reboot. The sensors applet is the same place as always.

Pingbacks


RSS Feed for comments

Comments

Thanks very much. That was just what I needed.

Posted by: tiamatu | March 4, 2007 12:14:34 am | permalink

It might be worth noting that you mostly need to reboot between running sensors-detect and running sensors, especially if the ISA bus driver needed to be loaded.
For people who are new to Gnome desktops (like Ubuntu) you get sensors-applet appearing by right-clicking on the bar at the top of the screen and selecting "Add to Panel...", then selecting the "Hardware Sensors Monitor" in the "System and Hardware" section.

Posted by: Anonymous | March 16, 2007 10:17:04 pm | permalink

What a great resource! Allways wanted to add temp/fan monitoring to my Dapper system!

Thanks!

Posted by: Joe | June 7, 2007 04:31:16 pm | permalink

thx

Posted by: greg | June 8, 2007 03:03:22 am | permalink

Thanks, was very informative but could not find any sensors for my generic rebranded crap laptop. Will have to keep trying.

Posted by: Anonymous | November 3, 2007 12:03:50 pm | permalink

I don't think you need to reboot. After sensors-detect, I think you can just modprobe the modules that it adds to your /etc/modules.

Posted by: Anonymous | October 23, 2008 02:51:45 pm | permalink

thanks it's verry usefull

Posted by: Anonymous | November 28, 2009 06:59:23 pm | permalink

grr, i have an AMD K10 something-or-other, according to this, the drivers for which are 'to-be-written'. pretty good MSI motherboard which i plan to overclock the hell out of... it would be nice to have some real-time desktop monitoring capability. oh well :-P

Posted by: chuckles | December 11, 2009 06:51:24 pm | permalink

Post a comment

Name:
(default is Anonymous)
Contact:
(email or url, optional)
Comment:
(no html or bbcode)
Captcha:



Related articles
Posted on Monday, August 21st, 2006 18:41:02 GMT by: quietearth |   7 comments

Posted on Thursday, August 24th, 2006 21:47:33 GMT by: quietearth |   3 comments

Posted on Tuesday, September 12th, 2006 3:13:27 GMT by: quietearth |   8 comments

Posted on Friday, September 15th, 2006 22:53:55 GMT by: quietearth |   5 comments

Posted on Monday, September 25th, 2006 19:34:12 GMT by: quietearth |   7 comments




rss | subscribe via email | the team | contact us | mobile
© 2006-2009 Don Neumann (except where applicable)
We are looking for free hosting with a cut of sales, you'll get a link right here.
If you want news of your film posted, use our contact page and we'll check it out
Permission is granted to use material from this site if you provide a reference to us via a link and DO NOT HOTLINK.


GenreBanners.com Banner Exchange