[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Installing a joystick



Thanks for the quick reply.  It turns out the nodes are there, they must have been created at install:


lrwxrwxrwx    1 root     root            9 Dec 28  2001 /dev/js0 -> input/js0
lrwxrwxrwx    1 root     root            9 Dec 28  2001 /dev/js1 -> input/js1
lrwxrwxrwx    1 root     root            9 Dec 28  2001 /dev/js2 -> input/js2
lrwxrwxrwx    1 root     root            9 Dec 28  2001 /dev/js3 -> input/js3
crw-------    1 brenden  root      13,   0 Aug 30  2001 /dev/input/js0
crw-------    1 brenden  root      13,   1 Aug 30  2001 /dev/input/js1
crw-------    1 brenden  root      13,   2 Aug 30  2001 /dev/input/js2
crw-------    1 brenden  root      13,   3 Aug 30  2001 /dev/input/js3

However, "jstest /dev/js0" or "/dev/input/js0" gives me "No such device".  I think the permissions are ok (brenden is my non-root login) but nothing's working. Hmm....

All of the modules seem to be loaded: adi and joydev are the one's for me (see the documentation in /usr/src/linux/Documentation).

Module                  Size  Used by
joydev                  6224   0 (unused)
adi                     6512   0 (unused)
gameport                1936   0 [adi]
input                   3840   0 [joydev adi]
ide-cd                 27040   0 (autoclean)
cdrom                  28640   0 (autoclean) [ide-cd]
emu10k1                49584   0 (autoclean)
soundcore               4464   4 (autoclean) [emu10k1]
binfmt_misc             6416   1
autofs                 11584   0 (autoclean) (unused)
ipchains               39232   0
nls_iso8859-1           2832   3 (autoclean)
nls_cp437               4352   3 (autoclean)
vfat                    9744   3 (autoclean)
fat                    32512   0 (autoclean) [vfat]
tulip                  39232   1
ext3                   64624   1
jbd                    41056   1 [ext3]

I can't figure this one out.  Maybe I'll post on the developer list next.  There must be something I'm missing.

Brenden


Mikkel L. Ellertson wrote:
On Sun, 8 Dec 2002, Brenden Towey wrote:

  
Hey all, this is a lot less critical than I most of the missives here, 
but I'm looking for help installing a joystick on my 7.3 system.

I think I have all the drivers now (joydev and adi in addition to 
emul10k) and I found instructions on the joydev home page for installing 
and testing, and there's good instructions in 
/usr/src/linux/Documentation too, BUT.....

The instructions I have tell me to go to /dev and make nodes directly. 
This seems very primative.  Is there a better way?

I can't find any setup scripts /etc/... for joysticks (and I search very 
throughly w/ find /etc | xargs grep).  Can someone points me at some 
nice way to configure a joystick on start up?  Or is make node really my 
best bet?

Thanks for any help you can provide,
Brenden


    
You only need to make the nodes once.  After that, they are there after 
reboot, etc.  You can run /dev/MAKEDEV js to create them.  Having said 
that, let me add that you should already have /dev/js0 /dev/js1, etc, so 
all you should need to do is use them after you load the modules.  If 
the correct modules do not load automaticly when you try and access the 
joystick, you can modify /etc/modules.conf so that they do.  Assuming 
that adi.o is the correct module, you can use:

alias char-major-13 adi

Mikkel
  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]