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

How to get a gamepad to work?



Hello.

  I'm trying to configure a gamepad here, and can't get it to work...
  Tried Google, LDP and the kernel documentation, but still no luck.
  Maybe someone else can help me?

  I run sid, and have both OSS and ALSA 0.9 modules, so I may switch 
  from one to the other if necesary. I have an Ensoniq1371 card, and the
  gamepad is attached to that port. It is a very cheap and simple
  gamepad.
  
  This is what I tried: I modified /etc/alsa/0.9/asound.conf so now I
  have modfied block "control.1: to enable joystick:

  name = 'Joystick Enable';
  value = true;
 
  And also set the port to 0x201 (also tried 0x200) in block control.2:

  name = 'Joystick Address';
  value = 'port 0x210';
		  
  Then I restarted ALSA (so the modules were re-loaded into the kernel),
  and did modprobe analog js=gameport

  According to all documentation I've found up to now, that should be
  enough to be able to run jstest, but it still doesn't work...
  
  jstest --normal /dev/js0
  jstest: No such device

  (Same for js1, js2, and js3).

  I've already checked the /dev/js* devices, and they are ok, acording
  to the docs:

  lrwxrwxrwx    1 root     root            9 Feb 16 14:34 /dev/js0 -> input/js0
  lrwxrwxrwx    1 root     root            9 Feb 16 14:34 /dev/js1 -> input/js1
  lrwxrwxrwx    1 root     root            9 Feb 16 14:34 /dev/js2 -> input/js2
  lrwxrwxrwx    1 root     root            9 Feb 16 14:34 /dev/js3 -> input/js3
  
  ls -l /dev/input/
  total 0
  crw-r--r--    1 root     root      13,   0 Feb 16 14:34 js0
  crw-r--r--    1 root     root      13,   1 Feb 16 14:34 js1
  crw-r--r--    1 root     root      13,   2 Feb 16 14:34 js2
  crw-r--r--    1 root     root      13,   3 Feb 16 14:34 js3

  I have also tryed OSS, modprobing es1371 with optoin "joystick=1", but
  that didn't help either...

  So... Does anyone have any idea why this is not working?
  Is there some other file that need to be edited? Something under
  /etc/modutils, maybe?

Thanks a lot for any help!
J.

-- 



Reply to: