Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
Old 12-Jun-2005, 15:51   #1
Mendel
Mr. Upgrade
 
Join Date: Nov 2003
Location: Finland
Posts: 1,335
Default getting joystick to work

How do I get my joystick to work in linux?
I have a fresh install of fedora core 3.


I have this information
Quote:
USB Joystick and Gamepad support

In the kernel configuration stage, you need to turn on USB Human Interface Device (HID) support in USB support and Joystick support in Input core support. Perform the normal kernel rebuild and installation steps. If you are installing as modules, you need to load the hid.o, input.o and joydev.o modules.

You need to set up a device node entry for the joystick. It is customary to create the entries for USB device in the /dev/input/ directory. You can use the following commands to create four device nodes, although there is no reason why you can not use more:

mknod /dev/input/js0 c 13 0
mknod /dev/input/js1 c 13 1
mknod /dev/input/js2 c 13 2
mknod /dev/input/js3 c 13 3

If you plug in a gamepad or joystick and cat /dev/input/js0 you should see some bizarre looking characters as you move the stick or click any of the buttons.

You should now be able to use the USB joystick or gamepad with any of the normal games or other joystick compatible applications.
how do I do that? (get to "kernel configuration stage, how do I turn on USB Human Interface device support and Joystick support?)

I tried the mknod trick but cat shows no such device for js0.
Mendel is offline   Reply With Quote
Old 13-Jun-2005, 02:11   #2
Jimmers
Member
 
Join Date: Apr 2004
Location: ~/
Posts: 179
Default

Code:
# cd /usr/src/linux
# make menuconfig
Enter 'y' for items:
Device Drivers > USB Support > USB Human Interface Device support
Device Drivers > Input device support > Joysticks

Exit the config, save the settings...

Code:
# make && make modules_install
Move the kernel to wherever you boot from (/boot/), adjust grub or lilo and reboot.

I've never used RH/Fedora, so you might have to do a few things differently.
__________________
Ab hoc possum domum tuum

Ajuaa!!
"S as is Ham"
Jimmers is offline   Reply With Quote
Old 13-Jun-2005, 21:56   #3
Kalin
Member
 
Join Date: Jul 2004
Location: Sofia, BG
Posts: 160
Send a message via ICQ to Kalin
Default

Hm, that's weird, I would expect USB (including HID) and joystick modules to come as a standard pre-build, you probably need to look for help specifically for your joystick. I've never used FC3 though.

On a side note: Fedora Core 4 was just released, you might have a better chance with it.

http://fedora.redhat.com/download/

Torrents: http://torrent.linux.duke.edu/
Kalin is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
making formmail.php work (get rid of unauthorized domain error.) Mendel Hardware & Software Talk 13 08-Aug-2005 12:22
Doom 3 Tweak?? Cant try, at work. junkheap PC Games 12 04-Aug-2004 18:48
Internet policies at work london-boy General Discussion 19 29-Jul-2004 14:36
For those who want to laugh.... Deepak General Discussion 10 19-Jul-2004 12:59
NV40: Why doesn't MSAA work with FP Blending? LeStoffer 3D Architectures & Chips 29 07-Jul-2004 21:09


All times are GMT +1. The time now is 11:12.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.