View Full Version : 2.6 e sensor
Ho abilitato i moduli nel kernel , ora come li uso?? ;)
carichi i moduli. poi vai in /sysfs e li leggi con cat :p anche gkrellm li vede ma cosi è troppo semplice :D
ciao ;)
Non riesco a farli andare. Ho caricato i seguenti moduli
via686a 19716 0
i2c_sensor 2944 1 via686a
i2c_viapro 6028 0
i2c_dev 10112 0
i2c_core 24964 4 via686a,i2c_sensor,i2c_viapro,i2c_dev
e aggiunto a fstab
sysfs /sys sysfs defaults 0 0
Cosa mi manca?
:rolleyes:
AnonimoVeneziano
20-11-2003, 18:58
hai reboottato per far caricare SYSFS ??
Poi vai in /sys e ti leggi i sensori...
Ciao
Originariamente inviato da AnonimoVeneziano
hai reboottato per far caricare SYSFS ??
Guarda la data del post..;)
Dentro a /sys/bus/i2c/devices non c'è nulla
:cry:
Sir Wallace
09-01-2004, 19:50
umh... ancora no info dettagliate?
Stessi moduli di hrc, sysfs montato e funzionante... kernel 2.6.1
Ho letto che ad lmsensors per il 2.6 ci stanno lavorando... ma a chi va, ci dice come ha fatto???
Grassie :)
se li hai installati lancia sensors ;)
uh! :eek:
non mi ero accorto che era di secoli fà!
perchè lo avete tirato su???? :D
prendi lm-sensors 2.8.2
fai make user
make user_install
sensors
sempre hai messo i moduli giusti di i2c
devi cmq montare il sysfs
lm-sensors non funge col 2.6... ti riporto una guida che mi ha permesso di usare i sensori:
Quick & Dirty Guide:
Firstly, unmerge i2c, gkrellm-sensors and lm-sensors. Apparantly, they are not needed any more. Just follow these
steps and everything *should* work fine (at least for me it did)
- Get the new Kernel-Sources (emerge development-sources or emerge mm-sources).
- Compile i2c as modules (Device Drivers -> Character Devices -> I2C)
- Pick I2C Support <M> and I2C device interface <M>
- Pick the items from I2C Hardware Bus support matching your hardware (compile as modules).
- Pick the items from I2C Hardware Sensors Chip support matching your hardware (compile as modules)
- Do a mkdir /sys as root if it doesn't already exist.
- Compile your new kernel, put it in /boot and reboot.
- now modprobe i2c_core and the other modules you picked.
- If you want your sensors to show up in gkrellm, just re-emerge gkrellm and load it. Open up properties and see the
built-in "sensors" item. you should find all of your sensors there.
If all went right, you should now have something like this:
Codice:
fuero@bmfh fuero $ ls /sys/bus/i2c/devices/
0-0290
fuero@bmfh fuero $ ls /sys/bus/i2c/devices/0-0290/
alarms fan_div1 fan_min1 in_input3 in_input7 in_max3 in_max7 in_min3
in_min7 pwm1 sensor2 temp_max2
beep_enable fan_div2 fan_min2 in_input4 in_input8 in_max4 in_max8 in_min4
in_min8 pwm2 temp_input1 temp_min1
beep_mask fan_input1 in_input0 in_input5 in_max0 in_max5 in_min0 in_min5 name
pwm_enable2 temp_input2 temp_min2
detach_state fan_input2 in_input2 in_input6 in_max2 in_max6 in_min2 in_min6
power sensor1 temp_max1
If you can't see this, then you have the wrong modules loaded. Try activating them all (in I2C Hardware Sensors
Chip) and load one after the other until you succeed.
2.6.0-test9-mm1 here, works fine with i2c and displaying data with Gkrellm2.
Codice:
fuero@bmfh fuero $ lsmod | grep i2c
i2c_viapro 5900 0
i2c_isa 1664 0
i2c_sensor 2368 1 w83781d
i2c_core 21256 4 w83781d,i2c_viapro,i2c_isa,i2c_sensor
I am using a VIA KT 400 Board.
Good luck!
*UPDATE* If you want to use this with GKrellM, you have to re-emerge it after compiling the modules.
Originariamente inviato da cn73
lm-sensors non funge col 2.6... ti riporto una guida che mi ha permesso di usare i sensori:
lm-sensors 2.8.2 funziona col kernel 2.6
Sir Wallace
10-01-2004, 17:09
I 2.8.2? Ok, allora li aspettero' nel repository della sid... grazie a tutti!! ;)
highland:/sys/bus/i2c/devices# lsmod | grep i2c
i2c_sensor 2944 1 via686a
i2c_isa 1920 0
i2c_viapro 6924 0
i2c_dev 10240 0
i2c_core 25288 5 via686a,i2c_sensor,i2c_isa,i2c_viapro,i2c_dev
Pero' /sys e' vuota.... :( :( :cry:
io sto impazzendo per i sensor
anche io uso il via686a come modulo +eeprom +adm1021(circa)
ma il sysfs mi da 0 quando cerco di leggere con cat una temp o un qualsiasi valore del bus i2c.
non riesco a capire il perche
sono passato pure al 2.6.1 che volevo saltare in attesa del .2 con aggiornamenti alsa ma nisba
se qualcuno usa il via686a o gl'altri moduli e riesce a leggere il sysfs in modo corretto(non tutti 0) mi puo allegare il suo .config?
Ho messo il 2.6.1 e ce l'ho fatta. Ho messo tutto come moduli, questi
i2c_viapro 5068 0
i2c_isa 1664 0
via686a 18120 0
i2c_dev 8064 0
i2c_sensor 2368 1 via686a
i2c_core 20680 5 i2c_viapro,i2c_isa,via686a,i2c_dev,i2c_sensor
thx hrc211v, ho gli stessi moduli ma nisba, avevo letto che potevano dare problemi i2c_viapro e via 686a, e non mi leggono, mi dice sempre unavaible from sysfs o simile.
ho provato lm-sensors da cvs, giusto per sfizio, e come beneficio mi legge i moduli dimm.
puoi proprio allegarmi il tuo .config? ci studio un poco su
Sir Wallace
12-01-2004, 15:45
Ma porc! :mad:
Ho praticamente i tuoi stessi moduli... kernel 2.6.1... e nulla! :(
La dir device sotto /sys è vuota... :cry:
Hrc, ma tu usi lm_sensors 2.8.2 o le temp le leggi così, aggratise?!
La mia mobo è una abit kt7, con chip kt133 e col kernel 2.4.2x con quei moduli il /proc/etc etc erapopolato e funzionava.... :confused: :confused: :confused:
Questo è il mio config
Tutta ma proprio tutto i2c l'ho messa come modulo!
Originariamente inviato da Sir Wallace
Hrc, ma tu usi lm_sensors 2.8.2 o le temp le leggi così, aggratise?!
Gratis
Sir Wallace
12-01-2004, 16:47
:confused:
Vabbè... mettere tutto i2c come modulo 'serve' solo per 'scoprire' quello giusto per il tuo hw, no? come hai fatto poi a far caricare quelli giusti? Sei andato ad esclusione? Li ha 'imbroccati' da solo?
l'avete montato il sysfs?
none /sys sysfs defaults 0 0
in /etc/fstab
Originariamente inviato da Sir Wallace
:confused:
Vabbè... mettere tutto i2c come modulo 'serve' solo per 'scoprire' quello giusto per il tuo hw, no? come hai fatto poi a far caricare quelli giusti? Sei andato ad esclusione? Li ha 'imbroccati' da solo?
Bè li conoscevo. Se sono uguali ai miei, prova col mio config
thx ancora per il config.
si il sysfs e montato
/dev/hda3 on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
Sir Wallace
13-01-2004, 08:38
Il .config è simile al mio.. usi devfs?
sysfs è montato e qualcosa dentro c'è... tranne le temp.
:confused: :confused:
Originariamente inviato da GhePeU
lm-sensors 2.8.2 funziona col kernel 2.6
Peccato che con molte distro non è stato ancora inserito nei repository...
vBulletin® v3.6.4, Copyright ©2000-2026, Jelsoft Enterprises Ltd.