LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-18-2007, 02:45 PM   #1
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Rep: Reputation: 15
USB Joystick


I have a original Nintendo64 joypad on a USB converter. In windows it is indentified as a:-

4 axis 16 button gamepad

In suse i went in to yast and selected joysticks and it said that if you have a usb controller then you should just plug it in and use it? The options available related to the old style controller socket on my soundcard.

Running various games showed the joypad wasn't detected and particularly in MuOpen64 which is a n64 emulator i would like to use.

I have tried selecting in yast a controller similar to mine but with no luck. It just doesn't work.

I have tried searching about this with no luck either. What do i need to do?
 
Old 02-18-2007, 06:33 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Maybe all you have to do is to load the correct module? Try this in a terminal when your joypad is connected
Code:
su
modprobe joydev
After that, try typing "cat /dev/js0" or "cat /dev/input/js0" and press a few random keys on your pad. If a lot of "garbage" is displayed, then your joystick is working. If this does not help, reply to this. You may need to load additional modules.

Good luck!

Last edited by Mega Man X; 02-19-2007 at 03:38 PM.
 
Old 02-19-2007, 09:24 AM   #3
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks a lot for the reply megaman! Its really frustrating to manage to get this emulator all working but with no controller!

I did what you said logged in as root and typed the following:-

modprobe joydev
cat /dev/input/js0

And it did indeed do a load of 'garbage' when i moved the stick or pressed the buttons. Also i have noticed that if i go to 'kcontrol' and go to the joystick option the pad is identified as /dev/input/js0 and if i move the stick etc it seems to work and also offers the option to calibrate.

But i just fired up Americas Army (native linux game) and if i go to 'configure controls' pressing buttons on the pad arent recognised, it does nothing. And similarly in MuOpen64 it doesn't see it either.

So how do i get games etc to see it?
 
Old 02-19-2007, 12:20 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hello again Jon Briggs!

I wish I could help you out more, but I have no experience with either AA or MuOpen64 (I never heard of this emulator before actually). I have used Mupen64 though and to get joypad working on it you will need some input plugins (such as blight_input if my memory does not fail me). Take a look at MuOpen64 page to see if you can dig something up.

Some games really don't have support for joypads at all (and I think they are the majority). As I said, I never tried Americas Army myself, but since it is a FPS and most FPS don't have inbuilt joypad support, chances that AA does not support joypads are huge (you can tell better than me if it has joypad/stick support or not). In this case, there is little you can do.

However, if you really want to play AA with a joypad, there is a work around. For example, you could use a program to map your joypad keys to the keyboard. I've tried "xjoypad" before and it worked all right(try google or using the package manager of your distribution). I can't remember if it was possible to map the analog stick with xjoypad though.

At least now we know you joypad works perfectly, it is just a matter to dig a plugin to Mupen and check out xjoypad, if you really want to play a FPS with a pad

Regards!

Last edited by Mega Man X; 02-19-2007 at 03:40 PM.
 
Old 02-19-2007, 12:42 PM   #5
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Original Poster
Rep: Reputation: 15
ah yes it is 'mupen64-0.5' and uses the blight SDL plugin but it still doesn't see the pad!

The only thing i can think of is to edit the conf file pointing the input thing directly at the joystick? ie: point it to /dev/input/js0 ? Could that work?
 
Old 02-19-2007, 12:57 PM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
I think it is worth a shot. Backup that file first just in case. I usually don't backup anything and pull my hairs after .

If that does not work, try one of those plugins:

http://www.ngemu.com/n64/mupen64.php?action=plugins

Bookmark that site too if you are into emulators. I personally am an emu freak . Check this thread out if you need suggestions for other emulators:

http://www.linuxquestions.org/questi...d.php?t=323771
 
Old 02-19-2007, 01:26 PM   #7
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Original Poster
Rep: Reputation: 15
yeah it seems to recreate the file if you edit it back to what it was when you fire it up, but i will try the plugins thanks, and if they don't work i guess i can try another emulator at least we have established that my controller should work and its more the applications i'm using it with rather than linux itself thats the problem.

By the way yeah its somthing i just sort of came back to, years ago i collected around 30 n64 roms so as im using linux more i thought it would be a good addition gaming wise as there aren't a massive amount of games in linux.
 
Old 02-19-2007, 02:00 PM   #8
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Original Poster
Rep: Reputation: 15
hmmm yeah im having no luck

I tried to grab the nan SDL plugin but it won't compile, i have gtk and lib installed but it says this:-

*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find GTK: Is gtk-config in path?

So why can't it find gtk? If i try and isntall it with smart it says its already there. I have also looked at fake64 but i can't get that to compile either
 
Old 02-19-2007, 02:45 PM   #9
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hmmm, I don't think you have to compile anything. The Blight plugin is a shared object(kinda like a dll). Here is a link to the plugin you want to use:

http://www.ngemu.com/download.php?action=plugin&id=77

Download that file. That file is called "blight_input-0.0.8.so". What you basically have to do is to copy that file to your <path to mupen64/plugin" directory. I will give you an example:

Example 1:

Code:
cp blight_input-0.0.8.so /usr/local/share/mupen64.0.5.1/plugin
Now, the above is a wild guess. I've no idea where mupen64 is installed on your system. Use "whereis mupen64" and you may find the correct path.

Example 2:

Most applications in linux save its setting in a hidden folder in the user directory. I will assume that you are user "Jon" and have your home at /home/Jon. I believe mupen64 stores its settings under a .mupen64 directory under your home. So basically, copy that file there:

Code:
cp blight_input-0.0.8.so /home/Jon/.mupen64/plugin
That should do it. Anyway, the above are examples, you know where mupen is located and where settings are being stored better than I do. I hope this helps. Let me know how it turned out for you

Good luck!

Last edited by Mega Man X; 02-19-2007 at 02:52 PM.
 
Old 02-19-2007, 02:55 PM   #10
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Original Poster
Rep: Reputation: 15
it isnt the blight input plugin im trying to compile its the wingman64 plugin. It comes with the blight plugin as default ans doesnt work for me and as the wingman64 ones doesnt use SDL i thought it might work.

but if you have a link for a compiled version of the wingman plugin maybe i could try it.
 
Old 02-19-2007, 03:03 PM   #11
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
I will take a look around. Just out of curiosity: Is Mupen64 working fine for you? It is kinda weird. I believe that sound output in mupen uses SDL.

Be right back .
 
Old 02-19-2007, 03:26 PM   #12
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
I could not find Wingman64 binary anywhere. If anyone ever compiled it and made a binary, they kept it in secret . I found, however, 2 other compiled plugins that you may want to try:

http://emulationrealm.net/n64_plugin...4_input.so.bz2

http://emulationrealm.net/n64_plugin..._input.tar.bz2

The first link is supposed to be the best of the two, but still inferior to blight_input. But who knows, maybe it works and you may like it. I never tried them myself ^_^;;
 
Old 02-19-2007, 03:33 PM   #13
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Oh... just one more thought. If you still can't make it work, you could try, instead of using the .rpm you have installed, to run a brand new compiled binary of mupen64. Simply uncompress it somewhere and see if that helps. Maybe you have an old rpm or the binary was compiled without working with joy plugins (it is a long shot, but it does not hurt to try).

This is the file that you want:

http://mupen64.emulation64.com/files...64-0.5.tar.bz2

uncompress it and run:

Code:
bunzip2 mupen64-0.5.tar.bz2
tar xvf mupen64-0.5.tar
cd mupen64-0.5
./mupen64
As you already said, mupen64 has the blight_input plugin. Just one thing that I think it is relevant to mention: The blight_input plugin shipped with mupen64 and the one I recommended you to download have different sizes. Make sure to try them both to be on the safe side...

Last edited by Mega Man X; 02-19-2007 at 03:35 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
USB Joystick help rjkfsm Linux - Software 1 04-25-2005 10:10 AM
USB-Joystick? Cornholio Linux - Hardware 3 03-28-2005 12:13 PM
USB Joystick on Slack 8.1.... The SIN Raven Slackware 4 07-01-2004 05:36 AM
usb joystick MrBiggZ Linux - Hardware 6 02-01-2004 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration