[Voyage-linux] reading temperature

CC (spam-protected)
Wed Mar 25 22:33:02 HKT 2009


I do not recommend this due to kernel error messaging.
Disable the module for lm90 sensor from /etc/modules.
Install the i2c utilities; use i2cdetect -y 0 for detecting the address for lm90.
Get the temperature with i2cget -y 0 address w
Convert the temperature from hex to decimal.

regards,
CC

-----Original Message-----
From: voyage-linux-bounces+cc=hs.ro at voyage.hk [mailto:voyage-linux-bounces+cc=hs.ro at voyage.hk] On Behalf Of Stéphane Acounis
Sent: Wednesday, March 25, 2009 4:04 PM
To: voyage-linux at voyage.hk
Subject: Re: [Voyage-linux] reading temperature

Le Wed, 25 Mar 2009 08:59:42 -0500
Jeff Ramin <jeff.ramin at singlewire.com> a écrit:

> 
> Using voyage 0.5.2 on an ALIX board...does anybody know how
> to get the current temperature off the board?
> 

Yes, it's explained in the README file:

4.2 ALIX support
======================

4.2.1 Temperature sensors for ALIX.1 and ALIX2/3
================================================
When running Voyage Linux with ALIX, choose ALIX profile in voyage
update, the required modules would be added to /etc/modules.  It adds
the following modules in /etc/modules:
        w83627hf
        lm90
        geodewdt

ALIX.1 board uses w83627hf driver while ALIX.2/3 uss lm90.  You can get
the temperature reading from sensors program, or get the values from
sysfs:

(for ALIX.1)
        cat /sys/bus/i2c/drivers/w83627hf/9191-0290/temp1_input
        cat /sys/bus/i2c/drivers/w83627hf/9191-0290/temp2_input
        cat /sys/bus/i2c/drivers/w83627hf/9191-0290/temp3_input

You may also use sensors utility to get the temperature reading.  If
temp1 reading may not be ready at boot up, you need to modify w83627hf
section in /etc/sensors.conf:

chip "w83782d-*" "w83627hf-*"
...
        set sensor1 1

Known Issue: the readings returned from w83627hf is not very accurate.
temp1 reading is too low (~30C) and some offset should be applied.  But
temp1 reading can move down to 20C if you apply cooling agent on the
Geode processor.  temp2 and temp3 do not move up or down too much at
idle or under high low.

(for ALIX.2/3)
        cat /sys/bus/i2c/drivers/lm90/0-004c/temp1_input
        cat /sys/bus/i2c/drivers/lm90/0-004c/temp2_input


-- 
Stéphane ACOUNIS
SUBATECH Nantes - Service d'Électronique
Tél: 02-51-85-84-28  06-64-62-99-20

«Faut pas se laisser abattre» devise Kennedy

_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux





More information about the Voyage-linux mailing list