Newsgroup: it.comp.os.linux.iniziare
Titolo: lm-sensors : ora glii do una martellata...

:-) of course !
Sto cercando (invano) di far funzionare lm-sensors sul mio serverino
casalingo dual cpu (2 x P3-1000), mobo Asus cuv4x-d, kernel 2.4.18 oppure
2.4.22 (la cosa non cambia).
Ho ricompilato il kernel con il supporto I2C, NON ho trovato dove poter
selezionare i2c-viapro (che e' il chipset della mia mobo, "via 686"),  ho
eseguito il sensors-detect in cui mi riconosce la mobo, mi dice di caricare
il modulo i2c-viapro, ma poi ricevo un bel "module not found" (vedi qua
sotto).
Sono desolato : che devo fare per leggere tensioni temperature e ventole di
questo sistema???
Grazie,
RR
(segue sensors-detect)
*******************************************
 mefistofele:~# sensors-detect
 This program will help you to determine which I2C/SMBus modules you need to
 load to use lm_sensors most effectively.
 You need to have installed lm-sensors modules before you can use
 some functions of this utility.
 Also, you need to be `root', or at least have access to
 the /dev/i2c[-/]* files for some 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.
 IF THIS IS AN IBM THINKPAD, PRESS CTRL-C NOW!
 IBM Thinkpads have a severely broken i2c/SMBus implementation,  just
scanning
 the bus will break your thinkpad forever!
 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-viapro' for device 00:04.4: VIA Technologies VT82C686 Apollo
ACP
I
Probe succesfully concluded.
 We will now try to load each adapter module in turn.
Load `i2c-viapro' (say NO if built into your kernel)? (YES/no):
modprobe: Can't locate module i2c-viapro
Loading failed ()... skipping.
 Do you now want to be prompted for non-detectable adapters? (yes/NO):
 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):
modprobe: Can't locate module i2c-dev
 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 VT 82C686 Integrated Sensors'
  Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
  Trying address 0x0290... Failed!
 Now follows a summary of the probes I have just done.
 Just press ENTER to continue:
 I will now generate the commands needed to load the I2C modules.
 Sometimes, a chip is available both through the ISA bus and an I2C bus.
 ISA bus access is faster, but you need to load an additional driver module
 for it. If you have the choice, do you want to use the ISA bus or the
 I2C/SMBus (ISA/smbus)?
WARNING! If you have some things built into your kernel, the
below list will contain too many modules. Skip the appropriate ones!
To load everything that is needed, edit /etc/modules and add the modules
 listed here to it:
#----cut here----
# I2C adapter drivers
# I2C chip drivers
#----cut here----
Then, run /etc/init.d/modutils
To make the sensors modules behave correctly, add these lines to
/etc/modutils/local and run update-modules:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
mefistofele:~#
***********************************

 (vedi qua sotto).
Devi probabilmente installare il pacchetto con i moduli i2c-*.
Nella Suse sono compresi nel kernel da un pezzo, nelle altre distro non
so...
Ciao.
-- 
*** Linux user # 198661 --- ICQ 33500725 ***
***  Home  
http://web.tiscali.it/kailed
  ***
       ***  Powered by SuSeLinux  ***

 so...
Uso Debian 3.0r1...
RR

 [261003 13:45]:

Ho smanettato un bel po' .. ma alla fine funzionano con la mia woody.
Dopo la ricompilazione del kernel
Occorre anche aggiornare i moduli i2c e lm-sensors.
Scaricare le versioni aggiornate di
i2c-source
lm-sensors-source
verranno messi in /usr/src/
(occorre che esista il link simbolico /usr/src/linux alla versione del
kernel che ci interessa es /usr/src/linux-2.4.21/)
scompattarli: andranno nel kernel tree sotto modules
entrare rispettivamnete nelle directory
/usr/src/modules/i2c
/usr/src/modules/lm-sensors
e fare
make clean
make all
make install
poi 
depmod -a per aggiurnare i moduli.
-- 
ciao.
~pingo~
Per risposte in email sostituire (
pingo.net
) con (
email.it
)

Grazie !
Provero' il prima possibile !
Riccardo :-)