LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing joystick (https://www.linuxquestions.org/questions/linux-newbie-8/installing-joystick-380226/)

bboy8012 11-05-2005 12:00 PM

installing joystick
 
I have been trying to install the joystick program via apt-get install joystick. But when I get to setting it up it tells me "oops please create sone joystick device nodes with makedev fisrt". I cd to /dev and tried makedev, but it doesnt create any devices there. I checkd the /dev/input and saw the js0 file. My question is how do I install the joystick software, and have it look in /dev/input? Or how how do I use MAKEDEV, ot how do I just get it installed? Thanks for the help

Mega Man X 11-05-2005 12:58 PM

What kind of joystick is it? USB?. You maybe need to only load a few modules to get it to work. You usually don't need to install any third part programs to get a joypad to work in Linux.

bboy8012 11-06-2005 10:31 AM

Its a logitech wingman force 3D it is usb

Mega Man X 11-06-2005 02:37 PM

Try loading the following modules (you need to be root):

modprobe usb-uhci
modprobe joydev
modprobe hid

When you done, try testing the joypad with "cat /dev/js0" or "cat /dev/input/js0". Press a few buttons on the joypad to test it. If your terminal prints some weird chars (like #%&/&/#"#), then it's working ;)

bboy8012 11-06-2005 06:02 PM

Gave me a error. FATAL: module usb_uchi not found

MasterC 11-06-2005 06:57 PM

usb-uhci

Notice the u, then h, then c, then i

If you still get an error, it may be ok... Depending on your hardware.

Post up what the following outputs:
/sbin/lspci

And then after you modprobe joydev, what the last couple of lines of:
dmesg
prints out, just post it up here (maybe the last 10-15 lines).

You can copy and paste by simply highlighting the output from an xterm and then pasting in your browser by clicking either both buttons together, or if you have a scroll mouse (and it's working) then by clicking the scroll button down.

Cool

bboy8012 11-06-2005 09:20 PM

I tried the cat /dev/input/js0, and got all kinds of wired stuff when I messed with the joystick. Sorry the previous post was a typo. but I think I have it working

chadwick 12-24-2005 03:46 PM

Can you explain bboy8012 how you got it working? I'm coming across what seems to be the same problem.

My joystick is a Logitech Attack 3 which is USB. There's a testimonial that this joystick works (http://mail.flightgear.org/pipermail...ch/010740.html)
which is one reason why I got it, but that doesn't seem to help me with getting it to communicate with my computer.

I'm also working with http://www.antlinux.com/pmwiki/pmwik...roubleshooting
as a reference but am not having any luck getting it to work with that either. I have no experience in loading modules so that might be part of the problem.

'lsmod | grep input' returns nothing so I try as root
'modprobe input' which replies: "FATAL: Module input not found."
However, 'ls /lib/modules/2.4.27-2-386/kernel/drivers/input/input.o' replies that input.o does in fact exist at that location. I get the same error for usb_uhci, in fact it's identical to what bboy8012 has above, except without the typo: "FATAL: Module usb_uhci not found."

For some reason 'modprobe joydev' returns no such error, in fact it's kind of bothersome that 'modprobe --verbose joydev' finishes instantly and prints nothing to the screen.

For the heck of it I also tried just rebooting the computer to see if it would detect it then, but no such luck.

I have tried
'cat /dev/input/js0' but get the reply:
"cat: /dev/input/js0: No such device".
The file /dev/input/js0 definitely does exist on my system though.

Also I have the package 'joystick' installed and
'jstest --normal /dev/input/js0' tells me
"jstest: No such device"

I'm under the impression that I'm just missing something basic but after quite a bit of searching through the web and through "Running Linux" I honestly haven't found it.

My system: Averatec 3360-EG1 laptop, 1.6 GHz centrino, 512 MB
debian stable minimum install with fvwm window manager

chadwick 12-26-2005 01:56 PM

Which kernel did you get it to work in? I'd overlooked that those modules I'm trying to insert exist in my 2.4 kernel directory but not the 2.6 directory. Maybe they're called something different in 2.6? I'm using 2.6 but have both 2.4 and 2.6 installed.

Does anyone know what modules I need in order to get a basic usb joystick working in kernel 2.6? I've been finding that the documentation is really hard to come across. It must exist somewhere though. Does someone know where to find it?


All times are GMT -5. The time now is 10:30 AM.