Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]: Joystick Doesn't Show Up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
the_bard
n00b
n00b


Joined: 03 Dec 2002
Posts: 60
Location: Albany, NY

PostPosted: Sat May 01, 2004 5:53 am    Post subject: [SOLVED]: Joystick Doesn't Show Up Reply with quote

Seems to me joysticks ought to be simpler than this... anyhow:

Ran across a little problem when I repartitioned my primary drive... it wiped the partition table. So I reinstalled Gentoo, and decided to upgrade to the 2.6.5-r1 gentoo-dev kernel while I was at it. So far, everything's been pretty smooth. Except my joystick.

It's a MS Sidewinder Forcefeedback Pro, Ver. 1. I compiled all the same drivers for the 2.4.2x kernels into the 2.6.5 kernel, and no joystick. Recompiled the drivers as modules, and loaded them correctly, without a problem. Still no joystick, however... it simply does not show up in either /dev or /dev/input.

I do get the following from dmesg, however :
drivers/input/joystick/sidewinder.c: Init 0: Opened pci0000:02:0b.1/gameport0, io 0xdff0, speed 1193
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 1: Mode 1. Length 16.
sidewinder.c: Read 14 triplets. [00000000000010]
drivers/input/joystick/sidewinder.c: Init 2: Mode 1. ID Length 14.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 0. Tries 15
.
drivers/input/joystick/sidewinder.c: Init 3a: Case 16.

sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 1
4.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 1
3.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 1
2.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 1
1.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 1
0.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 9
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 8
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 7
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 6
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 5
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 4
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 3
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 2
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 1
.
sidewinder.c: Read 16 triplets. [7773203506127306]
drivers/input/joystick/sidewinder.c: Init 3: Mode 1. Length 16. Last 16. Tries 0
.
sidewinder.c: unknown joystick device detected on pci0000:02:0b.1/gameport0, contact <vojtech@ucw.cz>
sidewinder.c: ID packet, 42 bits. [01000000000]
sidewinder.c: Data packet, 16 bits. [34cf]

Looks fairly obvious to me that the driver doesn't recognize the joystick as a MSFFPv1. It can tell it's something's there, but can't see what it is.

I already emailed vojtech@ucw.cz with the problem, with a few details about my system. Oh... I'm running a SB Audigy without any other related problems under the ALSA built-in kernel drivers.

Anybody have any ideas? I'm really itching to get back into FlightGear ;o)


Last edited by the_bard on Mon May 03, 2004 4:16 am; edited 1 time in total
Back to top
View user's profile Send private message
the_bard
n00b
n00b


Joined: 03 Dec 2002
Posts: 60
Location: Albany, NY

PostPosted: Sun May 02, 2004 1:15 pm    Post subject: Reply with quote

I took a look at /usr/src/linux/drivers/input/joystick/sidewinder.c, to see if I could figure out how it worked with my rudimentary knowledge of programming.

Nope.

I tried to kludge it a bit, to force it recognize the joystick as a MS FF Pro, by sticking a "sw->type = 3;" at line 690.

DId the trick... the stick was forced to a MS FF Pro after my next recompile and reboot (I've got all the joystick support built back into the kernel).

js_demo just reports back gibberish, however... I move the stick, and it interprets it as buttons being pressed. Sounds to me like something's messed up with sidewinder drivers or the emu10k1_gp driver... the data that the sidewinder driver is getting from the gameport obviously ain't what it's supposed to be.

Unless my stick decided to croak just as I upgraded to the 2.6.5-r1 kernel. :roll:
Back to top
View user's profile Send private message
the_bard
n00b
n00b


Joined: 03 Dec 2002
Posts: 60
Location: Albany, NY

PostPosted: Mon May 03, 2004 4:18 am    Post subject: Reply with quote

Got it fixed.

Emerged alsa-utils, then appended "joystick=1" to the options line in "/etc/modules.d/alsa" file.

After that, it worked perfectly fine.
Back to top
View user's profile Send private message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 44

PostPosted: Sat Jan 27, 2018 2:48 pm    Post subject: Reply with quote

This problem still exists and the proposed fix still works:
I changed sw->type = -1; to sw->type = 3; in line 652 in sidewinder.c and my Sidewinder Force Feedback Pro was recognized. However, it was required to also reload the emu10k1_gp and the joydev before it worked. To play fs2_open I need to also
Code:

export SDL_LINUX_JOYSTICK="'Microsoft SideWinder Force Feedback Pro' 4 1 0"

Maybe this help someone. I should probably also write Vojtech Pavlik a mail.
Back to top
View user's profile Send private message
Desti²
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2003
Posts: 127

PostPosted: Sat Jan 27, 2018 6:13 pm    Post subject: Reply with quote

Oh speaking of old SideWinder Joysticks, do they work with Gameport <---> USB adapters? :?: :?: :?: :?: :?:
_________________
Linux Users Everywhere @ climateprediction.net
Back to top
View user's profile Send private message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 44

PostPosted: Sat Jan 27, 2018 7:36 pm    Post subject: Reply with quote

Quote:

Oh speaking of old SideWinder Joysticks, do they work with Gameport <---> USB adapters? :?: :?: :?: :?: :?:

I would be interested, too. I remember seeing some selfmade stuff years ago, but I did not further investigate.

Meanwhile Vojtech Pavlik responded similarly (I hope he does not mind posting part of his answer here):
Quote:

But anyway, the gameport digital protocols are horrible, and will eat
5-10% of CPU power regardless of how fast your CPU is, causing all kinds
of issues. If you really like the joystick, the best course of action is
to use an Arduino or something similar to create an USB adapter. Or just
buying an USB joystick.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum