• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

PS3 controllers does not work with bt on 4.4

Scheduled Pinned Locked Moved Help and Support
retropie 4.4ps3 controllerbluetooth
5 Posts 2 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    Thanat0s
    last edited by 5 Jun 2019, 21:43

    Hello ,

    I had reinstalled my Retropie in 4.4 and since then it is impossible to me to use my PS3 controllers without the USB cable anymore. (everything was ok in the previous 3.x version)

    I got two kind of controller ( a real ps3 one and a ps3 shaiwan clone ). Since the fresh 4.4 installation, I cannot use them without the USB Cable and adding to this now, they never vibrate anymore.

    In USB everything is fine. In BT they'are no assignation of pad... the 4 leds blinks.. and that's all, after a while it stop the leds.

    I tried the sixaxis driver (from sources) following documentation here : https://retropie.org.uk/docs/PS3-Controller/ I had installed the support of thirdparty controller.

    I had installed the ps3controller with additionnal shaiwan support from the retropie-setup script. No other driver are installed. I tried reinstall the whole bluetooth packages without any succes. ( the Ps3controller driver was the one that i used in my previous retropie version).

    When trying to connect via bt.. I got the following

    Jun 5 21:36:45 retropie sixaxis-helper.sh[21239]: Calibrating: SHANWAN PS3 GamePad (02:A2:99:45:63:25)
    Jun 5 21:36:55 retropie bluetoothd[19788]: sixaxis: compatible device connected: Sony PLAYSTATION(R)3 Controller (054C:0268 /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:054C:0268.000B/hidraw/hidraw4)
    Jun 5 21:36:55 retropie bluetoothd[19788]: sixaxis: setting up new device
    Jun 5 21:36:55 retropie systemd[1]: Started sixaxis helper (sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:054C:0268.000B/input/input20).
    Jun 5 21:36:55 retropie systemd-udevd[21277]: Process '/usr/bin/jscal-restore /dev/input/js0' failed with exit code 1.
    Jun 5 21:36:55 retropie systemd-udevd[21272]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
    Jun 5 21:36:55 retropie systemd-udevd[21274]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
    Jun 5 21:36:55 retropie systemd[1]: Started sixaxis helper (/dev/input/event7).
    Jun 5 21:36:55 retropie sixaxis-helper.sh[21292]: Calibrating: Sony PLAYSTATION(R)3 Controller (04:98:F3:A5:E7:0F)
    Jun 5 21:36:56 retropie systemd-udevd[21277]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.

    When i tried to use the manual pairing, i got that for the sony one.

    [bluetooth]# pair 04:98:F3:A5:E7:0F
    Attempting to pair with 04:98:F3:A5:E7:0F
    Failed to pair: org.bluez.Error.AuthenticationFailed
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    [CHG] Device 04:98:F3:A5:E7:0F Connected: yes
    [CHG] Device 04:98:F3:A5:E7:0F Connected: no
    

    with the clone i got ..

    [bluetooth]# pair 02:A2:99:45:63:25
    Attempting to pair with 02:A2:99:45:63:25
    Failed to pair: org.bluez.Error.AuthenticationFailed
    [CHG] Device 02:A2:99:45:63:25 Connected: yes
    [CHG] Device 02:A2:99:45:63:25 Connected: no
    

    I use ; 
    Pi Model 3
    Power Supply used: A big one !
    RetroPie Version Used : 4.4
    Built From: sd image https://github.com/RetroPie/RetroPie-Setup/releases/download/4.4/retropie-4.4-rpi2_rpi3.img.gz
    USB Devices connected: dongle for keyboard and mouse
    Controller used: PS3 (sony and shaiwan )

    got also some deaemon related message strange

    Jun  5 21:19:45 retropie bluetoothd[7074]: Bluetooth management interface 1.14 initialized
    Jun  5 21:19:45 retropie bluetoothd[7074]: Failed to obtain handles for "Service Changed" characteristic
    Jun  5 21:19:45 retropie bluetoothd[7074]: Sap driver initialization failed.
    Jun  5 21:19:45 retropie bluetoothd[7074]: sap-server: Operation not permitted (1)
    Jun  5 21:19:45 retropie bluetoothd[7074]: Failed to set privacy: Rejected (0x0b)
    Jun  5 21:24:48 retropie bluetoothd[7074]: GLib: g_source_remove: assertion 'tag > 0' failed
    Jun  5 21:24:49 retropie bluetoothd[7074]: Disconnecting failed: already disconnected
    Jun  5 21:25:11 retropie bluetoothd[7074]: No agent available for request type 4
    Jun  5 21:25:11 retropie bluetoothd[7074]: device_notify_pin: Operation not permitted
    Jun  5 21:25:16 retropie bluetoothd[7074]: Unable pair since another pairing is in progress
    Jun  5 21:25:28 retropie bluetoothd[7074]: No agent available for request type 4
    Jun  5 21:25:28 retropie bluetoothd[7074]: device_notify_pin: Operation not permitted
    Jun  5 21:25:31 retropie bluetoothd[7074]: No agent available for request type 0
    Jun  5 21:25:31 retropie bluetoothd[7074]: device_request_pin: Operation not permitted
    Jun  5 21:26:53 retropie bluetoothd[7074]: Can't store name for private addressed device /org/bluez/hci0/dev_0E_01_BC_DF_34_C3
    Jun  5 21:34:17 retropie bluetoothd[7074]: Terminating
    Jun  5 21:34:17 retropie bluetoothd[7074]: Stopping SDP server
    Jun  5 21:34:17 retropie bluetoothd[7074]: Exit
    Jun  5 21:34:17 retropie bluetoothd[19788]: Bluetooth daemon 5.50
    Jun  5 21:34:17 retropie bluetoothd[19788]: Starting SDP server
    Jun  5 21:34:17 retropie bluetoothd[19788]: Bluetooth management interface 1.14 initialized
    Jun  5 21:34:17 retropie bluetoothd[19788]: Sap driver initialization failed.
    Jun  5 21:34:17 retropie bluetoothd[19788]: sap-server: Operation not permitted (1)
    

    I found such crash in the log.

    Jun  5 21:03:21 retropie kernel: [  311.386740] Bluetooth: hci0: Frame reassembly failed (-84)
    Jun  5 21:09:20 retropie systemd[1]: Started Session c5 of user pi.
    Jun  5 21:12:28 retropie kernel: [  858.070645] INFO: task kworker/3:2:63 blocked for more than 120 seconds.
    Jun  5 21:12:28 retropie kernel: [  858.070676]       Tainted: G         C        4.19.42-v7+ #1219
    Jun  5 21:12:28 retropie kernel: [  858.070684] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    Jun  5 21:12:28 retropie kernel: [  858.070697] kworker/3:2     D    0    63      2 0x00000000
    Jun  5 21:12:28 retropie kernel: [  858.070774] Workqueue: events_freezable mmc_rescan
    Jun  5 21:12:28 retropie kernel: [  858.070846] [<8082642c>] (__schedule) from [<80826a9c>] (schedule+0x50/0xa8)
    Jun  5 21:12:28 retropie kernel: [  858.070868] [<80826a9c>] (schedule) from [<8067cc9c>] (__mmc_claim_host+0x120/0x228)
    Jun  5 21:12:28 retropie kernel: [  858.070897] [<8067cc9c>] (__mmc_claim_host) from [<8067cddc>] (mmc_get_card+0x38/0x3c)
    Jun  5 21:12:28 retropie kernel: [  858.070918] [<8067cddc>] (mmc_get_card) from [<80685e50>] (mmc_sd_detect+0x24/0x7c)
    Jun  5 21:12:28 retropie kernel: [  858.070937] [<80685e50>] (mmc_sd_detect) from [<8067f404>] (mmc_rescan+0x1cc/0x39c)
    Jun  5 21:12:28 retropie kernel: [  858.070963] [<8067f404>] (mmc_rescan) from [<8013bd7c>] (process_one_work+0x170/0x458)
    Jun  5 21:12:28 retropie kernel: [  858.070983] [<8013bd7c>] (process_one_work) from [<8013c0c0>] (worker_thread+0x5c/0x5a4)
    Jun  5 21:12:28 retropie kernel: [  858.071004] [<8013c0c0>] (worker_thread) from [<801423ac>] (kthread+0x138/0x168)
    Jun  5 21:12:28 retropie kernel: [  858.071027] [<801423ac>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)
    Jun  5 21:12:28 retropie kernel: [  858.071036] Exception stack(0xae24dfb0 to 0xae24dff8)
    Jun  5 21:12:28 retropie kernel: [  858.071047] dfa0:                                     00000000 00000000 00000000 00000000
    Jun  5 21:12:28 retropie kernel: [  858.071060] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    Jun  5 21:12:28 retropie kernel: [  858.071071] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
    

    lsub of the clone controller.

    Bus 001 Device 008: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x054c Sony Corp.
      idProduct          0x0268 Batoh Device / PlayStation 3 Controller
      bcdDevice            1.00
      iManufacturer           1 SHANWAN
      iProduct                2 PS3 GamePad
      iSerial                 0
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           41
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              500mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         3 Human Interface Device
          bInterfaceSubClass      0 No Subclass
          bInterfaceProtocol      0 None
          iInterface              0
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.10
              bCountryCode            0 Not supported
              bNumDescriptors         1
              bDescriptorType        34 Report
    

    04 is the real one, 02 the shawan.

    [bluetooth]# info 04:98:F3:A5:E7:0F
    Device 04:98:F3:A5:E7:0F
            Name: PLAYSTATION(R)3 Controller
            Alias: PLAYSTATION(R)3 Controller
            Class: 0x000508
            Icon: input-gaming
            Paired: no
            Trusted: yes
            Blocked: no
            Connected: no
            LegacyPairing: no
            Modalias: usb:v054Cp0268d0000
    [bluetooth]# info 02:A2:99:45:63:25
    Device 02:A2:99:45:63:25
            Name: Sony PLAYSTATION(R)3 Controller
            Alias: Sony PLAYSTATION(R)3 Controller
            Class: 0x000540
            Icon: input-keyboard
            Paired: no
            Trusted: yes
            Blocked: no
            Connected: no
            LegacyPairing: no
            UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
            Modalias: usb:v054Cp0268d0000
    

    dpkg -l | grep blu

    ii bluetooth 5.50-1~rpi1 all Bluetooth support (metapackage)
    ii bluez 5.50-1~rpi1 armhf Bluetooth tools and daemons
    ii bluez-firmware 1.2-3+rpt7 all Firmware for Bluetooth devices
    ii libbluetooth-dev:armhf 5.50-1~rpi1 armhf Development files for using the BlueZ Linux Bluetooth library
    ii libbluetooth3:armhf 5.50-1~rpi1 armhf Library to use the BlueZ Linux Bluetooth stack
    ii libbluray2:armhf 1:1.0.2-1 armhf Blu-ray disc playback support library (shared library)
    ii liblua5.2-0:armhf 5.2.4-1.1 armhf Shared library for the Lua interpreter version 5.2
    ii libluajit-5.1-common 2.0.4+dfsg-1 all Just in time compiler for Lua - common files
    ii pi-bluetooth 0.1.10 all Raspberry Pi 3 bluetooth

    Please help :)

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 5 Jun 2019, 21:46

      There is a known bug with the 4.19.42 Kernel release - breaks a lot of Bluetooth controllers. You can either downgrade to the previous stable version or use rpi-update to install the next Kernel release that Raspbian has in testing.
      For more details see this topic. It has a downgrade script that you can use.

      1 Reply Last reply Reply Quote 0
      • T
        Thanat0s
        last edited by 6 Jun 2019, 05:34

        Indeed I do confirm.. I run the script and now everything is running fine again.

        Thank's a lot ( 5 hour of fight, solved in 5mn ).. :)

        Where is the best place to be quickly informed of the definitive fix ?

        M 1 Reply Last reply 6 Jun 2019, 06:26 Reply Quote 1
        • M
          mitu Global Moderator @Thanat0s
          last edited by 6 Jun 2019, 06:26

          @Thanat0s said in PS3 controllers does not work with bt on 4.4:

          Where is the best place to be quickly informed of the definitive fix ?

          Keep an eye on the topic I mentioned, we'll update it when the new stable Raspbian Kernel gets added to the repositories and can be installed with a regular update.

          T 1 Reply Last reply 6 Jun 2019, 08:27 Reply Quote 0
          • T
            Thanat0s @mitu
            last edited by 6 Jun 2019, 08:27

            @mitu thanks.

            1 Reply Last reply Reply Quote 0
            • P pscotto1234 referenced this topic on 28 Mar 2022, 10:43
            5 out of 5
            • First post
              5/5
              Last post

            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.

              This community forum collects and processes your personal information.
              consent.not_received