Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X-Box Controller using the xpad
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Sat Jul 23, 2005 10:53 pm    Post subject: Reply with quote

Ok, I think I didn't really supply enough info for the options thing, so here's another explanation
Inverting the left stick is 1
Inverting the right stick is 2
Using the dpad as buttons (DDR mode) is 4
Using the L&R triggers as buttons is 8

Add together the options you want to use, and then pass that to modprobe.

So for DDR mode and L&R triggers as buttons, we want 4+8, or 12.
so "modprobe xpad options=12"
Back to top
View user's profile Send private message
Occasus
Apprentice
Apprentice


Joined: 22 Feb 2005
Posts: 158
Location: Italia

PostPosted: Thu Aug 11, 2005 5:53 pm    Post subject: Reply with quote

hi, is there a tutorial about installing the xpad. i can't understand very good english, so i can't understand how to do this reading this thread :(
_________________
Guru Meditation
Back to top
View user's profile Send private message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Thu Aug 11, 2005 8:49 pm    Post subject: Reply with quote

Download a kernel of your choice (I know vanilla patches cleanly, other sources may have differing results)
Download my patch
Unpack and link the kernel sources to /usr/src/linux/
Go to /usr/src/
Run
Code:
 patch -p0 < /path/to/xpad.patch

Then configure your kernel as per usual, enable the Xpad driver.
Do a make and make_install, set up your boot loader etc
Add options (see above for which options) to /etc/modules.d/xpad in the following format
Code:
options xpad options=11

Where I have options set to 11.
Run modules-update.
Reboot into your new kernel.
Back to top
View user's profile Send private message
Occasus
Apprentice
Apprentice


Joined: 22 Feb 2005
Posts: 158
Location: Italia

PostPosted: Fri Aug 12, 2005 7:33 am    Post subject: Reply with quote

ok, thank you for the how-to. i'd reinstall gentoo (for other reasons), then i'll do this with the new kernel :)
_________________
Guru Meditation
Back to top
View user's profile Send private message
Caeberos
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 109

PostPosted: Tue Nov 29, 2005 1:07 am    Post subject: Reply with quote

Sorry to ressurect this topic but I just tried patching the .0.0.7 file agains the 2.6.14-r2 kernel in gentoo sources and it doesn't patch cleanly, I get an error at bit 5 I believe, is anyone else having this problem?
Back to top
View user's profile Send private message
seren
Guru
Guru


Joined: 27 Aug 2005
Posts: 448
Location: Wisconsin

PostPosted: Tue Nov 29, 2005 2:09 am    Post subject: Reply with quote

i believe you have to use a vanilla kernel.
Back to top
View user's profile Send private message
Caeberos
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 109

PostPosted: Tue Nov 29, 2005 2:20 am    Post subject: Reply with quote

it worked when I used it on the 2.6.13-r2 gentoo sources kernel
Back to top
View user's profile Send private message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Tue Nov 29, 2005 9:11 am    Post subject: Reply with quote

I'll look into it for you guys. I think there was talk about changing how joysticks are interfaced in 2.6.14, can't remember though.
Back to top
View user's profile Send private message
WerK
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 96
Location: Prague, Czech Republic

PostPosted: Thu Dec 08, 2005 4:30 pm    Post subject: Reply with quote

Hi there. I'm stepmania addict and I have been using DDR pads from xbox with solded USB connectors for a long time. I have always been using modified xpad.c from http://einsteinsbreakfast.com/demos/xpad.c . Recently, I updated my kernel to 2.6.14 and everything was OK. I wanted to play DDR today, so I connected the pads and launched stepmania. But in stepmania, no events from xpad were received. It looked very strange so I reconnected xpad and ran
Code:
cat /dev/input/js0
which surprisingly worked (some junk coming out of device when I was pressing the buttons). But when I launch stepmania, it correctly detects the joystick, but the device stops working (no junk coming out of it). In 2.6.13 everything works OK ... is it a problem related to new joystick interface as someone mentioned here and can we look forward to a fix ?:) Thanks
_________________
Regards,
WerK
Back to top
View user's profile Send private message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Fri Dec 09, 2005 9:21 am    Post subject: Reply with quote

Ok, I quickly whipped up a patch for 2.6.14.3, latest stable from kernel.org. This patch applies cleanly, but I haven't had time to test compilation as my power pack for my laptop has died, so I can't waste too much power till Monday.

http://www.strudel-hound.com/xpad-0.0.9.patch
Back to top
View user's profile Send private message
capkanada
n00b
n00b


Joined: 06 Dec 2004
Posts: 21
Location: Currently? In your head! :-3

PostPosted: Sat Dec 10, 2005 5:14 am    Post subject: Reply with quote

the_enigma wrote:
Ok, I quickly whipped up a patch for 2.6.14.3, latest stable from kernel.org. This patch applies cleanly, but I haven't had time to test compilation as my power pack for my laptop has died, so I can't waste too much power till Monday.

http://www.strudel-hound.com/xpad-0.0.9.patch


:cry:
Compile fails with...
Code:

CC [M]  drivers/usb/input/xpad.o
drivers/usb/input/xpad.c: In function `xpad_process_packet':
drivers/usb/input/xpad.c:161: error: `invert' undeclared (first use in this function)
drivers/usb/input/xpad.c:161: error: (Each undeclared identifier is reported only once
drivers/usb/input/xpad.c:161: error: for each function it appears in.)
drivers/usb/input/xpad.c:176: error: `options' undeclared (first use in this function)
drivers/usb/input/xpad.c:181: error: `ABS_ZR' undeclared (first use in this function)
make[3]: *** [drivers/usb/input/xpad.o] Error 1
make[2]: *** [drivers/usb/input] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2


Not sure what to hack at to get it to work properly...if this helps you out as far as putting a new one together, enigma, it'd be great. :wink:
Love your work so far on this.
Back to top
View user's profile Send private message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Sat Dec 10, 2005 6:21 am    Post subject: Reply with quote

Ok, re did it. Same location. I just patched and compiled against 2.6.14 fine.

Anyone else testing?
Back to top
View user's profile Send private message
Caeberos
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 109

PostPosted: Mon Dec 12, 2005 8:18 pm    Post subject: Reply with quote

awesome, it works great now! thanks for the update
Back to top
View user's profile Send private message
Caeberos
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 109

PostPosted: Mon Feb 13, 2006 4:38 am    Post subject: Reply with quote

I am having problems again with kernel 2.6.15-r1 anyone else having any luck?
Back to top
View user's profile Send private message
WerK
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 96
Location: Prague, Czech Republic

PostPosted: Mon Feb 13, 2006 2:21 pm    Post subject: Reply with quote

Caeberos wrote:
I am having problems again with kernel 2.6.15-r1 anyone else having any luck?
I have no problem with it (2.6.15-ck2) ... just applied the 0.0.9 patch and it works OK
_________________
Regards,
WerK
Back to top
View user's profile Send private message
Caeberos
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 109

PostPosted: Wed Feb 15, 2006 4:06 am    Post subject: Reply with quote

I got it to patch cleanly, I am an idiot, thanks Werk
Back to top
View user's profile Send private message
DaDead
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2004
Posts: 75

PostPosted: Sat Apr 15, 2006 7:02 pm    Post subject: Reply with quote

2.6.16 breaks this patch again :\
Back to top
View user's profile Send private message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Sat Jun 17, 2006 4:31 am    Post subject: Reply with quote

DaDead wrote:
2.6.16 breaks this patch again :\


Yep.
The patch should be in mainline IMHO.
Back to top
View user's profile Send private message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Sat Jun 17, 2006 5:33 am    Post subject: Reply with quote

Ohman, I must've missed a topic reply thing
Ok, I'll try to work out the new patch, gimme a day or so. Exams atm.
Back to top
View user's profile Send private message
the_enigma
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 210
Location: Brisbane, Aus

PostPosted: Tue Jun 20, 2006 3:48 am    Post subject: Reply with quote

http://www.strudel-hound.com/xpad-2.6.17.patch

There you go. Patches and compiles against plain vanilla 2.6.17. Haven't tested it as my controller is AWOL. Hope it works, post here if you have issues.
Back to top
View user's profile Send private message
Caeberos
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 109

PostPosted: Wed Oct 25, 2006 12:15 am    Post subject: Reply with quote

I compiled the patch cleanly against my 2.6.17-r8 gentoo sources kernel, however I am having an issue with the kernel where the x-box controller is recognized and the driver is loaded, but no device is created. I haven't been able to get past that issue to test the driver

:edit: it appears I have miswired my wireless controller because the wired controller I have works fine, DAMMIT I hate pulling this thing out of my system to wire it again
Back to top
View user's profile Send private message
capkanada
n00b
n00b


Joined: 06 Dec 2004
Posts: 21
Location: Currently? In your head! :-3

PostPosted: Wed Jan 10, 2007 3:17 pm    Post subject: Reply with quote

Any hope of this being fixed to work with 2.6.19? I've about broke my brain trying to get things figured out myself....

Thanks.
Back to top
View user's profile Send private message
capkanada
n00b
n00b


Joined: 06 Dec 2004
Posts: 21
Location: Currently? In your head! :-3

PostPosted: Sat Feb 03, 2007 8:24 am    Post subject: Reply with quote

Ahem...

Pardon my... ...double posting? (Even though its been quite some time since I posted the above one...)

I played around, patched a 2.6.17 xpad.c, then made a diff between that and the one from 2.6.19, and patched with that.

...Here's the results, and from what I can tell, they work just fine.
http://home.windstream.net/capkanada/patches/xpad-2.6.19.patch

My brain unbroke pretty well... :wink:

EDIT: (Still has the same configuration options, which is why I prefer it, even over the 2.6.19 xpad.c)
Back to top
View user's profile Send private message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Sun Feb 18, 2007 5:17 am    Post subject: Reply with quote

capkanada wrote:
Ahem...

Pardon my... ...double posting? (Even though its been quite some time since I posted the above one...)

I played around, patched a 2.6.17 xpad.c, then made a diff between that and the one from 2.6.19, and patched with that.

...Here's the results, and from what I can tell, they work just fine.
http://home.windstream.net/capkanada/patches/xpad-2.6.19.patch

My brain unbroke pretty well... :wink:

EDIT: (Still has the same configuration options, which is why I prefer it, even over the 2.6.19 xpad.c)


Agreed on this being a better patch, the triggers-as-buttons and invert axis options are essential to get my pad working properly.Your patch works fine with 2.6.20, BTW.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum