Giter Club home page Giter Club logo

Comments (11)

socketbind avatar socketbind commented on May 28, 2024

Similar problem on Ubuntu 15.10. The system just crashes when using the xpad version shipped with the kernel. Using the driver in this repository fixes the crash, but it is impossible to get any sort of input from the controller. I'm not familiar with kernel module development but I'm happy to help out with testing/capturing/etc, although I will not have access to a Windows PC until January.

It seems that the 360Controller guys have found a solution here:
360Controller/360Controller#120

from xpad.

paroj avatar paroj commented on May 28, 2024

seems that newer controllers need an extended initialization sequence instead of a single packet. related #12

so far we have these two sequences:

Drew Mills (360Controller)

{ 0x04, 0x20, 0x01, 0x00 };
{ 0x01, 0x20, 0x01, 0x09, 0x00, 0x04, 0x20, 0x3a, 0x00, 0x00, 0x00, 0x9c, 0x00 };
{ 0x01, 0x20, 0x02, 0x09, 0x00, 0x04, 0x20, 0xd6, 0x00, 0x00, 0x00, 0x00, 0x00 };
{ 0x05, 0x20, 0x02, 0x09, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53 };
{ 0x05, 0x20, 0x03, 0x01, 0x00 };
{ 0x0a, 0x20, 0x04, 0x03, 0x00, 0x01, 0x14 };
{ 0x06, 0x20, 0x01, 0x02, 0x01, 0x00 }; # crash packet?

Ignacio Quezada (https://github.com/Fenisu/xbox)

( 0x04, 0x20, 0x01, 0x00)
( 0x01, 0x20, 0x01, 0x09, 0x00, 0x04, 0x20, 0x3a, 0x00, 0x00, 0x00, 0x80, 0x00)
( 0x01, 0x20, 0x01, 0x09, 0x00, 0x04, 0x20, 0xba, 0x00, 0x00, 0x00, 0x00, 0x00)
( 0x05, 0x20, 0x02, 0x09, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53)
( 0x05, 0x20, 0x03, 0x01, 0x00)
( 0x0a, 0x20, 0x04, 0x03, 0x00, 0x01, 0x14)

will add one of them to xpad as I have time

from xpad.

Toniob avatar Toniob commented on May 28, 2024

I've got the same issue with a former xbox one controller which has just been updated (using xbox accessories under windows 10). The pad is detected (the /dev/input/ device is created) but the xbox logo stays off - instead of on before the firmware update - and when I test it with jstest, it is recognized but nothing works.

from xpad.

paroj avatar paroj commented on May 28, 2024

@Toniob can you give me the dmesg line where your controller is identified? (or the output of lsusb)

from xpad.

paroj avatar paroj commented on May 28, 2024

at all:
I have implemented the extended initialization sequence in the xone2015 branch. Can you test and report back?

from xpad.

LiranV avatar LiranV commented on May 28, 2024

@paroj I'm going to test it now.

from xpad.

socketbind avatar socketbind commented on May 28, 2024

Going to give a shot too. I believe we all have the same firmware/hardware version.

from xpad.

socketbind avatar socketbind commented on May 28, 2024

I can confirm that the controller works again. All buttons, axes seems to work according to jstest-gtk.

[ 2930.089607] usb 1-2: new full-speed USB device number 3 using xhci_hcd
[ 2930.218910] usb 1-2: New USB device found, idVendor=045e, idProduct=02dd
[ 2930.218914] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2930.218915] usb 1-2: Product: Controller
[ 2930.218917] usb 1-2: Manufacturer: Microsoft
[ 2930.218918] usb 1-2: SerialNumber: 7EED835E32E8
[ 2930.756604] input: Microsoft X-Box One pad (Covert Forces) as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input19
[ 2930.756856] usbcore: registered new interface driver xpad
[ 2930.757069] xpad 1-2:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x01
[ 2930.761062] xpad 1-2:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x01
[ 2930.765066] xpad 1-2:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x05
[ 2930.769068] xpad 1-2:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x05
[ 2930.773080] xpad 1-2:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x0a
[ 2930.782497] xpad 1-2:1.0: xpad_irq_in - urb shutting down with status: -2
[ 2931.799516] xpad 1-2:1.0: xpad_irq_in - urb shutting down with status: -2
[ 2940.108737] xpad 1-2:1.0: xpad_irq_in - urb shutting down with status: -2

from xpad.

LiranV avatar LiranV commented on May 28, 2024

Yes working for me too.
Thank you!

[  158.389855] usb 6-1.5.4: new full-speed USB device number 7 using ehci-pci
[  158.517551] input: Microsoft X-Box One pad (Covert Forces) as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1.5/6-1.5.4/6-1.5.4:1.0/input/input28
[  158.517639] usbcore: registered new interface driver xpad
[  158.522850] xpad 6-1.5.4:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x01
[  158.526845] xpad 6-1.5.4:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x01
[  158.530846] xpad 6-1.5.4:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x05
[  158.534847] xpad 6-1.5.4:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x05
[  158.538845] xpad 6-1.5.4:1.0: xpad_prepare_next_out_packet - found pending output packet 0: 0x0a
[  158.542007] xpad 6-1.5.4:1.0: xpad_irq_in - urb shutting down with status: -2

from xpad.

socketbind avatar socketbind commented on May 28, 2024

Thank you @paroj

from xpad.

paroj avatar paroj commented on May 28, 2024

while we got this one resolved, #20 needs to be solved too before we can send this upstream. So maybe someone here can help out. You will find instructions in #20.

from xpad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.