LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-25-2003, 06:12 PM   #1
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
USB Joysticks in Gentoo


Okie Dokie, I've finnally gotten my 3d rendering and my ALSA working. I setup to play some Vendetta, and find out my USB joysticks aren't working. I check out my /dev/input and all I found was "mice". That's it. I'm assuming that I am missing joystick support in my kernel. I have gone back through, enabled EVERY joytick I saw listed (I have 3, will probably buy more), then typed the following as root:

make dep clean

make modules modules_install

The joystick drivers were configured as modular. Now the questions are: Will the above work to get my joysticks going? If not what else? Or am I only screwing things up?

(BTW - I already know I'll have to recompile/reinstall ALSA after recompiling the new kernel)
 
Old 09-25-2003, 06:28 PM   #2
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
to get my USB joystick I just configure the kernel with usb suport, hid support and joystick support. then compile my kernel as usual and to use the joystick I just do insmod usbcore, then insmod hid, and insmod joydev and it should create the device in /dev/usb/
 
Old 09-25-2003, 07:56 PM   #3
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
The very last command (insmod joydev) was the only one *NOT* loaded. How can I get that to load every time @ boot?
 
Old 09-25-2003, 08:02 PM   #4
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
As I can see you are using gentoo. I just edited the file /etc/modules.autoload.d/kernel-2.4 and add joydev at the end of the file. Here is how mine is set up
Code:
  GNU nano 1.2.1      File: /etc/modules.autoload.d/kernel-2.4                  

# /etc/modules.autoload.d/kernel-2.4:  kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.$
#
# Note that this file is for 2.4 kernels.  If you need different modules
# for a 2.5 kernel, you can create /etc/modules.autoload.d/kernel-2.5
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line.  Comments begin with # and
# are ignored.  Read man modules.autoload for additional details.

scanner vendor=0x043d product=0x002d
printer
joydev
radeon
note that this is for my system you only need the line that says joydev. Hope it helps
 
Old 09-25-2003, 08:23 PM   #5
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
That file isn't there.
 
Old 09-25-2003, 08:23 PM   #6
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
just do it yourself
 
Old 09-25-2003, 08:27 PM   #7
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Cool, got it. After I insmod joydev, the joysticks are showing up in /dev/input, but they are not working.
 
Old 09-25-2003, 08:28 PM   #8
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
they are not working in what program????
 
Old 09-25-2003, 08:32 PM   #9
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Vendetta
 
Old 09-25-2003, 08:35 PM   #10
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
well I don't have that game but when I want to test a joystick I use tuxracer try it whit that game if you have it
 
Old 09-25-2003, 08:35 PM   #11
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
ZSNES is saying the same thing
 
Old 09-25-2003, 08:37 PM   #12
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
I do have ZSNES and it works pretty well with my joystick try unloading the joydev and everything related with USB and load them again with you joystick connected to your pc. Thats all I can think of
 
Old 09-25-2003, 08:50 PM   #13
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
BINGO!!! I tried ZSNES as root, the and joysticks showed up!! How can I give myself access to those devices?
 
Old 09-25-2003, 08:51 PM   #14
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
just go to the directory /dev/input and change the permisons of the files so everyone can use it
 
Old 09-26-2003, 05:49 AM   #15
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
That works, but the change is only temporary, it goes away when I reboot. Also, I still am having to execute insmod joydev manually. Afterwards I have to chmod +r /dev/input/js*.
 
  


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
USB on Gentoo: usb 1-1: control timeout on ep0out Sharph Linux - General 2 04-19-2005 07:56 AM
xmame and two USB Joysticks lucat Linux - Games 2 03-19-2005 06:37 AM
Force feedback joysticks cjp Programming 1 10-25-2004 03:06 PM
Game Joysticks Stephanie Linux - General 4 05-31-2003 07:47 PM
joysticks acid_kewpie Linux - Hardware 3 05-04-2002 08:44 AM


All times are GMT -5. The time now is 01:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration