LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-09-2003, 10:43 AM   #1
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
USB game pads under linux


Hi all!

Though I've been using Linux for some time now, I have never treid to use my game pad with it. What I would like to know is if there is anyway to use a Logitech Wingman Rumble Pad with linux (I know the force feedback and rumble will not work), just curious, because when the system boots it detects the HID and knows it is a game pad, but can I actually use it?

I'll go check logitech's wep page to see if I can clarify my doubt there (though I doubt it)
 
Old 04-09-2003, 06:51 PM   #2
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Hi,

I just recently got a gravis gamepad pro (usb) to work on my box. Make sure you have usb-uhci, hid, and joydev compiled into your kernel. I have them as modules. When you selecte the hid module make sure it supports usb input devices (keyboard, mouse, etc).

Make sure you have a device for the joystick to connect to (/dev/js0 or /dev/input/js0). If you don't run
Code:
# mkdir /dev/input
# mknod /dev/input/js0 c 13 0
Load the modules and then you should be good to go. You can check to see if it's there with
Code:
# cat /dev/input/js0
and you'll see a bunch of garbage everytime you press a joystick button.

I got most of this info from the linux USB guide .

I found that some programs don't support a joystick well. A decent solution is a neat little program called joy2key .

Good luck.
 
Old 04-09-2003, 08:21 PM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Ok, done. Thanks

Just one more thing... How do I make (force?) the module joydev to load every time the computer boots up?
 
Old 04-10-2003, 12:21 AM   #4
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Just stick the following lines at the end of your /etc/modules file.
Code:
usb-uhci
joydev
hid
That's it!
 
Old 04-10-2003, 02:35 AM   #5
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Thanks a lot, man... thanks a lot.
 
Old 05-19-2003, 03:52 AM   #6
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Rep: Reputation: 30
failed after cat /dev/input/js0

says:

betty linux # cat /dev/input/js0

cat: /dev/input/js0: No such device

I'm using devfsd, and trying to figure out /etc/devfsd.conf :/

using a usb joypad, that I've had working before, and is seen in /proc/bus/usb/devices

not sure what to do now :/
 
Old 08-29-2003, 12:49 AM   #7
kalif
Member
 
Registered: Apr 2003
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by footfrisbee
Hi,

I just recently got a gravis gamepad pro (usb) to work on my box. Make sure you have usb-uhci, hid, and joydev compiled into your kernel. I have them as modules. When you selecte the hid module make sure it supports usb input devices (keyboard, mouse, etc).

Make sure you have a device for the joystick to connect to (/dev/js0 or /dev/input/js0). If you don't run
Code:
# mkdir /dev/input
# mknod /dev/input/js0 c 13 0
Load the modules and then you should be good to go. You can check to see if it's there with
Code:
# cat /dev/input/js0
and you'll see a bunch of garbage everytime you press a joystick button.

I got most of this info from the linux USB guide .

I found that some programs don't support a joystick well. A decent solution is a neat little program called joy2key .

Good luck.
hey footfrisbee! thanks a bunch for this post... it saved me quite a few headaches and longs nights messing about. i recently made my newly bought gravis eliminator gamepad work with the same three modules you used. cheers!

Last edited by kalif; 08-29-2003 at 12:52 AM.
 
Old 08-29-2003, 02:18 AM   #8
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Good to hear you got it working!
 
Old 09-19-2003, 12:04 PM   #9
kurtjo
LQ Newbie
 
Registered: Aug 2003
Location: Oregon
Distribution: Mandrake 9.1
Posts: 18

Rep: Reputation: 0
Dear footfrisbee,
I can't thank you enough for your post. Using the advice here I got my kiky-x USB to PSX adapter (available at places like Fry's for around 10 bucks) working so I can play games like Vice City under winex 3.1 just like in windows (except better cause its linux)!! Someone should write a mini-howto on this or something, as I am sure there are lots of folks out there who could desperately need to know about this.
 
Old 09-19-2003, 04:03 PM   #10
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Quote:
Originally posted by kurtjo
Dear footfrisbee,
I can't thank you enough for your post. Using the advice here I got my kiky-x USB to PSX adapter (available at places like Fry's for around 10 bucks) working so I can play games like Vice City under winex 3.1 just like in windows (except better cause its linux)!! Someone should write a mini-howto on this or something, as I am sure there are lots of folks out there who could desperately need to know about this.
I'm glad my post helped you.

I'm a bit too busy to write a mini-howto, but you should give it a shot! I'm sure lots of people will appreciate it.
 
Old 10-28-2003, 02:00 AM   #11
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I found this little marvel of software for those interrested:
http://wolfpack.twu.net/libjsw/
This program will let you configure and calibrate your joystick... For me works like a charm! Hope it does for you as well.
 
Old 11-09-2003, 09:54 AM   #12
tamran
LQ Newbie
 
Registered: Oct 2003
Location: Ft. Myers, FL
Distribution: Red Hat 9
Posts: 2

Rep: Reputation: 0
I tried the method, along with the joy2key program. The Joy2key program still didn't find my joystick until I did the following commands as root:

# mv /dev/js0 /dev/js0.old
# ln /dev/input/js0 /dev/js0

I guess many programs will look for /dev/js0 only. On my system (RH 9) /dev/js0 and /dev/input/js0 were not the same thing.

... now to get the force feedback stuff working

Tamran
 
Old 11-10-2003, 03:58 PM   #13
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by tamran
I tried the method, along with the joy2key program. The Joy2key program still didn't find my joystick until I did the following commands as root:

# mv /dev/js0 /dev/js0.old
# ln /dev/input/js0 /dev/js0

I guess many programs will look for /dev/js0 only. On my system (RH 9) /dev/js0 and /dev/input/js0 were not the same thing.

... now to get the force feedback stuff working

Tamran
Indeed in RH 9 you'd rather use /dev/js0 instead of /dev/input/js0. About force feedback, all I've been able to find is that it is a kernel patch and that it is merged into the 2.6 kernel sources... I have no further information, so if you find out more, please post back!
 
Old 11-10-2003, 05:27 PM   #14
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
i cant get joy2key working. ive looked at the readme file and at the man page. i dont understand what the readme is telling me to do in the example. plus, it seems the readme is very old, you have to use the start command, where as here you just type the name of the program in. does anyone have any advice?
 
Old 05-16-2005, 01:41 AM   #15
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Rep: Reputation: 37
this thread helped me too! hurray for searching for threads before creating a new one.
 
  


Reply



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
will you play windows game or linux native game pleasehelpme Linux - Newbie 16 04-29-2007 08:58 PM
2D/3D Game EASY Game Development Software tedjordan Linux - Games 1 03-22-2005 06:40 AM
Attempting HORI Digital Pads for NES emulation amp9020 Linux - Games 0 10-15-2004 05:02 PM
game not receving game list from master server Rnastyracer Linux - Games 2 04-02-2004 10:20 PM
SB PCI 128 + Sidewinder game pad (non usb) help !!! lets-eat-gary Linux - Hardware 6 10-20-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:06 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