Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.