Skip to contentSkip to conversation

lm_sensors 2.8.3

DISCUSSION Gianni 2 participants 10 messages May 19, 2005

lore
Share & tools
lore

Gianni

author
#0 lore raw

I doesn't compile with "make users".
I'm using kernle 2.6.1 and trying to compile lm_sensors 2.8.3 with make users, but I get this:
/lib/modules/2.6.1/build/include/linux/highmem.h:87:36: macro "clear_user_page" requires 3 arguments, but only 2 given /lib/modules/2.6.1/build/include/linux/highmem.h:119:41: macro "copy_user_page" requires 4 arguments, but only 3 given
cat kernel/include/sensors.h.template > kernel/include/sensors.h awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >> kernel/include/sensors.h
echo '#endif' >> kernel/include/sensors.h
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2 -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer

prog/sensors/chips.c | \
        sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd prog/sensors/chips.ro: 

Makefile 'dirname prog/sensors/chips.rd/Module.mk' @' > prog/sensors/chips.rd
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2 -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/proc.c |

\
        sed -e 's@^\(.*\)\.o:@lib/proc.ad lib/proc.ao: Makefile '`dirname 
lib/proc.ad`/Module.mk' @' > lib/proc.ad
gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -Wall -O2 
-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/chips.c | 
\
        sed -e 's@^\(.*\)\.o:@lib/chips.ad lib/chips.ao: Makefile '`dirname 
lib/chips.ad`/Module.mk' @' > lib/chips.ad
gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -fpic -Wall -O2 
-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/proc.c | 
\
        sed -e 's@^\(.*\)\.o:@lib/proc.ld lib/proc.lo: Makefile '`dirname 
lib/proc.ld`/Module.mk' @' > lib/proc.ld
gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -fpic -Wall -O2 
-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/chips.c | 
\
        sed -e 's@^\(.*\)\.o:@lib/chips.ld lib/chips.lo: Makefile '`dirname 

lib/chips.ld`/Module.mk' @' > lib/chips.ld
make: *** No rule to make target `users'. Stop.

I've got Slackware 9.1. How can it possible I cannot compile lm_sensors? I tryed with a lot of version but it's very complicated.

A linux user

#1 lore raw

Quoting Gianni <[email protected]>:

Quoted 5 lines
Quoted 3 lines

I've got Slackware 9.1. How can it possible I cannot compile lm_sensors? I tryed with a lot of version but it's very complicated.

I resolved: "make user" not "make users".

AKA "very complicated" ;)

Quoted 1 line

Sorry to disturb you.

No problem.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Gianni
Quoted 1 line

I see that in lm_sensors 2.8.2 my VIA VT8327 chipset is supported

I think you really mean VT8237?

Quoted 4 lines

so I think also in 2.8.3 that I installed, but when I rus sensor-detects on linux 2.6.1 at the end lm_sensors doesn't say of loading i2c-viapro. Maybe linux 2.6.1 has not got yet VIA VT8237 chipset?

It has. Anyway, usually sensors-detect doesn't depend on the kernel (apart from a very few quirks with hidden pci devides, maybe that's what you have here...)

Quoted 2 lines

I tryed linux 2.6.2-rc2 and lm_sensors say me to load i2c-viapro, but sensors -s && sensors say: "no sensors available!".

The i2c-viapro driver is a bus driver. It gives you access to sensor chips but doesn't drive them by itself. You need to find out which chip driver you need. Sensors-detect *should* tell you which. If it doesn't, maybe you have an unsupported chip, or no compatible chip at all (usual on laptops). You may send the whole output of sensors-detect for analysis. Do not forget to unload all i2c-related drivers before so as not to confuse sensors-detect.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
author
#3 lore raw
In reply to Gianni

Alle 11:39, gioved? 29 gennaio 2004, Gianni ha scritto:

Quoted 36 lines

I doesn't compile with "make users".
I'm using kernle 2.6.1 and trying to compile lm_sensors 2.8.3 with make users, but I get this:
/lib/modules/2.6.1/build/include/linux/highmem.h:87:36: macro "clear_user_page" requires 3 arguments, but only 2 given /lib/modules/2.6.1/build/include/linux/highmem.h:119:41: macro "copy_user_page" requires 4 arguments, but only 3 given
cat kernel/include/sensors.h.template > kernel/include/sensors.h awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >> kernel/include/sensors.h
echo '#endif' >> kernel/include/sensors.h
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2 -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer

prog/sensors/chips.c | \
        sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd prog/sensors/chips.ro:

Makefile 'dirname prog/sensors/chips.rd/Module.mk' @' > prog/sensors/chips.rd
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2 -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/proc.c

| \
        sed -e 's@^\(.*\)\.o:@lib/proc.ad lib/proc.ao: Makefile '`dirname
lib/proc.ad`/Module.mk' @' > lib/proc.ad
gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -Wall -O2
-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/chips.c
| \
        sed -e 's@^\(.*\)\.o:@lib/chips.ad lib/chips.ao: Makefile '`dirname
lib/chips.ad`/Module.mk' @' > lib/chips.ad
gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -fpic -Wall -O2
-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/proc.c
| \
        sed -e 's@^\(.*\)\.o:@lib/proc.ld lib/proc.lo: Makefile '`dirname
lib/proc.ld`/Module.mk' @' > lib/proc.ld
gcc -M -MG -I. -Ikernel/include -I/usr/local/include  -fpic -Wall -O2
-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer lib/chips.c
| \
        sed -e 's@^\(.*\)\.o:@lib/chips.ld lib/chips.lo: Makefile '`dirname
Quoted 7 lines

lib/chips.ld`/Module.mk' @' > lib/chips.ld
make: *** No rule to make target `users'. Stop.

I've got Slackware 9.1. How can it possible I cannot compile lm_sensors? I tryed with a lot of version but it's very complicated.

A linux user

I resolved: "make user" not "make users".
Sorry to disturb you.

author
#4 lore raw
In reply to Gianni

Alle 13:31, gioved? 29 gennaio 2004, Jean Delvare ha scritto:

Quoted 5 lines

Quoting Gianni <[email protected]>:

Quoted 4 lines
Quoted 3 lines

I've got Slackware 9.1. How can it possible I cannot compile lm_sensors? I tryed with a lot of version but it's very complicated.

Quoted 7 lines
Quoted 1 line

I resolved: "make user" not "make users".

AKA "very complicated" ;)

Quoted 1 line

Sorry to disturb you.

No problem.

I see that in lm_sensors 2.8.2 my VIA VT8327 chipset is supported so I think also in 2.8.3 that I installed, but when I rus sensor-detects on linux 2.6.1 at the end lm_sensors doesn't say of loading i2c-viapro. Maybe linux 2.6.1 has not got yet VIA VT8237 chipset? I tryed linux 2.6.2-rc2 and lm_sensors say me to load i2c-viapro, but sensors -s && sensors say: "no sensors available!". I read that in that case I need lm_sensors from CVS, but a friend of mine installed lm_sensors 2.8.3 on linux 2.6.2-rc2 and he got information from sensors. What I have to do?
Gianni

#5 lore raw
In reply to Gianni
Quoted 19 lines

it87-isa-0290

Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1:   +1.76 V  (min =  +1.53 V, max =  +1.87 V)
VCore 2:   +0.00 V  (min =  +2.25 V, max =  +2.75 V)   ALARM
+3.3V:     +6.46 V  (min =  +2.96 V, max =  +3.60 V)   ALARM
+5V:       +4.86 V  (min =  +4.50 V, max =  +5.48 V)
+12V:     +12.52 V  (min = +11.36 V, max = +13.80 V)
-12V:     -27.36 V  (min = -15.86 V, max = -13.40 V)   ALARM
-5V:      -13.64 V  (min = -10.13 V, max =  -9.44 V)   ALARM
Stdby:     +4.97 V  (min =  +4.50 V, max =  +5.48 V)
VBat:      +4.08 V
fan1:     3729 RPM  (min = 3000 RPM, div = 2)
fan2:        0 RPM  (min = 3000 RPM, div = 2)          ALARM
fan3:        0 RPM  (min = 3000 RPM, div = 2)          ALARM
ERROR: Can't get TEMP1 data!
ERROR: Can't get TEMP2 data!
ERROR: Can't get TEMP3 data!
Quoted 2 lines

(...)
Why I cannot get temperature?

This is a FAQ. Support for the it87 is broken in the Linux 2.6.1 + lm_sensors 2.8.3 combination, which is the one you are using. Either downgrade to lm_sensors 2.8.2 or upgrade to lm_sensors CVS.

Quoted 1 line

All those ALARM depend on /etc/sensors.conf? I have to change that file?

First of all, make sure you did not forget to run "sensors -s". This configures the chipset.

Then, yes you have to edit /etc/sensors.conf. Look for the "it87-*" section and edit to fit your hardware. You obviously can add "ignore" statements for in1 (VCore 2) and probably fan2 and fan3 (I guess you don't have these fans).

For +3.3V, there's a line to change in the configuration file. It's commented inside, you should find it easily.

Your values for negative voltages are really strange. If they don't get any better after you running "sensors -s", it may simply mean that these inputs are not wired to the monitoring chipset and you can ignore them too. If your BIOS setup screen shows some hardware monitoring values but there's nothing for negative voltages, it's probably the case.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
author
#6 lore raw
In reply to Gianni

Alle 19:38, venerd? 30 gennaio 2004, Jean Delvare ha scritto:

Quoted 21 lines
Quoted 18 lines

it87-isa-0290

Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1:   +1.76 V  (min =  +1.53 V, max =  +1.87 V)
VCore 2:   +0.00 V  (min =  +2.25 V, max =  +2.75 V)   ALARM
+3.3V:     +6.46 V  (min =  +2.96 V, max =  +3.60 V)   ALARM
+5V:       +4.86 V  (min =  +4.50 V, max =  +5.48 V)
+12V:     +12.52 V  (min = +11.36 V, max = +13.80 V)
-12V:     -27.36 V  (min = -15.86 V, max = -13.40 V)   ALARM
-5V:      -13.64 V  (min = -10.13 V, max =  -9.44 V)   ALARM
Stdby:     +4.97 V  (min =  +4.50 V, max =  +5.48 V)
VBat:      +4.08 V
fan1:     3729 RPM  (min = 3000 RPM, div = 2)
fan2:        0 RPM  (min = 3000 RPM, div = 2)          ALARM
fan3:        0 RPM  (min = 3000 RPM, div = 2)          ALARM
ERROR: Can't get TEMP1 data!
ERROR: Can't get TEMP2 data!
ERROR: Can't get TEMP3 data!
Quoted 2 lines

(...)
Why I cannot get temperature?

Quoted 4 lines

This is a FAQ. Support for the it87 is broken in the Linux 2.6.1 + lm_sensors 2.8.3 combination, which is the one you are using. Either downgrade to lm_sensors 2.8.2 or upgrade to lm_sensors CVS.

I have taken the CVS version. Ok.

Quoted 5 lines
Quoted 1 line

All those ALARM depend on /etc/sensors.conf? I have to change that file?

First of all, make sure you did not forget to run "sensors -s". This configures the chipset.

Quoted 8 lines

Then, yes you have to edit /etc/sensors.conf. Look for the "it87-*" section and edit to fit your hardware. You obviously can add "ignore" statements for in1 (VCore 2) and probably fan2 and fan3 (I guess you don't have these fans).

For +3.3V, there's a line to change in the configuration file. It's commented inside, you should find it easily.

Done.

Quoted 5 lines

Your values for negative voltages are really strange. If they don't get any better after you running "sensors -s", it may simply mean that these inputs are not wired to the monitoring chipset and you can ignore them too. If your BIOS setup screen shows some hardware monitoring values but there's nothing for negative voltages, it's probably the case.

Now I've got:
sensors
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.76 V (min = +1.56 V, max = +1.72 V) ALARM <<-- is it
dangerous? It is stable to this value and for XP is 1.65 Volt.

+3.3V:     +3.23 V  (min =  +3.13 V, max =  +3.45 V)
+5V:       +4.89 V  (min =  +4.72 V, max =  +5.24 V)
+12V:     +12.52 V  (min = +11.36 V, max = +12.60 V)
Stdby:     +4.97 V  (min =  +4.72 V, max =  +5.24 V)
VBat:      +4.08 V
fan1:     3668 RPM  (min =    0 RPM, div = 2)
CPU Temp:    +58?C  (low  =   +43?C, high =   +43?C)   sensor = thermistor <-- 
this is right but I think in winter is too much.
M/B Temp:    -39?C  (low  =   +15?C, high =   +45?C)   sensor = invalid
Temp3:      +127?C  (low  =   +15?C, high =   +45?C)   sensor = thermistor <-- 

What does it need?

eeprom-i2c-0-50

Adapter: SMBus Via Pro adapter at e800
Memory type:            DDR SDRAM DIMM
Memory size (MB):       512

Why M/B temp is negative? A lm_sensors2 bug or a bad settings into sensors.conf? From BIOS I get that temperature, maybe we need to know the formula tu calculare M/B temperature of Asus A7V600?
Thank you for all,
Gianni

#7 lore raw
In reply to Gianni

[Please CC: the mailing-list on reply.]

Quoted 4 lines

VCore 1: +1.76 V (min = +1.56 V, max = +1.72 V)
(...)
Sorry I told you bad. XP not Windows XP, but Athlon XP. I take look at the Athlon XP's data sheets on AMD site and the told VCore 1.65.

Oh OK. You should be able to select the voltage either in the BIOS setup screen or using switches or jumpers on your motherboard. It is obviously set to 1.75V at the moment. If you really believe that your CPU needs 1.65 instead, go change (unless your CPU is overclocked, which I don't recommend BTW).

Quoted 4 lines

No, it's the real temperature. I've got Asus A7V600 and in config file I found the right formula form my motherboard :D. And the BIOS sensors tell me 56?C at start up when I reboot machene after about 2 hours of activity. I think in winter 60 ? C it's too much.

I don't think my Athlon is much colder than that. These beasts tend to heat much, I fear.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#8 lore raw
In reply to Gianni
Quoted 2 lines

VCore 1: +1.76 V (min = +1.56 V, max = +1.72 V) ALARM <<-- is
it dangerous? It is stable to this value and for XP is 1.65 Volt.

I'm really astonished that you have different values under Linux and Windows. Doesn't make much sense to me, so I just don't know what to tell you.

Quoted 1 line

fan1: 3668 RPM (min = 0 RPM, div = 2)

You should considering setting a min value for this one, 3000 RPM for example.

Quoted 1 line

CPU Temp: +58?C (low = +43?C, high = +43?C) sensor > thermistor <-- this is right but I think in winter is too much.

There are a two formulas you can try in sensors.conf, depending on your motherboard. That said, they all tend to increase, not decrease the reported values. It's also possible that your motherboard needs a formula we don't know yet. Or this is the real temperature, that's not impossible.

Quoted 2 lines

Temp3: +127?C (low = +15?C, high = +45?C) sensor
= thermistor <-- What does it need?

+127 means error, most likely this temperature channel isn't used on your motherboard and you can ignore it. Or try diode instead of thermistor.

Quoted 5 lines

M/B Temp: -39?C (low = +15?C, high = +45?C) sensor > invalid

Why M/B temp is negative? A lm_sensors2 bug or a bad settings into sensors.conf? From BIOS I get that temperature, maybe we need to know the formula tu calculare M/B temperature of Asus A7V600?

Obviously a bad setting in sensors.conf. You need to set the sensor value to either 2 or 3. Here it says "invalid" so I guess you have set it to another value. Correct, run "sensors -s" and it should be fine.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
author
#9 lore raw
In reply to Gianni

Alle 22:50, sabato 31 gennaio 2004, Jean Delvare ha scritto:

Quoted 7 lines
Quoted 2 lines

VCore 1: +1.76 V (min = +1.56 V, max = +1.72 V) ALARM <<-- is
it dangerous? It is stable to this value and for XP is 1.65 Volt.

I'm really astonished that you have different values under Linux and Windows. Doesn't make much sense to me, so I just don't know what to tell you.

Sorry I told you bad. XP not Windows XP, but Athlon XP. I take look at the Athlon XP's data sheets on AMD site and the told VCore = 1.65.

Quoted 5 lines
Quoted 1 line

fan1: 3668 RPM (min = 0 RPM, div = 2)

You should considering setting a min value for this one, 3000 RPM for example.

I'll do it.

Quoted 8 lines
Quoted 1 line

CPU Temp: +58?C (low = +43?C, high = +43?C) sensor > > thermistor <-- this is right but I think in winter is too much.

There are a two formulas you can try in sensors.conf, depending on your motherboard. That said, they all tend to increase, not decrease the reported values. It's also possible that your motherboard needs a formula we don't know yet. Or this is the real temperature, that's not impossible.

No, it's the real temperature. I've got Asus A7V600 and in config file I found the right formula form my motherboard :D. And the BIOS sensors tell me 56?C at start up when I reboot machene after about 2 hours of activity. I think in winter 60 ? C it's too much.

Quoted 9 lines
Quoted 2 lines

Temp3: +127?C (low = +15?C, high = +45?C) sensor
= thermistor <-- What does it need?

+127 means error, most likely this temperature channel isn't used on your motherboard and you can ignore it. Or try diode instead of thermistor.

Quoted 2 lines

M/B Temp: -39?C (low = +15?C, high = +45?C) sensor > > invalid

Quoted 7 lines
Quoted 3 lines

Why M/B temp is negative? A lm_sensors2 bug or a bad settings into sensors.conf? From BIOS I get that temperature, maybe we need to know the formula tu calculare M/B temperature of Asus A7V600?

Obviously a bad setting in sensors.conf. You need to set the sensor value to either 2 or 3. Here it says "invalid" so I guess you have set it to another value. Correct, run "sensors -s" and it should be fine.

Ok, thank you.
Gianni