I know this has probably asked a million times before... still, after reading docs and all, I'm confused by all the options one can use in modules.conf I'm using SuSE Pro 7.2 in Spanish. I can succesfully use my Microsoft USB Sidewinder Precision Joystick, but I have to manually load the appropiate modules. The same thing with my Winbond sensor chip. I'd like this to happen automatically when the correspondign /dev files are accesed. I tried with alias char-major-13 input below input joydev sidewinder then running depmod -a, but it doesn't work. And I have no idea how to set modules.conf for automatic loading of the i2c-core, i2c-isa, i2c-proc and w83781d modules for my Winbond sensor chip. Can someone lend a hand here? Thanks. Oscar Ross
oross@att.net.mx wrote:
then running depmod -a, but it doesn't work. And I have no idea how to set modules.conf for automatic loading of the i2c-core, i2c-isa, i2c-proc and w83781d modules for my Winbond sensor chip.
I don't know about doing it with module.conf, but you can add the appropriate modprobe to boot.local for automatic loading at boot. -- Joe & Sesil Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: www.mydestiny.net/~joe_morris Registered Linux user 231871
El Sáb 02 Feb 2002 18:38, escribiste:
oross@att.net.mx wrote:
then running depmod -a, but it doesn't work. And I have no idea how to set modules.conf for automatic loading of the i2c-core, i2c-isa, i2c-proc and w83781d modules for my Winbond sensor chip.
I don't know about doing it with module.conf, but you can add the appropriate modprobe to boot.local for automatic loading at boot.
Thanks for your prompt reply. I'm doing it like that so far... but that's not loading on demand.... it's loading wether you use the module or not. I'd like to set it up so that when ... say ... xmame checks my /dev/js0 file, the necesary modules get loaded... same thing with gkrellm, when it reads my sensor file, the appropiate modules get loaded. Any ideas? Thanks again Oscar Ross
Oscar Arturo Ross Gurrola schrieb:
El Sáb 02 Feb 2002 18:38, escribiste:
oross@att.net.mx wrote:
then running depmod -a, but it doesn't work. And I have no idea how to set modules.conf for automatic loading of the i2c-core, i2c-isa, i2c-proc and w83781d modules for my Winbond sensor chip.
I don't know about doing it with module.conf, but you can add the appropriate modprobe to boot.local for automatic loading at boot.
Thanks for your prompt reply. I'm doing it like that so far... but that's not loading on demand.... it's loading wether you use the module or not. I'd like to set it up so that when ... say ... xmame checks my /dev/js0 file, the necesary modules get loaded... same thing with gkrellm, when it reads my sensor file, the appropiate modules get loaded.
Any ideas?
Well, I think that's what /etc/modules.conf is good for. There must be either a Block-major-something or char-major-something associated with /dev/js0. From /usr/src/linuc/Documentation/devices.txt: 13 char Input core 0 = /dev/input/js0 First joystick 1 = /dev/input/js1 Second joystick [...] 15 char Joystick 0 = /dev/js0 First analog joystick 1 = /dev/js1 Second analog joystick So the device is char-major-15 or char-major-13 so your entry could be alias char-major-15 <your module name withot .o> Sadly, I am not to good on this things and might be entirely wrong. Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\
El Dom 03 Feb 2002 04:11, escribiste:
Well, I think that's what /etc/modules.conf is good for. There must be either a Block-major-something or char-major-something associated with /dev/js0.
From /usr/src/linuc/Documentation/devices.txt: 13 char Input core 0 = /dev/input/js0 First joystick 1 = /dev/input/js1 Second joystick [...] 15 char Joystick 0 = /dev/js0 First analog joystick 1 = /dev/js1 Second analog joystick
So the device is char-major-15 or char-major-13
so your entry could be
alias char-major-15 <your module name withot .o>
Sadly, I am not to good on this things and might be entirely wrong.
Juergen
Thanks Juergen. That's precisely what I'm trying to do. It works perfectly with my IDE CD-RW, I just had to modify modules.conf to read: alias scsi-hostadapter on alias block-major-11 ide-scsi and now, if and only if any program tries to access my CD drives, the ide-scsi module loads and sets up my drives!! I'd love to have my joystick and sensors work like that There are two problems. 1.- device file char-major-13 is not only for joysticks, but for ALL USB input devices, including keyboards and mice (do an ls -l under /dev/input ). So the alias in modules.conf would look like this alias char-major-13 input (not alias char-major-13 sidewinder) This of course, doesn't help with loading my joystick. By the way, my USB optical mouse works perfectly, it's module get's loaded at boot up, not on demand, same with the 'input.o' module. Oh, char-major-15 used to be the joystick device file before Linux 2.4.x (as far as I know). 2.- Three modules need to be loaded for my USB joystick to work (in this order): input (gets loaded at bootup) joydev sidewinder The semantics of the modules.conf file to do this are making me dizzy, I need help!! Thanks again Oscar Ross
On Monday 04 February 2002 03.34, Oscar Arturo Ross Gurrola wrote:
1.- device file char-major-13 is not only for joysticks, but for ALL USB input devices, including keyboards and mice (do an ls -l under /dev/input ). So the alias in modules.conf would look like this
alias char-major-13 input (not alias char-major-13 sidewinder)
Try alias char-major-13-0 sidewinder if it's /dev/input/js0
This of course, doesn't help with loading my joystick. By the way, my USB optical mouse works perfectly, it's module get's loaded at boot up, not on demand, same with the 'input.o' module. Oh, char-major-15 used to be the joystick device file before Linux 2.4.x (as far as I know).
2.- Three modules need to be loaded for my USB joystick to work (in this order):
input (gets loaded at bootup) joydev sidewinder
pre-install sidewinder /sbin/modprobe "joydev" regards Anders
participants (5)
-
Anders Johansson
-
Joe & Sesil Morris (NTM)
-
Juergen Braukmann
-
oross@att.net.mx
-
Oscar Arturo Ross Gurrola