LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2005, 01:00 PM   #1
bboy8012
LQ Newbie
 
Registered: Sep 2005
Posts: 18

Rep: Reputation: 0
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
 
Old 11-05-2005, 01:58 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
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.
 
Old 11-06-2005, 11:31 AM   #3
bboy8012
LQ Newbie
 
Registered: Sep 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Its a logitech wingman force 3D it is usb
 
Old 11-06-2005, 03:37 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
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
 
Old 11-06-2005, 07:02 PM   #5
bboy8012
LQ Newbie
 
Registered: Sep 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Gave me a error. FATAL: module usb_uchi not found
 
Old 11-06-2005, 07:57 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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

Last edited by MasterC; 11-06-2005 at 08:01 PM.
 
Old 11-06-2005, 10:20 PM   #7
bboy8012
LQ Newbie
 
Registered: Sep 2005
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 12-24-2005, 04:46 PM   #8
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Rep: Reputation: 16
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

Last edited by chadwick; 12-24-2005 at 05:03 PM.
 
Old 12-26-2005, 02:56 PM   #9
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Rep: Reputation: 16
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?

Last edited by chadwick; 12-26-2005 at 02:59 PM.
 
  


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
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 10:43 AM
looking for complete instruction in installing modem/joystick driers carmel_andrews Linux - Hardware 1 11-18-2004 02:23 PM
help installing joystick statmobile Linux - Newbie 16 07-29-2004 11:09 PM
Joystick dexter4560 Linux - Hardware 1 07-07-2003 07:15 PM
Installing joystick JaseP Linux - Hardware 2 02-02-2003 02:48 AM


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