SimplyCEO / generikit-hid-sony

Generic PlayStation patches. Those that were revoked by the sages.
GNU General Public License v2.0
14 stars 0 forks source link

Controller not working #7

Open bydioeds opened 1 month ago

bydioeds commented 1 month ago

After installing it the controller doesn't work, i've tried it with master and devel.

I assume this has something to do with the controller being detected as an xbox/nintendo controller.

[  600.103092] usb 1-8: new full-speed USB device number 17 using xhci_hcd
[  600.253287] usb 1-8: New USB device found, idVendor=054c, idProduct=0268, bcdDevice= 1.00
[  600.253294] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  600.253298] usb 1-8: Product: USB Gamepad
[  600.253300] usb 1-8: Manufacturer: Nintendo Co., Ltd.
[  600.261565] input: Nintendo Co., Ltd. USB Gamepad Motion Sensors as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:054C:0268.0009/input/input36
[  600.319094] input: Nintendo Co., Ltd. USB Gamepad as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:054C:0268.0009/input/input35
[  600.319926] sony 0003:054C:0268.0009: input,hiddev0,hidraw3: USB HID v81.10 Joystick [Nintendo Co., Ltd. USB Gamepad] on usb-0000:00:14.0-8/input0
[  600.353105] usb 1-8: USB disconnect, device number 17
[  600.747051] usb 1-8: new full-speed USB device number 18 using xhci_hcd
[  600.896982] usb 1-8: New USB device found, idVendor=045e, idProduct=028e, bcdDevice= 5.72
[  600.896989] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  600.896992] usb 1-8: Product: XBOX 360 For Windows
[  600.896995] usb 1-8: Manufacturer: Nintendo Co., Ltd.
[  600.896998] usb 1-8: SerialNumber: 000000000001
[  600.899101] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/input/input37

I've been trying several things and the only thing that mostly worked is the following script but the mapping is wrong in some places like the trigger moves the joystick and it never stops.

https://gist.github.com/dylan-lom/f0a4edc598e3a738cfc9c34f1a7c5216

I don't know what else to do, can you give some help? many thanks and sorry for the bother.

SimplyCEO commented 1 month ago

Know what is crazy? Every generic controller seems to be mapped in a weird way and still get connected to the system. I wonder if it is from hid-sony itself or my generic patch approach is giving these devices at least a connection.

Anyway, the problem here is surely the gamepad mapping since it is connecting already. I might have to filter every other name that is not Sony's to GENERIC_GAMEPAD quirk, maybe will mitigate the problem.