1 |
I have an old Suncom FX200 Joystick which I recently tried to get |
2 |
working with my gentoo system. I tried using various methods, with |
3 |
outcomes varying from epic fail to almost success, and finally got |
4 |
results after following the guide at http://en.gentoo-wiki.com/wiki/Joystick |
5 |
|
6 |
I did what it said in the Kernel Configuration and Gameport Joysticks |
7 |
sections (the one uses the parallel port on my sound card), and chose |
8 |
the "Classic Analog" joystick driver, as there is not one for my |
9 |
specific model (or manufacturer). I compiled, installed, and booted into |
10 |
the new kernel, and continued with the testing and calibration. |
11 |
|
12 |
After emerging the joystick package, I ran the dmesg | grep -i Joystick |
13 |
command, and this was the output: |
14 |
[ 4.329910] input: Analog 4-axis 4-button joystick as |
15 |
/devices/pci0000:00/0000:00:1e.0/0000:02:07.0/gameport0/input/input5 |
16 |
|
17 |
Which was more or less correct, except that it is a 3-axis stick. I ran |
18 |
cat /dev/input/js0, which produced the desired garbage data, but new |
19 |
data appeared only on button presses, not stick movements, which was |
20 |
where I first noticed problems. Anyway, I ran jstest /dev/input/js0, |
21 |
which showed that axes 0 and 1 were always at 0 (regardless of actual |
22 |
stick position), and 2 and 3 were always -32767, regardless of the |
23 |
position of the throttle wheel. |
24 |
|
25 |
I ran jscal -c /dev/input/js0 to calibrate the joystick, and when I run |
26 |
it now without the -c option, it outputs: |
27 |
Joystick has 4 axes and 4 buttons. |
28 |
Correction for axis 0 is broken line, precision is 0. |
29 |
Coeficients are: 1789, 2299, 419758, 419758 |
30 |
Correction for axis 1 is broken line, precision is 0. |
31 |
Coeficients are: 700, 900, 1073741, 1073741 |
32 |
Correction for axis 2 is broken line, precision is 0. |
33 |
Coeficients are: 1422, 1422, 377546, 377546 |
34 |
Correction for axis 3 is broken line, precision is 0. |
35 |
Coeficients are: 1422, 1422, 377546, 377546 |
36 |
|
37 |
Ok, so now you all know the facts. Can anyone tell me what I'm doing wrong? |
38 |
Thanks in advance, and for all your previous help with the ethernet card |
39 |
drivers! |
40 |
|
41 |
Marcus |