LinuxQuestions.org
Visit the LQ Articles and Editorials section

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 access 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.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

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.

Go Back   LinuxQuestions.org > Forums > Linux > 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?

Reply
 
Thread Tools
Old 05-14-2008, 01:20 PM   #1
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 165
Can't for the life of me get an Xbox360 wired controller to work in Linux


[Log in to get rid of this advertisement]
Ok, let's take it briefly:

I know the device exists and that it's being somewhat recognized as I can do "jstest /dev/input/js0" and get:

Code:
Driver version is 2.1.0.
Joystick (Microsoft X-Box 360 pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 13 buttons (BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnThumbR, ?, ?, ?, BackBtn).
Testing ... (interrupt to exit)
Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:-32767  6:     0  7: 32767 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off 11:off 12:off
But the gamepad will NOT send any key-presses !
Every game-pad guide just mentions that you can do "cat /dev/input/js0" and that this will return some weird characters - and that more will come each time you press a button - signifying that the gamepad is indeed working.

However, I get no extra weird characters, there's nothing to suggest that any key-presses are being sent, furthermore, if I attempt a calibration like:
"jscal -c /dev/input/js0"

I get
Code:
jscal -c /dev/input/
by-id/   event0   event2   event4   event6   mice     mouse1   
by-path/ event1   event3   event5   js0      mouse0   
root@monolith:/dev/input# jscal -c /dev/input/js0 
Joystick has 8 axes and 13 buttons.
Correction for axis 0 is broken line, precision is 16.
Coeficients are: -128, 128, 16513, 16513
Correction for axis 1 is broken line, precision is 16.
Coeficients are: -128, 128, 16513, 16513
Correction for axis 2 is broken line, precision is 0.
Coeficients are: 127, 127, 4227330, 4227330
Correction for axis 3 is broken line, precision is 16.
Coeficients are: -128, 128, 16513, 16513
Correction for axis 4 is broken line, precision is 16.
Coeficients are: -128, 128, 16513, 16513
Correction for axis 5 is broken line, precision is 0.
Coeficients are: 127, 127, 4227330, 4227330
Correction for axis 6 is broken line, precision is 0.
Coeficients are: 0, 0, 536870912, 536870912
Correction for axis 7 is broken line, precision is 0.
Coeficients are: 0, 0, 536870912, 536870912

Calibrating precision: wait and don't touch the joystick.
Axis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisAxis 0:    0,    0 Axis 1:    0,    0 Axis 2:    0,    0 Axis 3:    0,    0 AxisDone. Precision is:                                             1,    1 
Axis: 0:     0
Axis: 1:     0
Axis: 2:     0
Axis: 3:     0
Axis: 4:     0
Axis: 5:     0
Axis: 6:     0
Axis: 7:     0

Move axis 0 to minimum position and push any button.
Axis 0:        0
Problem is, it hangs here because it won't recognize that I'm hammering keys to get on. It's just not receiving a thing.

Please, please help!
Dark Carnival is offline     Reply With Quote
Old 05-14-2008, 05:13 PM   #2
MS3FGX
Senior Member
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 3,365
What kernel are you using?
MS3FGX is offline     Reply With Quote
Old 05-15-2008, 04:28 AM   #3
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 165
2.6.24 on a Ubuntu Hardy Heron system.

I finally got it working though

See, ubuntu includes an xpad driver by default - which is what I've been using - turns out they don't update the driver too often and so it's just for the old Xbox1 gamepads while newer releases (which have been in existence from long before Gutsy's end ) also have xbox360 controller support.

Anyway, you'll have to compile the driver yourself, generally, I just followed the instructions at:
https://help.ubuntu.com/community/Xbox360Controller

And it turned out to be easy. It's just misleading when you're sitting with a recent distro and it has the same type of driver already bundled in. That was what caused me trouble
Dark Carnival is offline     Reply With Quote

Reply

Submit thread to Digg | Submit thread to del.icio.us | Submit to LQ Bookmarks

« Back to Top »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Streaming Media to Xbox360 while in Linux? lifeforce4 Linux - Software 0 09-05-2007 07:44 PM
Streaming from linux to a Xbox360? troyyy Linux - General 4 03-16-2007 10:38 AM
Will this controller work with Linux? Kamex Linux - Hardware 1 07-19-2005 07:01 PM
How Is Work Linux Domain Controller & Ms Windows Grave Linux - Networking 1 05-09-2005 07:19 AM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 10:16 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration