Xbox Controller S doesn't work
#16
I made the usb hack on my Logitech Xbox Cordless Controller, tested it on XP and it worked fine with the calibration program. Popped it into my XBMC machine (Ubuntu 8.10, 2.6.27-11-generic) and the xpad driver loaded properly:

Code:
[   11.902122] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   11.911307] input: Logitech Xbox Cordless Controller as /devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input5
[   12.016637] usbcore: registered new interface driver xpad
[   12.016642] xpad: driver for Xbox controllers v0.1.7
[   12.250831] input: PC Speaker as /devices/platform/pcspkr/input/input6

XBMC detects it, but none of the buttons do anything. The most I get out of it is the left analog stick will zip the mouse around the screen really fast. It's uncontrollably fast though.

Code:
07:40:57 T:3049793344 M:1302953984    INFO: Pixel Ratio: 1.000000
07:40:57 T:3049793344 M:1302953984    INFO: ID:0x169 Name:320x240 Refresh:60.000000 Width:320 Height:240
07:40:57 T:3049793344 M:1302953984    INFO: Pixel Ratio: 1.000000
07:40:57 T:3049793344 M:1302884352   DEBUG: CLowLevelKeyboard::Initialize - XKb symbols pc_us_inet(evdev)
07:40:57 T:3049793344 M:1302884352    INFO: LIRC Initialize: connect failed: No such file or directory
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 0 , default amount 0
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 1 , default amount 0
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 2 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 3 , default amount 0
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 4 , default amount 0
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 5 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 6 , default amount 0
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 7 , default amount 0
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 8 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 9 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 10 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 11 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 12 , default amount -32767
07:40:57 T:3049793344 M:1302884352   DEBUG: Calibrated Axis: 13 , default amount -32767
07:40:57 T:3049793344 M:1302884352  NOTICE: Enabled Joystick: Logitech Xbox Cordless Controller
07:40:57 T:3049793344 M:1302884352    INFO: Drives are mapped
07:40:57 T:3049793344 M:1302884352  NOTICE: load settings...
07:40:57 T:3049793344 M:1302884352  NOTICE: special://profile/ is mapped to: special://masterprofile/
07:40:57 T:3049793344 M:1302884352  NOTICE: loading special://masterprofile/guisettings.xml
07:40:57 T:3049793344 M:1302884352  NOTICE: Getting hardware information now...
07:40:57 T:3049793344 M:1302884352    INFO: Using digital output
07:40:57 T:3049793344 M:1302884352    INFO: AC3 pass through is disabled

I saw one other person in this thread that had it working...was wondering if anyone had any tips? I compiled the driver as per the instructions in this thread (thanks to the last post above with the patch), but the behavior did not change.
Reply
#17
philter Wrote:...

You can test my patch and Keymap.xml. http://trac.xbmc.org/ticket/5759
It should works with the latest kernel module.
Reply
#18
Those patches deal with deadzone and dpads though right? None of my buttons work...I don't want to patch up xbmc and then find out only dpad and joystick works.

I ended up getting it to work using the userspace xboxdrv.
Reply
#19
philter Wrote:Those patches deal with deadzone and dpads though right? None of my buttons work...I don't want to patch up xbmc and then find out only dpad and joystick works.

I ended up getting it to work using the userspace xboxdrv.

This trouble come from the old kernel module . Actually xpad module mapping is different to xbox mapping. So those patches permit to configure buttons (keymap) and fix some features like dpad (hat) and deadzone on current kernel module.

Indeed userspace xboxdrv is another possibility.
Reply
#20
Jezz_X Wrote:Ok here you go instuctions are in a text file in the archive (mostly copied from the ubuntu wiki)
http://blackbolt.x-scene.com/Jezz_X/Cust...ers.tar.gz

Hey there
I just upgraded to Hardy 8.04, and ran into this exact same problem with the XBOX controller DPAD not working. Testing in JSCallibrator and as mentioned it is coming up as AXIS not button.
I'm a little confused with the steps in the "How to Install"
sudo apt-get install linux-headers-`uname -r` build-essential automake1.9

I get a "Could not find package linux-headers-uname -r" message

any help?
Reply
#21
must have been a typo, worked very well thanks
Reply
#22
I just soldered a USB connector to an old xbox pad. Trying to use it in linux on my laptop, the following happens.

The deadzone seems to be zero. (jumps to corners) After a test with jscalibrator it moves the cursor smoothly in X desktop. Buttons doesn't seem to work at all. (might be an exception with the back button)

lsusb:
Code:
Bus 002 Device 008: ID 045e:0202 Microsoft Corp. Xbox Controller
Bus 002 Device 007: ID 045e:001c Microsoft Corp. Internet Keyboard Pro

dmesg:
Code:
[ 1072.521094] usb 2-2: USB disconnect, address 7
[ 1072.521106] usb 2-2.1: USB disconnect, address 8
[ 1074.744061] usb 2-2: new full speed USB device using uhci_hcd and address 9
[ 1074.896976] usb 2-2: configuration #1 chosen from 1 choice
[ 1074.900673] hub 2-2:1.0: USB hub found
[ 1074.912029] hub 2-2:1.0: 3 ports detected
[ 1075.209591] usb 2-2.1: new full speed USB device using uhci_hcd and address 10
[ 1075.315794] usb 2-2.1: configuration #1 chosen from 1 choice
[ 1075.319792] input: Microsoft X-Box pad v1 (US) as /devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2.1/2-2.1:1.0/input/input11

lsmod |grep xpad
Code:
xpad                   18440  0
ff_memless             13320  1 xpad
led_class              12164  2 iwl3945,xpad
usbcore               149488  5 xpad,btusb,ehci_hcd,uhci_hcd

Ubuntu Intrepid 2.6.27-11-generic on this box.

I'm a bit confused with the Keyboard detection. Is this normal?
I'd appreciate any suggestions and pointers to source trees and the like. Also I'm sorry if this is considered way off topic, not being xbmc. I haven't been able to softmod the box yet. Seems one must have an updated M$ dash to do it.

thanks

--
Øyle
Reply
#23
Had a look at the source (kernel) and changed
Code:
{ 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", MAP_DPAD_TO_AXIS, XTYPE_XBOX }
to
Code:
{ 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }

That gave me mouse buttons on the pad, so now I can kinda use it as a
mouse in X. (after jscaltibrator fixes the deadzone) Still no other buttons or deadzone anywhere else.
Reply
#24
I'm using Jaunty, and newest XBMC. Pad still not working.

I have changed his name in Keymap.xml, and only A,B,X,Y buttons working - do you have any solutions?
Reply
#25
Sad 
szamot83 Wrote:I'm using Jaunty, and newest XBMC. Pad still not working.

I have changed his name in Keymap.xml, and only A,B,X,Y buttons working - do you have any solutions?

I'm getting the same problems here. Sad

Also Using Jaunty 9.04 and XBMC 9.04.1 (r20654)

Let's hope this is all fixed in 9.10
Reply
#26
Madee Wrote:You can test my patch and Keymap.xml. http://trac.xbmc.org/ticket/5759
It should works with the latest kernel module.

how to apply these ? The keymap worked fine, just need to sort out dpad now, but I have no idea how to use these files ...
Anyone who can enlighten a newbie ?
Reply
#27
bringing this topic back to light.

Running Linux 9.11 live on a acer revo. Connected xbox v1 controllers and xbox wireless controllers. All buttons work except for D-PAD.

What is the workaround?
Reply
#28
Quote:how to apply these ? The keymap worked fine, just need to sort out dpad now, but I have no idea how to use these files ...
Anyone who can enlighten a newbie ?

I am struggling with the same issue. Buttons are working, but not the D-pad. I tried the keymap.xml but that's not working. Can anyone post his Axis-config for the dpad?
Reply

Logout Mark Read Team Forum Stats Members Help
Xbox Controller S doesn't work0