View previous topic :: View next topic |
Author |
Message |
AcidTripp n00b
Joined: 15 Aug 2003 Posts: 31
|
Posted: Wed Dec 03, 2003 1:18 am Post subject: X-Box Controller using the xpad |
|
|
Well, I have an x-box controller hooked up to the usb port on my laptop.
Everything works great EXCEPT that when I press up on the left analog pad, it interprets it as moving down. When I press down, it interprets it as up.
I've looked through the driver, but I couldn't get it to work right.
Any ideas?
I'm running 2.6.0-test11. |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Dec 03, 2003 6:34 am Post subject: |
|
|
sounds like it needs to be inverted.
not a clue how, but maybe that word will help |
|
Back to top |
|
|
AcidTripp n00b
Joined: 15 Aug 2003 Posts: 31
|
Posted: Wed Dec 03, 2003 10:53 pm Post subject: |
|
|
Heh, those were my thoughts exactly.
The only problem is *HOW* do I invert the axis...
I've looked through the xpad driver, but couldn't find any way to manually do this...
Any ideas would be VERY much appreciated |
|
Back to top |
|
|
CheshireCat Guru
Joined: 25 Aug 2002 Posts: 572
|
Posted: Mon Dec 22, 2003 9:21 am Post subject: |
|
|
Emerge libjsw, and give jscalibrator a try... that should work. |
|
Back to top |
|
|
wishkah Guru
Joined: 09 May 2003 Posts: 441 Location: de
|
Posted: Mon Dec 22, 2003 11:59 am Post subject: |
|
|
@AcidTripp: How did you get the controller to work??? I'm using 2.6.0 final and the xpad is a module (didn't work with =Y either). When I plug the controller in, nothing happens... zsnes doesn't find any joysticks. I have joystick and HID support in my kernel. _________________ if only I could fill my heart with love... |
|
Back to top |
|
|
CheshireCat Guru
Joined: 25 Aug 2002 Posts: 572
|
Posted: Mon Dec 22, 2003 7:45 pm Post subject: |
|
|
Do you have the joydev module loaded as well, or built in to the kernel? I believe you can load xpad without joydev, and it will appear to work but not provide any devices. |
|
Back to top |
|
|
wishkah Guru
Joined: 09 May 2003 Posts: 441 Location: de
|
Posted: Tue Dec 23, 2003 9:37 am Post subject: |
|
|
CheshireCat wrote: | Do you have the joydev module loaded as well, or built in to the kernel? I believe you can load xpad without joydev, and it will appear to work but not provide any devices. |
.config says:
CONFIG_INPUT_JOYDEV=Y
So I guess it's there.
dmesg says:
Code: |
[...]
usb.c: Registered new driver xpad
[...]
xpad.c: xbox pad driver v0.0.5
[...]
|
But cat /proc/bus/usb/devices doesn't show the pad. Also, the usb mouse and usb keyboard that are hooked to the USB ports aren't shown. Why is that??? I only see "Linux 2.6.0 ehci" and "Linux 2.6.0 uhci"... _________________ if only I could fill my heart with love... |
|
Back to top |
|
|
wishkah Guru
Joined: 09 May 2003 Posts: 441 Location: de
|
Posted: Tue Dec 23, 2003 10:13 am Post subject: |
|
|
I got it working, not perfectly, but it works. I don't know what made it work, I played around in the kernel settings and suddenly it worked (might have been OHCI, which was missing) _________________ if only I could fill my heart with love... |
|
Back to top |
|
|
CheshireCat Guru
Joined: 25 Aug 2002 Posts: 572
|
Posted: Tue Dec 23, 2003 3:08 pm Post subject: |
|
|
There are two incompatible standards for USB1 controllers, sounds like yours is OHCI. You can most likely safely remove the UHCI drivers. If you don't have USB2, you can also remove the EHCI drivers. |
|
Back to top |
|
|
wishkah Guru
Joined: 09 May 2003 Posts: 441 Location: de
|
Posted: Tue Dec 23, 2003 3:48 pm Post subject: |
|
|
CheshireCat wrote: | There are two incompatible standards for USB1 controllers, sounds like yours is OHCI. You can most likely safely remove the UHCI drivers. If you don't have USB2, you can also remove the EHCI drivers. |
Nah, can't hurt to have all "standards" in there, can it? I've got USB 2.0, so I thought ehci would be enough, but I guess it's not. But I will deactivate the verbuse usb debug messages, those are annoying. _________________ if only I could fill my heart with love... |
|
Back to top |
|
|
Morgrog n00b
Joined: 07 Sep 2003 Posts: 32
|
Posted: Thu Feb 12, 2004 11:10 pm Post subject: |
|
|
Back to the topic of the post, I too have problems with inverted axis
JScalibrator makes the arrow go up when I push the left thumbstick down and vice versa
Anyone know how to fix this? |
|
Back to top |
|
|
rockstarbrian n00b
Joined: 26 Jan 2004 Posts: 12 Location: New York
|
Posted: Mon Feb 16, 2004 1:10 am Post subject: axis and dpad problems |
|
|
my axis is inverted also (up and down) and my dpad is not operational..... i've been looking for answers for weeks.... i'm totally lost |
|
Back to top |
|
|
mensan n00b
Joined: 05 Aug 2003 Posts: 74 Location: Seattle, WA
|
Posted: Tue Mar 30, 2004 5:44 pm Post subject: |
|
|
grrrr......i have got the same thing. inverted axis. anyone? anything? |
|
Back to top |
|
|
mensan n00b
Joined: 05 Aug 2003 Posts: 74 Location: Seattle, WA
|
Posted: Tue Mar 30, 2004 5:59 pm Post subject: |
|
|
well, after playing with jscalibrator, i found that even it sees the up/down axis as inverted. when doing calibration, down is up and up is down.
any help is certainly appreciated.
thanks. |
|
Back to top |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Sun Jul 25, 2004 7:33 pm Post subject: Me too |
|
|
Another victum of inversion, im running 2.6.7 as of yet no fix. THis ought to be easy one would think to fix. Some games let me fix it like zsnes but most dont. _________________ Two idiots make a wrong |
|
Back to top |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Sun Jul 25, 2004 7:36 pm Post subject: Me too |
|
|
Sorry, internet glitch dup of above thread _________________ Two idiots make a wrong
Last edited by bungernut on Sun Jul 25, 2004 8:40 pm; edited 1 time in total |
|
Back to top |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Sun Jul 25, 2004 8:38 pm Post subject: Me too |
|
|
Int glitch Dup of above above thread _________________ Two idiots make a wrong |
|
Back to top |
|
|
John5788 Advocate
Joined: 06 Apr 2004 Posts: 2140 Location: 127.0.0.1
|
Posted: Mon Jul 26, 2004 4:30 am Post subject: Re: Me too |
|
|
bungernut wrote: | Another victum of inversion, im running 2.6.7 as of yet no fix. THis ought to be easy one would think to fix. Some games let me fix it like zsnes but most dont. |
curious, how _do_ you hook up an XBOX controller to linux? i want to do that _________________ John5788 |
|
Back to top |
|
|
bungernut Apprentice
Joined: 24 Jan 2004 Posts: 173
|
Posted: Mon Aug 02, 2004 4:34 am Post subject: hooking up an x-box |
|
|
either buy or make a x-box controller to usb adaptor. X-box contorllers are just USB interfaces with custom plugs so its really easy to make the adaptor if you have a spare x-box dongle ans USB cable you can splice together, they are also pretty cheep online. _________________ Two idiots make a wrong |
|
Back to top |
|
|
John5788 Advocate
Joined: 06 Apr 2004 Posts: 2140 Location: 127.0.0.1
|
Posted: Mon Aug 02, 2004 4:35 am Post subject: |
|
|
yeah i screwed up trying to solder a USB connector to an existing xbox controller. now im having problems with joy2key/zsnes/axis with my logitech dual analog gamepad... _________________ John5788 |
|
Back to top |
|
|
woodwizzle Apprentice
Joined: 30 Nov 2003 Posts: 225
|
Posted: Thu Aug 19, 2004 8:24 am Post subject: |
|
|
I just made a xbox usb controller out of an S controller. I too have an inverted y axis for the left thumbstick, triggers that don't work, and a very wierldy mapped d-pad. I'm using the xpad module compiled from my 2.6.7-ck5 kernel.
I spent a good amount of time making the contoller, and now these bugs have me bummed out. I've tried jscalibrator. It's flip toggles are useless as far as I can tell. Is there a more direct way I can configure the xpad module? If not does anyone here know how soon we can expect a new version or at least a patch? =)
Thanks |
|
Back to top |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Mon Aug 23, 2004 5:27 am Post subject: |
|
|
I just made an mod for the S controller too, and found those issues. I've managed to fix the driver so that the L+R triggers are now buttons, and my axes (turns out both left and right were upside down for me) are now both working properly. Now just to create the .patch, and possibly submit to the kernel.
http://www.strudel-hound.com/xpad-0.6.patch
^ There's my simple patch, gimme a yell if you have troubles at enigma . at . strudel-hound.com |
|
Back to top |
|
|
woodwizzle Apprentice
Joined: 30 Nov 2003 Posts: 225
|
Posted: Tue Aug 24, 2004 6:08 am Post subject: |
|
|
You are awesome |
|
Back to top |
|
|
the_enigma Apprentice
Joined: 23 Aug 2004 Posts: 210 Location: Brisbane, Aus
|
Posted: Tue Aug 24, 2004 9:22 am Post subject: |
|
|
Patch seems to work cleanly against 2.6.8.1, then again I don't see how it could break anything. Seems like there's no maintainer for this either ... hmm ... might have to give it a shot myself. |
|
Back to top |
|
|
flazz Guru
Joined: 22 Nov 2003 Posts: 496 Location: Florida
|
Posted: Sat Sep 11, 2004 12:39 am Post subject: |
|
|
does anyone have the dpad working??? |
|
Back to top |
|
|
|