LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   USB Joysticks in Gentoo (https://www.linuxquestions.org/questions/linux-software-2/usb-joysticks-in-gentoo-96889/)

Bigun 09-25-2003 05:12 PM

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)

linksocc 09-25-2003 05:28 PM

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/

Bigun 09-25-2003 06:56 PM

The very last command (insmod joydev) was the only one *NOT* loaded. How can I get that to load every time @ boot?

linksocc 09-25-2003 07:02 PM

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

Bigun 09-25-2003 07:23 PM

That file isn't there.

linksocc 09-25-2003 07:23 PM

just do it yourself

Bigun 09-25-2003 07:27 PM

Cool, got it. After I insmod joydev, the joysticks are showing up in /dev/input, but they are not working.

linksocc 09-25-2003 07:28 PM

they are not working in what program????

Bigun 09-25-2003 07:32 PM

Vendetta

Bigun 09-25-2003 07:35 PM

ZSNES is saying the same thing

linksocc 09-25-2003 07:35 PM

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

linksocc 09-25-2003 07:37 PM

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

Bigun 09-25-2003 07:50 PM

BINGO!!! I tried ZSNES as root, the and joysticks showed up!! How can I give myself access to those devices?

linksocc 09-25-2003 07:51 PM

just go to the directory /dev/input and change the permisons of the files so everyone can use it

Bigun 09-26-2003 04:49 AM

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*.


All times are GMT -5. The time now is 08:31 PM.