LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-19-2006, 01:35 AM   #1
Xzyx987X
LQ Newbie
 
Registered: Nov 2006
Distribution: Ubuntu 6.10 x86_64
Posts: 21

Rep: Reputation: 15
USB gamepad not working


I have a PS2 USB adapter I'm trying to get working in Linux. I'm not really sure what it takes to get a gamepad working in Linux and I haven't been able to find anything that worked for me so far. After plugging and unplugging the pad several times I checked dmesg and the output was:

Code:
[73174.360032] usb 2-4: new full speed USB device using ohci_hcd and address 3
[73174.436594] usb 2-4: device descriptor read/64, error -110
[73174.556427] usb 2-4: device descriptor read/64, error -110
[73174.672933] usb 2-4: new full speed USB device using ohci_hcd and address 4
[73174.749494] usb 2-4: device descriptor read/64, error -110
[73174.869329] usb 2-4: device descriptor read/64, error -110
[73174.985834] usb 2-4: new full speed USB device using ohci_hcd and address 5
[73175.155598] usb 2-4: device not accepting address 5, error -110
[73175.228834] usb 2-4: new full speed USB device using ohci_hcd and address 6
[73175.398595] usb 2-4: device not accepting address 6, error -110
[79359.713444] usb 2-1: new full speed USB device using ohci_hcd and address 7
[79359.790004] usb 2-1: device descriptor read/64, error -110
[79359.909839] usb 2-1: device descriptor read/64, error -110
[79360.026344] usb 2-1: new full speed USB device using ohci_hcd and address 8
[79360.102905] usb 2-1: device descriptor read/64, error -110
[79360.222739] usb 2-1: device descriptor read/64, error -110
[79360.339246] usb 2-1: new full speed USB device using ohci_hcd and address 9
[79360.509012] usb 2-1: device not accepting address 9, error -110
[79360.582243] usb 2-1: new full speed USB device using ohci_hcd and address 10
[79360.752009] usb 2-1: device not accepting address 10, error -110
Note that the last one was an attempt to plug in an XBOX 360 controller, so I'm reasonably sure it's not just an issue with my PS2 adapter. I tried as suggested somewhere else to load the joydev module, but doing so had no effect. Another place suggested I load the hid (human interface device I assume) module, but according to modprobe I don't have it, and I really have no clue how to get it or if it would even help. I know the controller showed up as an HID under windows, but so did my mouse and it's working just fine. Anyone know what I should try next?
 
Old 12-19-2006, 02:32 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The module to modprobe is called "usbhid". What does "lsusb" print out when you have the controller plugged in?

Part of the solution will involve how you need to edit your xorg.conf file. If there is a linux hack to run Linux on a PS2, a website on that topic may have a sample xorg.conf where you can get the information for the "Input Device" entries for a ps2 gamepad.
 
Old 12-19-2006, 03:44 AM   #3
Xzyx987X
LQ Newbie
 
Registered: Nov 2006
Distribution: Ubuntu 6.10 x86_64
Posts: 21

Original Poster
Rep: Reputation: 15
Just so we're clear, I'm not running Linux on a PS2, just a regular computer. I'm using the pad through a USB adapter. Anyway, modprobe usbhid didn't help... The output from lsusb is the same regardless of whether I have a controller plugged in or not:

Code:
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 002: ID 1267:0103 Logic3 / SpectraVideo plc 
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 005: ID 046d:c00e Logitech, Inc. M-BJ69 Optical Wheel Mouse
Bus 001 Device 003: ID 03f0:0004 Hewlett-Packard DeskJet 895c
Bus 001 Device 001: ID 0000:0000
Now this is a bit strange. While I recognize the other two devices, I don't have anything like a "Logic3 / SpectraVideo plc" plugged in. I have a Belkin USB keyboard plugged in which isn't on the list, but that's probably just because I enabled USB keyboard support in the BIOS, which I'm assuming is making the system see it as a PS/2 device (not to be confused with a PS2 device like the controller I'm trying to use :P). So yea, that's a bit odd, but it doesn't really help me get the gamepad working.
 
Old 12-19-2006, 08:03 AM   #4
Xzyx987X
LQ Newbie
 
Registered: Nov 2006
Distribution: Ubuntu 6.10 x86_64
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, as it turns out this is actually in no way Linux's fault (hey, there's a first time for everything :P). But actually, it looks like I've got an even bigger problem on my hands.

My USB ports are dropping like flies. I have 6 ports availible on my system, and only 3 are working right now. I lost one a while ago, but finding out just now that I lost two since the last time my gamepad was hooked up really caught me off guard.

I have no idea why this keeps happening to me, the last motherboard I had came down with the same problem. And once it had a USB port die, the whole thing failed within a few months, taking down my video card and memory with it. About the only USB device I had connected to both machines was my printer and it wasn't ever hooked up to a port that went dead. I think I'm going to have to seriously consider putting a surge protector between my USB devices and my PC... I have no idea which device is at fault, but I don't think I can trust any of them to be connected to my PC directly right now. You know, this might explain why my USB thumb drive wouldn't work right earlier as well. If the USB port was partially damaged that could screw things up all kinds of ways.
 
Old 12-19-2006, 09:11 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I realized that. If Linux on a PS2 runs X windows, then the part of the xorg.conf file dealing with the gamepad will probably be the same. Good luck with the USB ports.
 
Old 12-24-2006, 10:05 PM   #6
Xzyx987X
LQ Newbie
 
Registered: Nov 2006
Distribution: Ubuntu 6.10 x86_64
Posts: 21

Original Poster
Rep: Reputation: 15
Yea, so about 2 hours after my last post, my motherboard dies. I sure called that one... So, one new motherboard and video card later, I seem to be running just fine. I'm definately gonna need a USB surge protector here though. That motherboard was only a year and a half old, and I really can't afford to replace my hardware that frequently...
 
  


Reply



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 Gamepad LostNLinux Linux - General 7 05-27-2005 05:27 PM
Saitek P880 USB Gamepad Stopped Working in Mandrake 10.1 Community DarthSabbath Linux - Hardware 3 12-15-2004 09:53 PM
USB Gamepad mykrob Linux - Hardware 6 08-12-2004 08:32 PM
usb gamepad and a windowmanger c0rderr0y Slackware 0 03-03-2004 04:26 PM
Need some help installing my USB gamepad hbbtstar Linux - Newbie 1 09-18-2003 08:01 PM

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

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