Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: startup on May 20, 2010, 05:47:31 AM

Title: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 05:47:31 AM
hey,
i have a joystick with 15 pin game port
i have tiny core running on my pc.
i attached an external sound card with game port to my cpu.

i have alsa extensions installed.
my sound card thus i hope is detected.

now i want zsnes(nes emulator) to detect my joystick?
where do i check that?

Thanks in advance
Title: Re: my joystick is not detected in zsnes
Post by: Juanito on May 20, 2010, 06:01:21 AM
I believe you'll need the input-2.6.29.1-tinycore extension to get the appropriate joystick module
Title: Re: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 06:23:14 AM
i have the extension installed but what do you mean by desired module??

i m still not able to get it detected

zsnes says 0 joysticks detected.

any help?
have alsa, oss and xorg installed.
Title: Re: my joystick is not detected in zsnes
Post by: Juanito on May 20, 2010, 06:36:09 AM
The extension contains a whole bunch of joystick modules in:

/usr/local/lib/modules/2.6.29.1-tinycore/kernel/drivers/input/joystick/

I don't know if any of these modules are the correct one for your joystick, but does "lsmod" show any joystick modules loaded?

If "lsmod" does not show any joystick modules loaded, you could try and manually load an appropriate sounding module and see if that helps.

Edit: and if you're using Xorg-7.4, you perhaps need a joystick section in xorg.conf
Title: Re: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 07:07:09 AM
hey,
thnx for the fast replies..

/usr/local/lib/modules/2.6.29.1-tinycore/kernel/drivers/input/joystick/ shows warrior.ko.gz and warrior is the name of my joystick. Hence, i think it is recognizing it.

"lsmod" shows various modules including gameport, oss_usb, etc.... but doesn't show any modules for joystick.

plz help me out in this. how do i load my joystick module?

thnx in advance
Title: Re: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 07:19:39 AM
Also, how do i edit xorg.conf file to add the section for joystick/

i did Xorg -configure
but it says fatal server error:
server is  already active for display 0
............

Title: Re: my joystick is not detected in zsnes
Post by: curaga on May 20, 2010, 07:26:53 AM
Since the port is on your soundcard, I'm not sure if OSS drivers support the gameport. Try with alsa.
Title: Re: my joystick is not detected in zsnes
Post by: bmarkus on May 20, 2010, 07:36:19 AM
It may help with ALSA if you get in trouble:

http://alsa.opensrc.org/index.php/Joystick_support
Title: Re: my joystick is not detected in zsnes
Post by: curaga on May 20, 2010, 07:46:19 AM
Also, the Xorg driver is only necessary to use the stick as a mouse/keyboard. Apps supporting joysticks natively don't need it.
Title: Re: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 07:53:03 AM
@ all

i have alsa installed.
what do i do now?
 can't follow the alsa help bmarkus posted.

also, is there a way to load the joystick module ?
if so how?

or am i going the wrong way?
i simply want to use the joystick (quickshot) with zsnes to play a game

zsnes says 0 joysticks detected.
lsmod does not show any joystick module??

what now?
Title: Re: my joystick is not detected in zsnes
Post by: Juanito on May 20, 2010, 07:58:49 AM
also, is there a way to load the joystick module ?
if so how?

Code: [Select]
$ sudo modprobe warrior
Title: Re: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 08:14:36 AM
how do i know what joystick module i need?

i loaded  joydev, analog and warrior just becuase

my joystick is pc analog joystick with biogrip and its name is warrior 5 by quickshot

Title: Re: my joystick is not detected in zsnes
Post by: Juanito on May 20, 2010, 08:30:06 AM
If your joystick is analogue, I guess you only need joydev and analog.

Does "dmesg | tail -20" show anything about js0 or similar being created?

Does "modinfo analog" show any reference to your joystick?

Edit: maybe this might be useful:

http://www.mjmwired.net/kernel/Documentation/input/joystick.txt (http://www.mjmwired.net/kernel/Documentation/input/joystick.txt)
Title: Re: my joystick is not detected in zsnes
Post by: startup on May 20, 2010, 08:39:46 AM
modinfo analog shows me nothing

dmesg shows a long list, hopefully i dont see a js0
Title: Re: my joystick is not detected in zsnes
Post by: Juanito on May 20, 2010, 08:44:13 AM
As per the link I posted below, you might need to create js0 yourself?