LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-25-2004, 11:46 PM   #1
goodolE22
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2
Posts: 3

Rep: Reputation: 0
Can't get game controller to work! Please Help


I just installed Fedora Core 2 and setting up MythTV. I am currently in the process of setting up mythgame and can't seem to get my controller to work. It is a Logitech Dual action USB controller. I am new to setting this stuff up and i am having difficuties. Here are some of the errors i have been getting while trying to get this stupid thing to work.

[mythtv@localhost mythtv]$ cat /dev/input/js0
cat: /dev/input/js0: No such device

Code:
[root@localhost mythtv]# /sbin/modprobe joydev
[root@localhost mythtv]# /sbin/lsmod
Module                  Size  Used by
snd_pcm_oss            43129  0
snd_mixer_oss          14017  1 snd_pcm_oss
snd_intel8x0           30829  1
snd_ac97_codec         58821  1 snd_intel8x0
snd_pcm                83529  2 snd_pcm_oss,snd_intel8x0
snd_timer              25413  1 snd_pcm
snd_page_alloc          8393  2 snd_intel8x0,snd_pcm
gameport                4033  1 snd_intel8x0
snd_mpu401_uart         7361  1 snd_intel8x0
snd_rawmidi            21733  1 snd_mpu401_uart
snd_seq_device          6473  1 snd_rawmidi
snd                    45477  11 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               7713  1 snd
parport_pc             21249  1
lp                      9133  0
parport                35977  2 parport_pc,lp
autofs4                20677  0
sunrpc                141861  1
8139too                22465  0
mii                     3777  1 8139too
ipt_REJECT              5057  1
ipt_state               1857  5
ip_conntrack           25569  1 ipt_state
iptable_filter          2369  1
ip_tables              13889  3 ipt_REJECT,ipt_state,iptable_filter
floppy                 54001  0
sg                     28513  0
scsi_mod              105360  1 sg
microcode               5601  0
xfs                   505777  1
dm_mod                 47317  0
joydev                  7169  0
uhci_hcd               28505  0
button                  4825  0
battery                 7117  0
asus_acpi               9177  0
ac                      3533  0
nvidia               4808532  12
md5                     3905  1
ipv6                  217349  10
ext3                   96937  2
jbd                    66521  1 ext3
I start MythGame and it tells me that the controller is not found


what special stuff do i need to get this controller to work, am i missing something? Are there certain parameters i need to set? Modules missing? If anyone could help me i would really appreciate it (I Desperately need help, I have been trying to get this working over the past day, have looked all over google and just can't figure it out.

Additional Info:
using ALSA and intel8x0 for sound
plan on playing snes9x,fceultra, and mame roms

thanks,
Evan
 
Old 09-26-2004, 12:35 AM   #2
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Rep: Reputation: 15
I have never tried getting a controller working in Linux but if there is no other method maybe your controller is recognized as a keyboard-like input device. If so then you can use showkey -s to capture the scancodes of the controller buttons and setkeycodes to change the buttons functions.

I used this method to make an F lock key fix for Microsoft keyboards in Linux (which doesn't work in Slackware 10 for some reason).
 
Old 09-26-2004, 01:46 AM   #3
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 877

Rep: Reputation: 124Reputation: 124
Hi, GoodOle.

What tutwabee says is worth a shot.

What you also might try is using "cat" to test for whether something in /dev/ is already set up to take input from it. Just type, "cat /dev/xxxx". This won't be pretty, but the basic principal is that if you get nothing (or something steady and not a whole lot of it) when you're not moving your controller, and something when you do move it, then it's the right device. Try using it on /dev/mouse (or wherever your mouse is) first. This will at least tell you if Linux is seeing the controller as a device.

Good luck!

--Dane
 
Old 09-26-2004, 10:01 AM   #4
goodolE22
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2
Posts: 3

Original Poster
Rep: Reputation: 0
what do i type for "cat /dev/xxxx"? I tried typing that as root and putting in js1 for the x's and get the error "No such file or directory both times".

I used the website to try and set up the controller: http://www.mail-archive.com/debian-u.../msg01039.html .

Any other ideas? I have no idea what i am doing anymore

I gave that showkey -s command that tutwabee mentioned a try but I am not exactly sure how to use it. It took inputs from the keyboard and noticed them, but pounding on the game controller produced no results.

I know that i probably don't have the button mapping down right but i think that is the least of my problems right now since mythgame tells me that no controller is found. I don't know what to do if I "/sbin/modprobe joydev" to initialize joydev, no error occurs, and when i do an "/sbin/lsmod" it still sets joydev to 0, insted of recognizing it and setting it to 1.

please help I am desperate. There are a lot of things that i probably haven't tried that are trivial since i am not too familiar with the underlyings of linux.
 
Old 09-26-2004, 02:07 PM   #5
goodolE22
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2
Posts: 3

Original Poster
Rep: Reputation: 0
still not having any luck. I went through google again to try and find something and I came across this link on this site:
http://www.linuxquestions.org/questi...light=joystick]thread
I downloaded joystick-1.2.15-15.i386.rpm and installed it. Then i did another modprobe to add joydev. The lsmod still shows joydev as being 0...

I have no idea how to get this working. When i plug in the controller linux does not respond to it at all or recognize anything is plugged it and if i reboot with it plugged in fedora hangs on startup. I am guessing since when i do "/sbin/modprobe joydev" and there is no error means that joydev is installed in the kernel correct? What do i need to do to get joydev recognized so the lsmod show 1? Do i have to add something else to modprobe.conf? Does "sbin/modprobe joydev" install joydev or do you have to tell it what program is going to use it as well?

any help would be appreciated
 
Old 12-05-2004, 08:37 PM   #6
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
I got this controller working in Slackware 10, well, because they actualy tell you what the hell it is. The other linux distros are usualy a bunch of dumbass's that don't tell you anything. I forgot what the module name is, but I know its not what your using right now. I'll bb later with the module name, if I can ever remember it. Actualy, if your using Slackware 10 (maybe 9.1) could you give the copy of your /etc/rc.d/rc.modules so I can find that controller again. Thanx alot!
 
Old 12-06-2004, 06:05 PM   #7
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
Try "modprobe adi" this is what I used in Slackware 10. Didn't work for me in MDK 10.1, gay. But maybe it'll work in Fedora Core.
 
  


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
Will this controller work with Linux? Kamex Linux - Hardware 1 07-19-2005 07:01 PM
Configuring/Calibrating Airflo PC game controller nosebleed Linux - Hardware 0 07-03-2004 10:35 PM
Can't get SRCU42L RAID controller to work jarrod_001 Linux - Hardware 3 07-01-2004 07:40 PM
using the claw game controller luap Linux - Games 1 03-31-2004 08:36 AM
game controller AzrielMacKay Linux - Software 1 07-13-2001 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:54 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
Open Source Consulting | Domain Registration