SuSE Linux: Versions since 6.1
You want to configure a joystick.
Please make sure that your sound card's joystick port is activated (usually on port address 0x200).
At present, joysticks are supported by ALSA drivers only in a restricted number of cards (please refer to '/usr/share/doc/packages/alsa/INSTALL'). Use therefore in this case the kernel sound modules or OSS.
Install the package 'joystick' from series 'snd' and please read the instructions included: '/usr/share/doc/packages/joystick/joystick.txt'.The possibile joystick modules can be listed with:
ls /lib/modules/2.2.16/misc/joy-*
Begin with loading the modules manually as follows, first
insmod joystick
and then load the specific module for your joystick. It follows an example for an analogic joystick:
insmod joy-analog js_an=0x200,,
or
insmod joy-analog js_an=0x200,0x33,0xc
Please check that all modules have been loaded. This can be achieved with:
lsmod
After that the modules have been successfully loaded and that your joystick works, enter the call up along with the necessary options in '/etc/modules.conf':
alias char-major-15 joy-my_joystick options joy-my_joystick js_??=x,x,...
The options for different joystick types are fully described in the file '/usr/share/doc/packages/joystick/joystick.txt'.
You can test and calibrate the joystick with the applications 'jstest' and 'jscal', which are in the package 'joystick':
jstest /dev/js0
jscal -c /dev/js0
Or you can use 'kcmjoy', a KDE control module for joystick configuration, in series 'kpa'.
Load the module 'emu10k1-joy', before loading the other joystick modules (by the way, it works also with ALSA sound modules):
modprobe emu10k1-joy io=0x200
The entry in '/etc/modules.conf' could look like as follows:
alias char-major-15 emu10k1-joy options emu10k1-joy io=0x200 post-install emu10k1-joy /sbin/modprobe "-k" "joy-analog" post-remove emu10k1-joy /sbin/modprobe "-r" "joy-analog" options joy-analog js_an=0x200,,
Sources and interesting URLs: