Skip to contentSkip to conversation

help with lmsensors and intel atom

lm-sensors Alan A 3 participants 5 messages Mar 24, 2009 – Mar 25, 2009

lore
Share & tools
lore

Alan A

author
#0 lore raw

I'm new here so I hope you're patient with me. I recently put together Ubuntu on an Intel Atom (D945GCLF). I'm trying to program sensor data on an external LCD. I have no problems writing other data to the display but when I try to parse sensor data, I can't get anything worth while. The display I', using is a PicoLCD 256X64.

Here's the code I run in the LCD config file:

Widget Temp {
    class 'Text'
    expression i2c_sensors('temp_input3')*1.0324-67
    prefix 'Temp'
    width 9
    precision 1
    align 'R'
    update tick
}
    Row7 {
	Col1 'Temp'
    }

Maybe I'm out of luck with this board, I hope not. Any advice you might have is greatly appreciated.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 4 lines · Alan A

I recently put together Ubuntu on an Intel Atom (D945GCLF). I'm trying to program sensor data on an external LCD. I have no problems writing other data to the display but when I try to parse sensor data, I can't get anything worth while.

First, try using the command-line client "sensors" in a terminal window. If lm-sensors is configured correctly, sensors should print out various temperatures, fan speeds, voltages, etc, depending on what exactly your hardware supports.

If you run sensors and get absolutely nothing (or way less than you expect, like only one or two temperature readings when you expect a bunch of temperatures and fan speeds and voltages) you probably need to run "sensors-detect" as root and do what it says as far as loading modules.

If you run sensors and get a reasonable amount of output, but the values are not what you expect (like it says your power supply voltages are 1.1 and 1.7 V instead of about 3.3 and 5.0 V), then you probably need to adjust the scaling values in /etc/sensors3.conf .

If you run sensors and you get a reasonable amount of reasonably correct output, then you might have trouble in whatever program is driving your LCD - either a configuration problem or some kind of incompatibility. Maybe the LCD program expects lm-sensors version 2.x and you are running 3.x, or vice versa (say "sensors --version" to find out what version of lm-sensors you have.)

Matt Roberds

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

author
#2 lore raw
In reply to Alan A
Quoted 23 lines · Matt Roberds <mattroberds <at> cox.net> writes:
Quoted 4 lines · Alan A

I recently put together Ubuntu on an Intel Atom (D945GCLF). I'm trying to program sensor data on an external LCD. I have no problems writing other data to the display but when I try to parse sensor data, I can't get anything worth while.

First, try using the command-line client "sensors" in a terminal window. If lm-sensors is configured correctly, sensors should print out various temperatures, fan speeds, voltages, etc, depending on what exactly your hardware supports.

If you run sensors and get absolutely nothing (or way less than you expect, like only one or two temperature readings when you expect a bunch of temperatures and fan speeds and voltages) you probably need to run "sensors-detect" as root and do what it says as far as loading modules.

If you run sensors and get a reasonable amount of output, but the values are not what you expect (like it says your power supply voltages are 1.1 and 1.7 V instead of about 3.3 and 5.0 V), then you probably need to adjust the scaling values in /etc/sensors3.conf .

Quoted 7 lines

If you run sensors and you get a reasonable amount of reasonably correct output, then you might have trouble in whatever program is driving your LCD - either a configuration problem or some kind of incompatibility. Maybe the LCD program expects lm-sensors version 2.x and you are running 3.x, or vice versa (say "sensors --version" to find out what version of lm-sensors you have.)

Thanks for your reply Matt. I ran sensors and it reported the following:

smsc47m192-i2c-0-2d
Adapter: SMBus I801 adapter at 2000

+2.5V:       +2.55 V  (min =  +0.00 V, max =  +3.32 V)   
VCore:       +1.20 V  (min =  +0.00 V, max =  +2.99 V)   
+3.3V:       +3.28 V  (min =  +0.00 V, max =  +4.38 V)   
+5V:         +4.97 V  (min =  +0.00 V, max =  +6.64 V)   
+12V:       +12.25 V  (min =  +0.00 V, max = +15.94 V)   
VCC:         +3.32 V  (min =  +0.00 V, max =  +4.38 V)   
+1.5V:       +1.58 V  (min =  +0.00 V, max =  +1.99 V)   
+1.8V:       +1.78 V  (min =  +0.00 V, max =  +2.39 V)   
Chip Temp:   +31.0°C  (low  = -127.0°C, high = +127.0°C)  
CPU Temp:    +50.0°C  (low  = +40.0°C, high = +70.0°C)  
Sys Temp:    +40.0°C  (low  = -127.0°C, high = +127.0°C)  
cpu0_vid:   +2.050 V

smsc47m1-isa-0680

Adapter: ISA adapter
fan1:       4818 RPM  (min = 1280 RPM, div = 4)
fan2:       7021 RPM  (min = 1280 RPM, div = 4)

And then checked the version:

sensors version 3.0.2 with libsensors version 3.0.2

You do know your stuff! Thank you much. Any ideas as to the code in the snippet in the other message? I'm running LCD4Linux to access the LCD.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Alan A
Quoted 20 lines · Alan A

smsc47m192-i2c-0-2d
Adapter: SMBus I801 adapter at 2000

+2.5V:       +2.55 V  (min =  +0.00 V, max =  +3.32 V)   
VCore:       +1.20 V  (min =  +0.00 V, max =  +2.99 V)   
+3.3V:       +3.28 V  (min =  +0.00 V, max =  +4.38 V)   
+5V:         +4.97 V  (min =  +0.00 V, max =  +6.64 V)   
+12V:       +12.25 V  (min =  +0.00 V, max = +15.94 V)   
VCC:         +3.32 V  (min =  +0.00 V, max =  +4.38 V)   
+1.5V:       +1.58 V  (min =  +0.00 V, max =  +1.99 V)   
+1.8V:       +1.78 V  (min =  +0.00 V, max =  +2.39 V)   
Chip Temp:   +31.0°C  (low  = -127.0°C, high = +127.0°C)  
CPU Temp:    +50.0°C  (low  = +40.0°C, high = +70.0°C)  
Sys Temp:    +40.0°C  (low  = -127.0°C, high = +127.0°C)  
cpu0_vid:   +2.050 V

smsc47m1-isa-0680

Adapter: ISA adapter
fan1:       4818 RPM  (min = 1280 RPM, div = 4)
fan2:       7021 RPM  (min = 1280 RPM, div = 4)
Quoted 6 lines

And then checked the version:

sensors version 3.0.2 with libsensors version 3.0.2

You do know your stuff! Thank you much. Any ideas as to the code in the snippet in the other message? I'm running LCD4Linux to access the LCD.

Try temp3_input instead of temp_input3 maybe. Another suspicious thing is the lack of reference to a specific monitoring chip (you have 2 chips so how can LCD4Linux know which one you're talking about?), and also the name "i2c_sensors" while we made the hardware monitoring subsystem independent from i2c years ago. Could be that the LCD4Linux code is old and doesn't properly interface with the current hwmon or libsensors API.

But anyway, at this point there's not so much we can do for you. Your sensors are OK, your problem is with LCD4Linux, so you should ask for help people who know about LCD4Linux.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#4 lore raw
In reply to Alan A
Quoted 8 lines · Jean Delvare <khali <at> linux-fr.org> writes:

Try temp3_input instead of temp_input3 maybe. Another suspicious thing is the lack of reference to a specific monitoring chip (you have 2 chips so how can LCD4Linux know which one you're talking about?), and also the name "i2c_sensors" while we made the hardware monitoring subsystem independent from i2c years ago. Could be that the LCD4Linux code is old and doesn't properly interface with the current hwmon or libsensors API.

Quoted 4 lines

But anyway, at this point there's not so much we can do for you. Your sensors are OK, your problem is with LCD4Linux, so you should ask for help people who know about LCD4Linux.

Thank you for your input Jean. I tried the temp3_input and it started registering as it should. Now I can read all sensors.

Thank you all for your help.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors