OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.6k stars 881 forks source link

Dualshock 3 clones recognized as keyboards #4939

Open gordielachance opened 8 years ago

gordielachance commented 8 years ago

Hi guys,

I just bought two Dualshock 3 controllers; that were recognized in OpenELEC as "keyboards". I finally found out they are clones made by Gasia Co.

[ 6880.491081] usb 1-4: new full-speed USB device number 9 using xhci_hcd
            [ 6880.677151] usb 1-4: New USB device found, idVendor=054c, idProduct=0268
            [ 6880.677160] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
            [ 6880.677166] usb 1-4: Product: PS(R) Gamepad
            [ 6880.677170] usb 1-4: Manufacturer: Gasia Co.,Ltd
            [ 6880.680094] input: Gasia Co.,Ltd PS(R) Gamepad as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:054C:0268.000A/input/input20
            [ 6880.680419] sony 0003:054C:0268.000A: input,hiddev0,hidraw5: USB HID v1.11 Joystick [Gasia Co.,Ltd PS(R) Gamepad] on usb-0000:00:14.0-4/input0

BUT... They probably could work.

Someone on OpenElec forums told me :

There are bluez patches that will support them though, here's a recent commit from Lakka that adds support:

github.com/libretro/Lakka/commit/2e3317dceb598d6e31d734895e14f32f2b2a5f28

Could you help me here ? Thanks !

sraue commented 8 years ago

which build you need for testing?

gordielachance commented 8 years ago

Mhh.. "openelec" ? :) I don't know. Here's the last one I used : OpenELEC-Generic.x86_64-6.95.2. Did you made a patch ? It would be awesome. Thanks

sraue commented 8 years ago

please try http://snapshots.openelec.tv/OpenELEC-Generic.x86_64-7.0-devel-20160504103514-r22639-gc244119.tar and report back

gordielachance commented 8 years ago

Ok, i'm taking a few days out today, but i'll report as soon as I can ! Thanks.

gordielachance commented 8 years ago

Ok, I had a try with your build, So I did connect my clone on USB, and it is recognized as device. Then I click the "playstation" button and remove the USB wire. The device icon changed to a keyboard one (as before). The controller still does not work...

luetzel commented 8 years ago

Howdy, I tried to use the bluez patches on version 5.39 but when I restart the bluetooth service it complains about an undefined symbol: Can't load plugin /usr/lib/bluetooth/plugins/sixaxis.so: /usr/lib/bluetooth/plugins/sixaxis.so: undefined symbol: sdp_dataalloc bluez compiles fine without any warnings or errors. Any suggestions what I am missing here? [update] Adding sdp*; to src/bluetooth.ver turned out to fix the undefined symbol. The PS3 controller is now able to connect, however is recognized as keyboard, and requires a pin-code for pairing. Thus, authentication/pairing fails. [update/solved] Now I was able to pair the controller using the 'sixpair' program of QtsixA. In contrast to the sixad daemon, I'm now able to use keyboard/mouse and PS3 controllers at the same time. Thank you for providing the patches for Gasia/Shanwan clones!