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