SHANWAN / PS3 CONTROLLER Pi3 RETROPIE 3.6 BLUETOOTH SETUP
-
@luetzel Will do.Thanks my man.
-
OK,so I got the Bluez Master to Make and Install fine.The controller Pairs no problem,but still can't configure controls.
Here is my 'dmesg' output...looks like the same controller is registered three times....could this be part of the issue?It looks like the same controller is simultaneously input 0,input 4 and input 5 at the same time.I saw you mentioned removing controllers earlier,how do I do this?
[ 432.846781] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [ 432.846794] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [ 432.933985] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0003/input/input4 [ 432.935581] sony 0003:054C:0268.0003: input,hiddev0,hidraw2: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [ 434.086043] usb 1-1.5: USB disconnect, device number 9 [ 434.533717] usb 1-1.5: new full-speed USB device number 10 using dwc_otg [ 434.636697] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [ 434.636710] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 434.636717] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [ 434.636724] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [ 434.642275] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0004/input/input5 [ 434.642785] sony 0003:054C:0268.0004: input,hiddev0,hidraw2: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [65756.104806] usb 1-1.5: USB disconnect, device number 10 [65767.938356] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [65767.938390] Bluetooth: HIDP socket layer initialized [65767.942313] input: PLAYSTATION(R)3 Controller as /devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:11/0005:054C:0268.0005/input/input6 [65767.943239] sony 0005:054C:0268.0005: input,hidraw2: BLUETOOTH HID v0.00 Joystick [PLAYSTATION(R)3 Controller] on b8:27:eb:a1:9b:7f [65814.026297] Console: switching to colour frame buffer device 240x67 [65818.343306] Console: switching to colour dummy device 80x30
-
-
Hi @Wolfman100
for removing the controller, simply use sudo bluetoothctl. 'help' will list all possible commands. Then, remove your device with
'remove <dev>' (replace <dev> with the hardware address of your controller). Then, try to pair it again using sixpair. -
Well it seem's that under bluetoothctl their is only one controller paired,so I don't understand how when I do a 'dmesg' I get three different controllers with different inputs.I'm a bit lost here....
osmc@osmc:~$ bluetoothctl [NEW] Controller B8:27:EB:A1:9B:7F osmc [default] [NEW] Device 00:26:5C:02:54:D2 PLAYSTATION(R)3 Controller [NEW] Device CC:C5:0A:1F:F6:C3 Bluetooth 3.0 Macro Keyboard
-
@luetzel I just tried to run sixpair with the controller plugged in and got:
osmc@osmc:~$ sixpair usb_claim_interface: Operation not permitted
And now when disconetting my controller it won't stop rumbling!!!SO I had to disconnect it via 'bluetoothctl'
-
What happens if you run sudo sixpair? And whats your distro? I cannot reproduce this behavior on my Pis.
-
@luetzel ooooohhhh no...here we go again!
My distribution is OSMC,RetroPie is installed as RetrOSMC.
ANy idea what the 'usb_claim_interface: operation' is?I'm assuming it's for Sixpair to read the USB input?
-
@Wolfman100 erm......feel like an idiot.Was missing root permission.
sudo sixpair
fixed it:
Current Bluetooth master: b8:27:eb:a1:9b:7f Setting master bd_addr to b8:27:eb:a1:9b:7f
Still not playing ball though.Pairs fine...no response in JsTest
-
After doing some further research some people are suggesting that the package 'raspberrypi-sys-mods' is required.
When attempting to install the package however it cannot be found:
osmc@osmc:~$ sudo apt-get install raspberrypi-sys-mods Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package raspberrypi-sys-mods
-
@Wolfman100
IMHO the package raspberrypi-sys-mods doesn't exist on osmc. You have to add the Raspbian repo to your apt sources.list in order to install it.Your problem might be related to the fact, that Kodi 16 indeed blocks input for joypads if it doesn't run on x11.
(https://discourse.osmc.tv/t/osmc-kodi-16-with-usb-gamepad-support-wired/15610/3) -
@luetzel I've only ever been using Kodi 16 and the other controller worked fine.ALso RetroPie detects the pad but just doesn't respond to any input.....why oh why is this all such a nightmare?
I think that link is also just referring to people using a controller to control Kodi,which makes sense.I am however trying to use the controller within RetroPie which is running on OSMC,something which worked flawlessly before thanks to your knowledge and extended help.
-
@luetzel I'm just curious as to what info 'dmesg' is showing me as I seem to have multiple controllers listed..even though only 1 controller is paired.
Is it showing me all previous pairings with the bottom one being the latest or does it actually think all these controllers are paired?
[12170.360531] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0004/input/input5 [12170.361526] sony 0003:054C:0268.0004: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12170.366265] sony 0003:054C:0268.0004: controller with MAC address 00:26:5c:02:54:d2 already connected [12170.457759] sony: probe of 0003:054C:0268.0004 failed with error -17 [12170.797258] usb 1-1.5: reset full-speed USB device number 9 using dwc_otg [12170.902410] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0005/input/input6 [12170.902969] sony 0003:054C:0268.0005: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12170.910047] sony 0003:054C:0268.0005: controller with MAC address 00:26:5c:02:54:d2 already connected [12170.987833] sony: probe of 0003:054C:0268.0005 failed with error -17 [12340.271469] usb 1-1.5: USB disconnect, device number 9 [12346.188954] Console: switching to colour frame buffer device 240x67 [12380.448652] usb 1-1.5: new full-speed USB device number 10 using dwc_otg [12380.551651] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [12380.551676] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [12380.551690] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [12380.551704] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [12380.560119] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0006/input/input7 [12380.561134] sony 0003:054C:0268.0006: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12380.566278] sony 0003:054C:0268.0006: controller with MAC address 00:26:5c:02:54:d2 already connected [12380.629358] sony: probe of 0003:054C:0268.0006 failed with error -17 [12380.980800] usb 1-1.5: USB disconnect, device number 10 [12385.308691] usb 1-1.5: new full-speed USB device number 11 using dwc_otg [12385.411671] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [12385.411699] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [12385.411713] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [12385.411727] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [12385.422758] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0007/input/input8 [12385.423867] sony 0003:054C:0268.0007: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12385.427672] sony 0003:054C:0268.0007: controller with MAC address 00:26:5c:02:54:d2 already connected [12385.489461] sony: probe of 0003:054C:0268.0007 failed with error -17 [12385.589582] usb 1-1.5: USB disconnect, device number 11 [12393.248811] usb 1-1.5: new full-speed USB device number 12 using dwc_otg [12393.351722] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [12393.351746] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [12393.351761] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [12393.351775] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [12393.358167] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0008/input/input9 [12393.359260] sony 0003:054C:0268.0008: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12393.364224] sony 0003:054C:0268.0008: controller with MAC address 00:26:5c:02:54:d2 already connected [12393.430074] sony: probe of 0003:054C:0268.0008 failed with error -17 [12393.818695] usb 1-1.5: reset full-speed USB device number 12 using dwc_otg [12393.923265] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0009/input/input10 [12393.923847] sony 0003:054C:0268.0009: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12393.926770] sony 0003:054C:0268.0009: controller with MAC address 00:26:5c:02:54:d2 already connected [12393.989110] sony: probe of 0003:054C:0268.0009 failed with error -17 [12401.719666] usb 1-1.5: USB disconnect, device number 12 [12576.392050] Console: switching to colour dummy device 80x30 [12760.660544] usb 1-1.5: new full-speed USB device number 13 using dwc_otg [12760.763574] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [12760.763594] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [12760.763601] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [12760.763608] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [12760.772517] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.000A/input/input11 [12760.773107] sony 0003:054C:0268.000A: input,hiddev0,hidraw2: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [12765.571291] usb 1-1.5: USB disconnect, device number 13 [12777.116556] input: PLAYSTATION(R)3 Controller as /devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:11/0005:054C:0268.000B/input/input12 [12777.117278] sony 0005:054C:0268.000B: input,hidraw2: BLUETOOTH HID v0.00 Joystick [PLAYSTATION(R)3 Controller] on b8:27:eb:a1:9b:7f [18743.151135] usb 1-1.5: new full-speed USB device number 14 using dwc_otg [18743.254181] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [18743.254204] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [18743.254219] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [18743.254233] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [18743.261442] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.000C/input/input13 [18743.262470] sony 0003:054C:0268.000C: input,hiddev0,hidraw3: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [18743.265326] sony 0003:054C:0268.000C: controller with MAC address 00:26:5c:02:54:d2 already connected [18743.391744] sony: probe of 0003:054C:0268.000C failed with error -17 [18757.767103] usb 1-1.5: USB disconnect, device number 14 [18931.445185] input: PLAYSTATION(R)3 Controller as /devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:12/0005:054C:0268.000D/input/input14 [18931.446160] sony 0005:054C:0268.000D: input,hidraw2: BLUETOOTH HID v0.00 Joystick [PLAYSTATION(R)3 Controller] on b8:27:eb:a1:9b:7f [34956.003483] usb 1-1.5: new full-speed USB device number 15 using dwc_otg [34956.106519] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [34956.106543] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [34956.106558] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [34956.106572] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [34956.115721] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.000E/input/input15 [34956.116737] sony 0003:054C:0268.000E: input,hiddev0,hidraw2: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [34970.493506] usb 1-1.5: reset full-speed USB device number 15 using dwc_otg [34970.598603] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.000F/input/input16 [34970.600591] sony 0003:054C:0268.000F: input,hiddev0,hidraw2: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [34989.904410] usb 1-1.5: USB disconnect, device number 15 [34998.314182] input: PLAYSTATION(R)3 Controller as /devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:11/0005:054C:0268.0010/input/input17 [34998.318316] sony 0005:054C:0268.0010: input,hidraw2: BLUETOOTH HID v0.00 Joystick [PLAYSTATION(R)3 Controller] on b8:27:eb:a1:9b:7f [35166.544150] Console: switching to colour frame buffer device 240x67 [35173.080763] Console: switching to colour dummy device 80x30 [76617.617262] usb 1-1.5: new full-speed USB device number 16 using dwc_otg [76617.720400] usb 1-1.5: New USB device found, idVendor=054c, idProduct=0268 [76617.720420] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [76617.720427] usb 1-1.5: Product: PLAYSTATION(R)3 Controller [76617.720435] usb 1-1.5: Manufacturer: SZMY-POWER CO.,LTD. [76617.727744] input: SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:054C:0268.0011/input/input18 [76617.728811] sony 0003:054C:0268.0011: input,hiddev0,hidraw2: USB HID v1.11 Joystick [SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller] on usb-3f980000.usb-1.5/input0 [85172.076429] usb 1-1.5: USB disconnect, device number 16 [85181.169858] input: PLAYSTATION(R)3 Controller as /devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:12/0005:054C:0268.0012/input/input19 [85181.170671] sony 0005:054C:0268.0012: input,hidraw2: BLUETOOTH HID v0.00 Joystick [PLAYSTATION(R)3 Controller] on b8:27:eb:a1:9b:7f
-
More investigation:
Although the PS3 controller is paired with OSMC I don't think it's pairing with Bluez:
[PLAYSTATION(R)3 Controller]# disconnect Attempting to disconnect from 00:26:5C:02:54:D2 Successful disconnected [CHG] Device 00:26:5C:02:54:D2 Connected: no [CHG] Device 00:26:5C:02:54:D2 Connected: yes [PLAYSTATION(R)3 Controller]# paired devices Invalid command [PLAYSTATION(R)3 Controller]# paired-devices Device CC:C5:0A:1F:F6:C3 Bluetooth 3.0 Macro Keyboard [PLAYSTATION(R)3 Controller]# paired-devices Device CC:C5:0A:1F:F6:C3 Bluetooth 3.0 Macro Keyboard [PLAYSTATION(R)3 Controller]# devices Device CC:C5:0A:1F:F6:C3 Bluetooth 3.0 Macro Keyboard Device 00:26:5C:02:54:D2 PLAYSTATION(R)3 Controller [PLAYSTATION(R)3 Controller]# pair Attempting to pair with Failed to pair: org.bluez.Error.AuthenticationFailed [PLAYSTATION(R)3 Controller]#
I disconnectd the controller using 'bluetothctl' and then reconnected it.It is stated as 'connected' but NOT paired.When attempting to pair it with 'bluetoothctl' it fails to pair:
[PLAYSTATION(R)3 Controller]# pair Attempting to pair with Failed to pair: org.bluez.Error.AuthenticationFailed
Although it is shown as paired with OSMC network settings.
-
Hi @Wolfman100,
the output of bluetoohctl can be quite confusing, even when my controller is paired (LED1 on), the device info of bluetoohctl still shows 'Paired: no'. I'm not worried about that, although this information is somewhat misleading.There seems to be a difference between your broken Shanwan controller and your new one. In contrast to the old PS3 controller, it is recognized as SZMY-POWER CO.,LTD. PLAYSTATION(R)3 Controller. My Google search for SZMY-POWER points into the direction, that the D-Pad and both analog sticks of your controller are being registered as separate joysticks, i.e. for each axis a new [...]/input? device is created. This does not happen with the Shanwan controller. Here we have a single [...]/input? device assigned.
I don't think that your issue is related to bluez or pairing, but it must happen downstream of the pairing event. I'm not sure what exactly generates the input devices (udev rule?), but I believe that it must be the key to solve your problem.
-
@luetzel Ohhhh...that seems quite strange.Yes the controller doesn't appear to be a straight Shanwan copy and behaves a bit differently,for example it flashes when battery level is low,which is something the Shanwan never did.
The input thing is kind of confusing,as if it was making a different input for each axis wouldn't Emulation Station see these inputs as separate controllers rather than just one controller.Also wouldn't 'Jstest' also give some feedback regardless?
I created a 'udev' rule as recommended to do so by @buzz,but I'm not really entirely sure what a 'udev' rule actually does.
-
@luetzel said in SHANWAN / PS3 CONTROLLER Pi3 RETROPIE 3.6 BLUETOOTH SETUP:
sorry that the link to my blog did not work for you! Hope that you are able to pair your PS3 clone now. My blog is on a self-hosted server, consisting of a Banana Pi. It connects via dyndns, so that it is occasionally not reachable when my IP changes.
@luetzel no probs mate I got there in the end!
@Wolfman100 na turns out I was missing libical as per https://discourse.osmc.tv/t/howto-retrosmc-retrogaming-on-osmc/6671/920 I did get it working for a little while! Now Im having dramas after it seems I paired the 2nd shanwan. Seems ok in emu station, but when I load an emulator like mame the controller seems to get confused and re-pairs to player 2 or 3 and doesnt work anymore. Ive deleted the pairing of both and trying to find some time to try re-pair them. Anything else I need to do? Like to I need to manually delete ps3 pl1 + pl2 config file or something? I was thinking my mistake may have been using the same Pi3 USB port to pair each? Maybe I should have done pl1 on port 0 & pl2 on port 1 perhaps??
-
Hi Wolfman100.
Just wondered if you have got any further in setting up your pad? I too have bought a pair of the 'SZMY-POWER' pads thinking that they were the normal Shanwan / Gasia, but they are not.
I have followed your guide @luetzel (thanks!) and it all seems to work great from the outset, ie the pads will pair up as expected and player 1 and player 2 LED's light up correctly on every boot.... but... I get no input reading when running jtest and RetroPie does not capture any input either. I have also tried evtest but no events are being captured either.
I have created a Udev rule (both manually as described by Buzz and also through the RetroPie setup script), but still no inputs being detected on either pad (I have also tried each pad individually).
I am at a loss now - is there anything else I could try to get these pads working? Everything regarding pairing is working excellent, just can't get any input to register. :( Has anyone else had success with these particular 'SZMY-POWER' pads? Here is a link to the pad itself and they are branded as 'PowerRider': http://www.amazon.co.uk/dp/B01HI4BAW2
I am using the v4b2 image downloaded from here and have upgraded via setup script to v4RC1.
Thanks all for the tips so far! :)
-
Hi @all
a bug-fix of Bluez (5.41) was released on 19th of July. I synced it with the patched version for Gasia/Shanwan clones (https://github.com/luetzel/bluez). Compiled without errors/warnings on the latest Raspbian. Can't tell if it works for the SZMY-POWER pads, please check it out ...
Cheers,
/luetzel -
@luetzel thanks for the update. I will give this a try tomorrow and report my findings. :)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.