Temperature sensors on Meshlium

All related to the Kernel, packages system and libraries
Post Reply
marc11
Posts: 13
Joined: Wed Sep 30, 2009 8:48 pm

Temperature sensors on Meshlium

Post by marc11 » Thu Oct 01, 2009 8:07 pm

Hi

Is possible to control Meshlium's temperature sensors? If it is possible, How can i configure Meshlium to do so?

Thanks.

libelium-dev
Posts: 24417
Joined: Mon Sep 28, 2009 1:06 pm

Re: Temperature sensors on Meshlium

Post by libelium-dev » Fri Oct 02, 2009 9:16 am

Yes it is possible and quite easy.

First you should check if your meshlium has allready temperature sensors activated. To do so just execute as root this command on meshlium

Code: Select all

sensors
If command return an error you have to install a package and just edit a file to enable it. Execute as root those commands:

Code: Select all

aptitude update && aptitude install lm-sensors && remove.docs
This will install lm-sensors on your meshlium, once installed is needed to load the sensors modules in order to check sensors.

Code: Select all

Meshlium-AX:~# modprobe lm90
Meshlium-AX:~# modprobe scx200_acb
Meshlium-AX:~# sensors
lm86-i2c-0-4c
Adapter: CS5536 ACB0
temp1:       +37.0°C  (low  =  +0.0°C, high = +70.0°C)
                      (crit = +85.0°C, hyst = +75.0°C)
temp2:       +43.1°C  (low  =  +0.0°C, high = +70.0°C)
                      (crit = +85.0°C, hyst = +75.0°C)

Meshlium-AX:~#
First value is Motherborad temperature, second value is CPU temperature.
To change temp1 and temp2 labels to something more descriptive, edit the file /etc/sensors3.conf and add those lines at the end

Code: Select all

chip "lm90-*" "adm1032-*" "lm86-*" "max6657-*" "adt7461-*"
   label temp1 "M/B Temp"
   label temp2 "CPU Temp"
   label tcrit1 "M/B Crit"
   label tcrit2 "CPU Crit"
Output of sensors command will change to this

Code: Select all

Meshlium-AX:~# sensors
lm86-i2c-0-4c
Adapter: CS5536 ACB0
M/B Temp:    +38.0°C  (low  =  +0.0°C, high = +70.0°C)
                      (crit = +85.0°C, hyst = +75.0°C)
CPU Temp:    +44.4°C  (low  =  +0.0°C, high = +70.0°C)
                      (crit = +85.0°C, hyst = +75.0°C)

Finally to load the needed modules at startup and avoid modprobe each time you need to use sensors command just adding those lines to the end of the file etc/modules

Code: Select all

lm90
scx200_acb

marc11
Posts: 13
Joined: Wed Sep 30, 2009 8:48 pm

Re: Temperature sensors on Meshlium

Post by marc11 » Fri Oct 02, 2009 11:15 pm

Thanks, i have followed the steps and now i can check system temperatures.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests