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 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
AcidTripp
n00b
n00b


Joined: 15 Aug 2003
Posts: 31

PostPosted: Wed Dec 03, 2003 1:18 am    Post subject: X-Box Controller using the xpad Reply with quote

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
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Dec 03, 2003 6:34 am    Post subject: Reply with quote

sounds like it needs to be inverted.

not a clue how, but maybe that word will help :?
Back to top
View user's profile Send private message
AcidTripp
n00b
n00b


Joined: 15 Aug 2003
Posts: 31

PostPosted: Wed Dec 03, 2003 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Mon Dec 22, 2003 9:21 am    Post subject: Reply with quote

Emerge libjsw, and give jscalibrator a try... that should work.
Back to top
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Mon Dec 22, 2003 11:59 am    Post subject: Reply with quote

@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
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Mon Dec 22, 2003 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Tue Dec 23, 2003 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Tue Dec 23, 2003 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Tue Dec 23, 2003 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Tue Dec 23, 2003 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Morgrog
n00b
n00b


Joined: 07 Sep 2003
Posts: 32

PostPosted: Thu Feb 12, 2004 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
rockstarbrian
n00b
n00b


Joined: 26 Jan 2004
Posts: 12
Location: New York

PostPosted: Mon Feb 16, 2004 1:10 am    Post subject: axis and dpad problems Reply with quote

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
View user's profile Send private message
mensan
n00b
n00b


Joined: 05 Aug 2003
Posts: 74
Location: Seattle, WA

PostPosted: Tue Mar 30, 2004 5:44 pm    Post subject: Reply with quote

grrrr......i have got the same thing. inverted axis. anyone? anything?
Back to top
View user's profile Send private message
mensan
n00b
n00b


Joined: 05 Aug 2003
Posts: 74
Location: Seattle, WA

PostPosted: Tue Mar 30, 2004 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
bungernut
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 173

PostPosted: Sun Jul 25, 2004 7:33 pm    Post subject: Me too Reply with quote

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
View user's profile Send private message
bungernut
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 173

PostPosted: Sun Jul 25, 2004 7:36 pm    Post subject: Me too Reply with quote

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
View user's profile Send private message
bungernut
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 173

PostPosted: Sun Jul 25, 2004 8:38 pm    Post subject: Me too Reply with quote

Int glitch Dup of above above thread
_________________
Two idiots make a wrong
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Mon Jul 26, 2004 4:30 am    Post subject: Re: Me too Reply with quote

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
View user's profile Send private message
bungernut
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 173

PostPosted: Mon Aug 02, 2004 4:34 am    Post subject: hooking up an x-box Reply with quote

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
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Mon Aug 02, 2004 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message
woodwizzle
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 225

PostPosted: Thu Aug 19, 2004 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
the_enigma
Apprentice
Apprentice


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

PostPosted: Mon Aug 23, 2004 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message
woodwizzle
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 225

PostPosted: Tue Aug 24, 2004 6:08 am    Post subject: Reply with quote

You are awesome :D
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 Aug 24, 2004 9:22 am    Post subject: Reply with quote

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
View user's profile Send private message
flazz
Guru
Guru


Joined: 22 Nov 2003
Posts: 496
Location: Florida

PostPosted: Sat Sep 11, 2004 12:39 am    Post subject: Reply with quote

does anyone have the dpad working???
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 1, 2, 3, 4  Next
Page 1 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