View previous topic :: View next topic |
Author |
Message |
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Sat Jul 23, 2005 10:53 pm Post subject: |
|
|
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 |
|
|
Occasus Apprentice
Joined: 22 Feb 2005 Posts: 158 Location: Italia
|
Posted: Thu Aug 11, 2005 5:53 pm Post subject: |
|
|
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 |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Thu Aug 11, 2005 8:49 pm Post subject: |
|
|
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 |
|
|
Occasus Apprentice
Joined: 22 Feb 2005 Posts: 158 Location: Italia
|
Posted: Fri Aug 12, 2005 7:33 am Post subject: |
|
|
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 |
|
|
Caeberos Tux's lil' helper
Joined: 24 Mar 2004 Posts: 109
|
Posted: Tue Nov 29, 2005 1:07 am Post subject: |
|
|
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 |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Tue Nov 29, 2005 2:09 am Post subject: |
|
|
i believe you have to use a vanilla kernel. |
|
Back to top |
|
|
Caeberos Tux's lil' helper
Joined: 24 Mar 2004 Posts: 109
|
Posted: Tue Nov 29, 2005 2:20 am Post subject: |
|
|
it worked when I used it on the 2.6.13-r2 gentoo sources kernel |
|
Back to top |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Tue Nov 29, 2005 9:11 am Post subject: |
|
|
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 |
|
|
WerK Tux's lil' helper
Joined: 05 Mar 2005 Posts: 96 Location: Prague, Czech Republic
|
Posted: Thu Dec 08, 2005 4:30 pm Post subject: |
|
|
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 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 |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Fri Dec 09, 2005 9:21 am Post subject: |
|
|
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 |
|
|
capkanada n00b
Joined: 06 Dec 2004 Posts: 21 Location: Currently? In your head! :-3
|
Posted: Sat Dec 10, 2005 5:14 am Post subject: |
|
|
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 |
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.
Love your work so far on this. |
|
Back to top |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Sat Dec 10, 2005 6:21 am Post subject: |
|
|
Ok, re did it. Same location. I just patched and compiled against 2.6.14 fine.
Anyone else testing? |
|
Back to top |
|
|
Caeberos Tux's lil' helper
Joined: 24 Mar 2004 Posts: 109
|
Posted: Mon Dec 12, 2005 8:18 pm Post subject: |
|
|
awesome, it works great now! thanks for the update |
|
Back to top |
|
|
Caeberos Tux's lil' helper
Joined: 24 Mar 2004 Posts: 109
|
Posted: Mon Feb 13, 2006 4:38 am Post subject: |
|
|
I am having problems again with kernel 2.6.15-r1 anyone else having any luck? |
|
Back to top |
|
|
WerK Tux's lil' helper
Joined: 05 Mar 2005 Posts: 96 Location: Prague, Czech Republic
|
Posted: Mon Feb 13, 2006 2:21 pm Post subject: |
|
|
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 |
|
|
Caeberos Tux's lil' helper
Joined: 24 Mar 2004 Posts: 109
|
Posted: Wed Feb 15, 2006 4:06 am Post subject: |
|
|
I got it to patch cleanly, I am an idiot, thanks Werk |
|
Back to top |
|
|
DaDead Tux's lil' helper
Joined: 11 Feb 2004 Posts: 75
|
Posted: Sat Apr 15, 2006 7:02 pm Post subject: |
|
|
2.6.16 breaks this patch again :\ |
|
Back to top |
|
|
darklegion Guru
Joined: 14 Nov 2004 Posts: 468
|
Posted: Sat Jun 17, 2006 4:31 am Post subject: |
|
|
DaDead wrote: | 2.6.16 breaks this patch again :\ |
Yep.
The patch should be in mainline IMHO. |
|
Back to top |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Sat Jun 17, 2006 5:33 am Post subject: |
|
|
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 |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Tue Jun 20, 2006 3:48 am Post subject: |
|
|
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 |
|
|
Caeberos Tux's lil' helper
Joined: 24 Mar 2004 Posts: 109
|
Posted: Wed Oct 25, 2006 12:15 am Post subject: |
|
|
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 |
|
|
capkanada n00b
Joined: 06 Dec 2004 Posts: 21 Location: Currently? In your head! :-3
|
Posted: Wed Jan 10, 2007 3:17 pm Post subject: |
|
|
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 |
|
|
capkanada n00b
Joined: 06 Dec 2004 Posts: 21 Location: Currently? In your head! :-3
|
Posted: Sat Feb 03, 2007 8:24 am Post subject: |
|
|
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...
EDIT: (Still has the same configuration options, which is why I prefer it, even over the 2.6.19 xpad.c) |
|
Back to top |
|
|
darklegion Guru
Joined: 14 Nov 2004 Posts: 468
|
Posted: Sun Feb 18, 2007 5:17 am Post subject: |
|
|
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...
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 |
|
|
|