PDA

View Full Version : lm_sensors su 2.6


NA01
18-02-2004, 14:25
ho installato gli ultimi lmsensors con i2c messo nel kernel come modulo.
il programma sensors-detect però da quest'output :(


This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-*
files, for most things.
If you have patched your kernel and have some drivers built in, you can
safely answer NO if asked to load some modules. In this case, things may
seem a bit confusing, but they will still work.

We can start with probing for (PCI) I2C or SMBus adapters.
You do not need any special privileges for this.
Do you want to probe now? (YES/no): Probing for PCI bus adapters...
Use driver `i2c-nforce2' for device 00:01.1: nVidia Corporation nForce2 SMBus (MCP)
Probe succesfully concluded.

We will now try to load each adapter module in turn.
Load `i2c-nforce2' (say NO if built into your kernel)? (YES/no): Loading failed... skipping.
Do you now want to be prompted for non-detectable adapters? (yes/NO): Load `i2c-elektor' (say NO if built into your kernel)? (YES/no): Loading failed... skipping.
Load `i2c-elv' (say NO if built into your kernel)? (YES/no): Module loaded succesfully.
Load `i2c-philips-par' (say NO if built into your kernel)? (YES/no): Loading failed... skipping.
Load `i2c-velleman' (say NO if built into your kernel)? (YES/no): Loading failed... skipping.
To continue, we need module `i2c-dev' to be loaded.
If it is built-in into your kernel, you can safely skip this.
i2c-dev is not loaded. Do you want to load it now? (YES/no): Loading failed, expect problems later on.

We are now going to do the adapter probings. Some adapters may hang halfway
through; we can't really help that. Also, some chips will be double detected;
we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain address, you can
specify that address to remain unprobed. That often
includes address 0x69 (clock chip).

Some chips are also accessible through the ISA bus. ISA probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. Do you want to scan the ISA bus? (YES/no): Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83697HF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. Do you want to scan for Super I/O sensors? (YES/no): Probing for `ITE 8712F Super IO Sensors'
Failed! (0x8708)
Probing for `SMSC 47M10x Super IO Fan Sensors'
Failed!
Probing for `SMSC 47M14x Super IO Fan Sensors'
Failed!
Probing for `VT1211 Super IO Sensors'
Failed! (0x87)
Probing for `Winbond W83627HF Super IO Sensors'
Failed! (0x87)
Probing for `Winbond W83627THF Super IO Sensors'
Failed! (0x87)
Probing for `Winbond W83637HF Super IO Sensors'
Failed! (0x87)
Probing for `Winbond W83697HF Super IO Sensors'
Failed! (0x87)
Probing for `Winbond W83697UF Super IO PWM'
Failed! (0x87)

Sorry, no chips were detected.
Either your sensors are not supported, or they are
connected to an I2C bus adapter that we do not support.
See doc/FAQ, doc/lm_sensors-FAQ.html, or
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/lm_sensors-FAQ.html
(FAQ #4.24.3) for further information.
If you find out what chips are on your board, see
http://secure.netroedge.com/~lm78/newdrivers.html for driver status.


scheda mamma asus a7n8x-x, supportata da ic2 a partire dal kernel 2.6.0 :(

ciao

FuocoNero
18-02-2004, 14:39
http://forum.hwupgrade.it/showthread.php?s=&threadid=625518

Come hai fatto a compilare i2c se il kernel 2.6.X non lo supporta?

NA01
18-02-2004, 14:43
Originariamente inviato da FuocoNero
http://forum.hwupgrade.it/showthread.php?s=&threadid=625518

Come hai fatto a compilare i2c se il kernel 2.6.X non lo supporta?
i2c ho preso quelli nel kernel che a detta delle tabelle sul sito di lm_sensors vanno bene per la mia mamma a partire dal 2.6.0 .
ho aperto un altro 3d perchè ora lm_sensors si compila (anche se solo in user space, altrimenti mi dà errore), ma il riconoscimento dei sensori non funzia a dovere!
ciao

NA01
18-02-2004, 14:48
se può essere utile l'errore che mi dà se non faccio make user ma solo il classico make è questo:

echo '#endif' >> kernel/include/sensors.h
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2 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 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 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 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 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 `linux/i2c-proc.h', needed by `kernel/chips/vt1211.d'. Stop.


ciao

NA01
18-02-2004, 15:37
azz come và giù veloce :D
non c'è nessuno??
mi sento come la particella di sodio :D:sofico: :mc:

lovaz
18-02-2004, 15:43
Ma che sensore monta la tua mb?

NA01
18-02-2004, 15:45
Originariamente inviato da lovaz
Ma che sensore monta la tua mb?
bella domanda!
non lo dice, dice solo che è supportato da lm_sensors>2.8 e da i2c del kerenl >2.6

so solo che con il 2.4funziava tutto :(

ciao

lovaz
18-02-2004, 15:45
E che modulo caricava con il 2.4? Prova a caricare lo steso modulo a mano

NA01
18-02-2004, 15:50
non esiste più.
la spiegazione credo sia questa:

Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs!
For older kernels, make sure you have done 'modprobe i2c-proc'!

pinball
18-02-2004, 16:27
ma hai compilto tutti i moduli del kernel relativi ai sensori?

sys in fstab ce l'hai? se si dovresti vedere le temp in /sys/bus/i2c/device o qualcosa del genere..io non ho installato assolutamente niente di esterno al kernel!! :confused:

[-°-3DM@RK-°-]©
18-02-2004, 19:13
Originariamente inviato da NA01
non esiste più.
la spiegazione credo sia questa:

Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs!
For older kernels, make sure you have done 'modprobe i2c-proc'!


Per il sys fs risolvi così da root:

mkdir /sys
mount -t sysfs sysfs /sys

pinball
18-02-2004, 19:27
o meglio... fai prima....

su fstab:

none /sys sysfs defaults 0 0

NA01
18-02-2004, 19:29
Originariamente inviato da [-°-3DM@RK-°-]©
Per il sys fs risolvi così da root:

mkdir /sys
mount -t sysfs sysfs /sys
mitico!
ora però dice no sensors found :(

pinball
18-02-2004, 19:35
Originariamente inviato da NA01
mitico!
ora però dice no sensors found :(


am che te ne fai di lmsensosr!

/sys/devices/legacy/i2c-0/0-0290

sono qua le temp!

[-°-3DM@RK-°-]©
18-02-2004, 19:43
Il problema è che non tutti i driver per i chip sono stati portati nel kernel 2.6, alcuni devono essere riscritti/riveduti (io dovrei rivedere il w83627hf che non è stato ancora portato nel 2.6 (ma si può usare il modulo per w83781d)).
Tu dovresti avere il w83l785ts-s (se non ricordo male) che è supportato, controlla quindi di avere attivato nel kernel i moduli i2c-dev, isa-bus e nforce2 e w83l785ts-s da quello che ti dice sensors-detect non li hai compilati (loading i2c-nforce2..... failed)

NA01
18-02-2004, 20:10
non li carica perchè ho provato a metterli nel kernel staticamente :(

ciao

[-°-3DM@RK-°-]©
18-02-2004, 20:17
ok, mettili come moduli, rifai il sensors-detect e posta output

[-°-3DM@RK-°-]©
18-02-2004, 20:20
Che versione di kernel e lm_sensors usi? per la tua serve almeno 2.6.2 per il kernel e lm_sensors 2.8.3 (ma c'è il 2.8.4)

NA01
18-02-2004, 20:24
2.8.4 e kernel 2.6.2 (ora sto compilando il 2.6.3)

ciao

NA01
18-02-2004, 20:34
non è che il fatto che mi dà un errore in fase di compilazione di lm_sensors può essere un indizio?
mi sembra strano di dover fare make user...

ciao

[-°-3DM@RK-°-]©
18-02-2004, 20:36
no è giusto così, con il kernel 2.6 bisogna fare make user e poi make user install

NA01
18-02-2004, 20:43
Originariamente inviato da [-°-3DM@RK-°-]©
no è giusto così, con il kernel 2.6 bisogna fare make user e poi make user install

ecco le nuove dal fronte occidentale!!!!!
FUNZIONAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!

ho fatto il banfone e ho usato make -k :cool:
così senbra andare meglio, anche se confonde il procio con la mamma.
mi potresti spiegare che vogliono dire le due voci amd e intel????:eek:


ciao

eeprom-i2c-1-51
Adapter: SMBus nForce2 adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

w83l785ts-i2c-2-2e
Adapter: SMBus nForce2 adapter at 5500
ERROR: Can't get temperature data!

asb100-i2c-2-2d
Adapter: SMBus nForce2 adapter at 5500
VCore 1: +1.63 V (min = +1.52 V, max = +1.68 V) ALARM
+3.3V: +3.30 V (min = +3.12 V, max = +3.46 V)
+5V: +5.00 V (min = +4.73 V, max = +5.24 V)
+12V: +11.49 V (min = +10.76 V, max = +13.19 V)
-12V (reserved):
-12.01 V (min = -0.00 V, max = -0.00 V)
-5V (reserved):
-5.04 V (min = -0.00 V, max = -0.00 V)
CPU Fan: 5532 RPM (min = 1997 RPM, div = 4)
Chassis Fan:
5037 RPM (min = 3994 RPM, div = 2)
Power Fan: 0 RPM (min = 3994 RPM, div = 2)
M/B Temp: +40°C (high = +0°C, hyst = +0°C)
CPU Temp (Intel):
+32°C (high = +45°C, hyst = +40°C)
Power Temp:
-0°C (high = +0°C, hyst = +0°C)
CPU Temp (AMD):
+25°C (high = +80°C, hyst = +75°C)
vid: +1.600 V
alarms:



:eek:

NA01
18-02-2004, 20:59
scusa se abuso della tua pazienza
alla fine rilevo quattro sensori asb100-2d e un w83l ecc.. (quello che avevi detto prima per intenderci)
dove sono piazzati?
sensors mi sembra faccia un bel casino :sofico:

poi mi preoccupa questo:

w83l785ts-i2c-2-2e
Adapter: SMBus nForce2 adapter at 5500
ERROR: Can't get temperature data!


la situazione si è evoluta, ma mi sa ce manca ancora qualcosa :D

ciao e grazie!

NA01
18-02-2004, 21:12
ho rifatto l'installazione con il modulo del sensore come integrato.
forse ora è anche peggio, dato che rileva solo gli altri 4

cosa dici? è giusto così?

eeprom-i2c-1-51
Adapter: SMBus nForce2 adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

asb100-i2c-2-2d
Adapter: SMBus nForce2 adapter at 5500
VCore 1: +1.65 V (min = +1.26 V, max = +1.90 V)
+3.3V: +3.31 V (min = +2.96 V, max = +3.63 V)
+5V: +5.11 V (min = +4.49 V, max = +5.51 V)
+12V: +11.37 V (min = +9.55 V, max = +14.41 V)
-12V (reserved):
-11.88 V (min = -0.00 V, max = -0.00 V)
-5V (reserved):
-4.98 V (min = -0.00 V, max = -0.00 V)
CPU Fan: 5769 RPM (min = 2689 RPM, div = 2)
Chassis Fan:
5037 RPM (min = 2710 RPM, div = 2)
Power Fan: 0 RPM (min = 2732 RPM, div = 2)
M/B Temp: +35°C (high = +80°C, hyst = +75°C)
CPU Temp (Intel):
+32°C (high = +80°C, hyst = +75°C)
Power Temp:
-0°C (high = +80°C, hyst = +75°C)
CPU Temp (AMD):
+25°C (high = +80°C, hyst = +75°C)
vid: +1.600 V
alarms:


le temperature sembrano molto sballate :(
ciao

unarana
18-02-2004, 21:34
edita il file /etc/sensors.conf per cercare di sistemare il tutto

Ciao :D

NA01
19-02-2004, 06:25
Originariamente inviato da unarana
edita il file /etc/sensors.conf per cercare di sistemare il tutto

Ciao :D

ho trovato questo:

# Manufactor: ASUS
# Model: A7N8X-X
# By: 2003-12-13, Christian Hammers <ch@lathspell.de>
# Modules: w83781d i2c-proc i2c-nforce2 i2c-core
# Version: sensors version 2.8.1
# Remarks: -
#
# lspci
# 00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
# 00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
# 00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
#
# sensors
# as99127f-i2c-2-2d
# Adapter: SMBus nForce2 adapter at 5500
# Algorithm: Non-I2C SMBus adapter
# VCore 2: +1.66 V (min = +1.57 V, max = +1.73 V)
# +3.3V: +3.38 V (min = +3.14 V, max = +3.46 V)
# +5V: +4.97 V (min = +4.74 V, max = +5.24 V)
# +12V: +11.63 V (min = +10.83 V, max = +13.19 V)
# -12V: -12.08 V (min = -0.00 V, max = -0.00 V)
# -5V: -4.58 V (min = -0.00 V, max = -0.00 V)
# CPU Fan: 2265 RPM (min = 1500 RPM, div = 2)
# P/S Fan: 1795 RPM (min = 1500 RPM, div = 2)
# CPU Temp: +36°C (limit = +60°C)
# M/B Temp: +24.4°C (limit = +120°C, hysteresis = +100°C)
# vid: +1.650 V
# alarms:
# beep_enable:
# Sound alarm enabled
#

chip "as99127f-*"
label in0 "VCore 1"
ignore in0 # reported sometimes bogus values
label in1 "VCore 2"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "-12V"
label in6 "-5V"
label fan1 "CPU Fan"
label fan2 "P/S Fan"
ignore fan3
label temp1 "CPU Temp"
label temp2 "M/B Temp"
ignore temp3

compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((28/10)+1)*@ , @/((28/10)+1)
compute in5 -(240/60.4)*@ , -@/(240/60.4)
compute in6 -(90.9/60.4)*@ , -@/(90.9/60.4)
compute fan1 @/2.0, @/2.0
compute fan2 @/2.0, @/2.0
compute temp2 @*2.0, @/2.0

set in0_min vid*0.95
set in0_max vid*1.05
set in1_min vid*0.95
set in1_max vid*1.05
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
set in3_min 5.0 * 0.95
set in3_max 5.0 * 1.05
set in4_min 12 * 0.90
set in4_max 12 * 1.10
set in5_max -12 * 0.90
set in5_min -12 * 1.10
set in6_max -5 * 0.95
set in6_min -5 * 1.05

che però mi dà di nuovo dei problemi con uno dei sensori, senza contare che ne ho 5 e non so a cosa si riferiscono :D

asb100-i2c-2-2d
eeprom-i2c-1-51
Adapter: SMBus nForce2 adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

Adapter: SMBus nForce2 adapter at 5500
in0: +1.65 V (min = +1.26 V, max = +1.90 V)
in1: +1.65 V (min = +1.26 V, max = +1.90 V)
in2: +3.30 V (min = +2.96 V, max = +3.63 V)
in3: +3.02 V (min = +2.67 V, max = +3.28 V)
in4: +2.99 V (min = +2.51 V, max = +3.79 V)
in5: +2.99 V (min = +0.00 V, max = +0.00 V)
in6: +3.01 V (min = +0.00 V, max = +0.00 V)
fan1: 5672 RPM (min = 2689 RPM, div = 2)
fan2: 4963 RPM (min = 2710 RPM, div = 2)
fan3: 0 RPM (min = 2732 RPM, div = 2)
temp1: +31°C (high = +80°C, hyst = +75°C)
temp2: +27°C (high = +80°C, hyst = +75°C)
temp3: -0°C (high = +80°C, hyst = +75°C)
temp4: +25°C (high = +80°C, hyst = +75°C)
vid: +1.600 V
alarms:

w83l785ts-i2c-2-2e
Adapter: SMBus nForce2 adapter at 5500
ERROR: Can't get temperature data!


ciao

ri
19-02-2004, 08:11
qua ci sono le istruzioni per configurare lm_sensors su kernel 2.6 :)
le proverò oggi, ma intanto ve le passo

http://www.sistemistiindipendenti.org/pdf/sensors_k2.6.pdf

NA01
19-02-2004, 13:29
Originariamente inviato da ri
qua ci sono le istruzioni per configurare lm_sensors su kernel 2.6 :)
le proverò oggi, ma intanto ve le passo

http://www.sistemistiindipendenti.org/pdf/sensors_k2.6.pdf
la procedura che è qui a me non funzia.
si installa ma non rileva nulla :(

io ho fatt5o make -k e make -k install.
ora sembra andare, solo non so dove siano i sensori (sembrano essere tre, dato che due danno risultati a caso).

ciao