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

    DualShock 4 Bluetooth issues

    Scheduled Pinned Locked Moved Help and Support
    bluetooth errorbluetooth issuebluetooth pi4playstation
    26 Posts 7 Posters 6.4k 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.
    • mituM
      mitu Global Moderator @mrttime
      last edited by

      @mrttime Sorry, don't have any ideas about this one. You can enable debugging in the bluetooth service - see here - and provide a log from the pairing process (use pastebin.com for posting the log), maybe that will shed some light on the error.

      M 1 Reply Last reply Reply Quote 0
      • M
        mrttime @mitu
        last edited by

        @mitu OK. Thanks anyway. In one last attempt to maybe figure it out when I get to the point of choosing the security mode and select 1 DisplayYesNo the cursor activates at the bottom of the blue screen and when I press the directional buttons I get output that looks like ^[[C^[[3^[[3^[[D^[[B etc. etc. depending on the key I press.

        1 Reply Last reply Reply Quote 0
        • E
          evancg
          last edited by evancg

          I have this exact same issue using a couple of different Retropie images. It might work the very first time I boot the image, but maybe not - and any following boots I have the same problem (also with a Pi 4).

          E 1 Reply Last reply Reply Quote 0
          • E
            evancg @evancg
            last edited by evancg

            @mrttime and @endo

            I'm curious if you have the same issue I noticed I have from this thread:

            https://www.raspberrypi.org/forums/viewtopic.php?f=140&t=306920

            On boot, bluetoothctl and do a "list" to see what the MAC address of your bluetooth device on your pi controller.

            Then perform a sudo systemctl restart bluetooth.service

            Then go into bluetoothctl and do a list again to see if it's a different MAC address.

            When I do this, I do get a different MAC address and at that point, I can connect to bluetooth devices as expected. I have no idea why it has this changing MAC address though. I think I've had this issue on 2 different Pi 4 units.

            Editing: Restarting bluetooth.service doesn't always fix it - it seems more likely that just restarting bluetooth gives it a chance to get the right MAC address (which is why sometimes it always works on a reboot).

            1 Reply Last reply Reply Quote 0
            • G
              GilbertJosé
              last edited by GilbertJosé

              Hi there, I have the exact same issue as the OP, so just to sum up :

              • Raspberry PI 4 8GB bought 3 weeks ago (might be a faulty series ?)
              • Official Retropie 4.7.1 for RP4/400 up to date
              • RAW settings, go to bluetooth, pairing a device
              • Press and hold home+share button on the DS4 to get it into pairing mode
              • Here the result depends, sometimes there's no device found, sometimes it finds several devices, including my "Wireless Controller"
              • If it found my DS4, I select "DisplayYesNo" to start pairing while the DS4 is still blinking in pairing mode
              • At that moment, the DS4 starts to display a solid white LED for like 1 sec, and then just shuts down and does nothing more, where I guess it should get to solid blue for successful pairing
              • From there, the retropie is just hanging on that "DisplayYesNo" screen and I have to go to remote terminal to reboot it
              G 1 Reply Last reply Reply Quote 0
              • G
                GilbertJosé @GilbertJosé
                last edited by

                Here is some log, I hope this can help.
                So I did stop the bluetooth service (sudo systemctl stop bluetooth.service) and then restarted it with debuging info (sudo bluetoothd -d -n).

                pi@retropie:~ $ sudo bluetoothd -d -n
                bluetoothd[1149]: Bluetooth daemon 5.50
                bluetoothd[1149]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
                bluetoothd[1149]: src/main.c:parse_config() Key file does not have key “MinEncKeySize” in group “GATT”
                bluetoothd[1149]: src/adapter.c:adapter_init() sending read version command
                bluetoothd[1149]: Starting SDP server
                bluetoothd[1149]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0532
                bluetoothd[1149]: src/plugin.c:plugin_init() Loading builtin plugins
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading hostname plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading wiimote plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading autopair plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading policy plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading neard plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading sap plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading a2dp plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading avrcp plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading network plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading input plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading hog plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading health plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading gap plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading scanparam plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading deviceinfo plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading midi plugin
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading battery plugin
                bluetoothd[1149]: src/plugin.c:plugin_init() Loading plugins /usr/lib/arm-linux-gnueabihf/bluetooth/plugins
                bluetoothd[1149]: src/plugin.c:add_plugin() Loading sixaxis plugin
                bluetoothd[1149]: profiles/health/hdp.c:hdp_manager_start() Starting Health manager
                bluetoothd[1149]: profiles/input/suspend-none.c:suspend_init()
                bluetoothd[1149]: profiles/network/manager.c:read_config() /etc/bluetooth/network.conf: Key file does not have key “DisableSecurity” in group “General”
                bluetoothd[1149]: profiles/network/manager.c:read_config() Config options: Security=true
                bluetoothd[1149]: plugins/neard.c:neard_init() Setup neard plugin
                bluetoothd[1149]: plugins/sixaxis.c:sixaxis_init()
                bluetoothd[1149]: src/main.c:main() Entering main loop
                bluetoothd[1149]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 1 op 0 soft 0 hard 0
                bluetoothd[1149]: Bluetooth management interface 1.18 initialized
                bluetoothd[1149]: src/adapter.c:read_version_complete() sending read supported commands command
                bluetoothd[1149]: src/adapter.c:read_version_complete() sending read index list command
                bluetoothd[1149]: src/rfkill.c:rfkill_event() RFKILL event idx 1 type 2 op 0 soft 0 hard 0
                bluetoothd[1149]: src/adapter.c:read_commands_complete() Number of commands: 79
                bluetoothd[1149]: src/adapter.c:read_commands_complete() Number of events: 40
                bluetoothd[1149]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
                bluetoothd[1149]: src/adapter.c:read_index_list_complete() Number of controllers: 1
                bluetoothd[1149]: src/adapter.c:read_index_list_complete() Found index 0
                bluetoothd[1149]: src/adapter.c:index_added() index 0
                bluetoothd[1149]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.50
                bluetoothd[1149]: src/adapter.c:btd_adapter_new() Major class: 0
                bluetoothd[1149]: src/adapter.c:btd_adapter_new() Minor class: 0
                bluetoothd[1149]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d0532
                bluetoothd[1149]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds
                bluetoothd[1149]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds
                bluetoothd[1149]: src/adapter.c:index_added() sending read info command for index 0
                bluetoothd[1149]: src/adapter.c:read_info_complete() index 0 status 0x00
                bluetoothd[1149]: src/adapter.c:clear_uuids() sending clear uuids command for index 0
                bluetoothd[1149]: src/adapter.c:clear_devices() sending clear devices command for index 0
                bluetoothd[1149]: src/adapter.c:set_privacy() sending set privacy command for index 0
                bluetoothd[1149]: src/adapter.c:set_privacy() setting privacy mode 0x00 for index 0
                bluetoothd[1149]: src/gatt-database.c:btd_gatt_database_new() GATT Manager registered for adapter: /org/bluez/hci0
                bluetoothd[1149]: src/advertising.c:btd_adv_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0
                bluetoothd[1149]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: plugins/policy.c:policy_adapter_probe()
                bluetoothd[1149]: src/adapter.c:set_mode() sending set mode command for index 0
                bluetoothd[1149]: plugins/hostname.c:hostname_probe()
                bluetoothd[1149]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
                bluetoothd[1149]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: profiles/audio/avrcp.c:avrcp_controller_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: src/adapter.c:adapter_service_add() /org/bluez/hci0
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110f-0000-1000-8000-00805f9
                bluetoothd[1149]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
                bluetoothd[1149]: src/adapter.c:add_uuid() sending add uuid command for index 0
                bluetoothd[1149]: profiles/audio/avrcp.c:avrcp_target_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: src/adapter.c:adapter_service_add() /org/bluez/hci0
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9
                bluetoothd[1149]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
                bluetoothd[1149]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
                bluetoothd[1149]: src/adapter.c:add_uuid() sending add uuid command for index 0
                bluetoothd[1149]: profiles/audio/a2dp.c:a2dp_sink_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: profiles/audio/a2dp.c:a2dp_source_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: profiles/sap/manager.c:sap_server_probe() path /org/bluez/hci0
                bluetoothd[1149]: Sap driver initialization failed.
                bluetoothd[1149]: sap-server: Operation not permitted (1)
                bluetoothd[1149]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00
                bluetoothd[1149]: src/adapter.c:load_link_keys() hci0 keys 0 debug_keys 0
                bluetoothd[1149]: src/adapter.c:load_ltks() hci0 keys 0
                bluetoothd[1149]: src/adapter.c:load_irks() hci0 irks 0
                bluetoothd[1149]: src/adapter.c:load_conn_params() hci0 conn params 0
                bluetoothd[1149]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
                bluetoothd[1149]: src/adapter.c:add_uuid() sending add uuid command for index 0
                bluetoothd[1149]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 532
                bluetoothd[1149]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered
                bluetoothd[1149]: src/adapter.c:set_dev_class() sending set device class command for index 0
                bluetoothd[1149]: src/adapter.c:set_name() sending set local name command for index 0
                bluetoothd[1149]: src/adapter.c:set_privacy_complete() Successfully set privacy for index 0
                bluetoothd[1149]: plugins/hostname.c:property_changed() static hostname: retropie
                bluetoothd[1149]: plugins/hostname.c:property_changed() pretty hostname:
                bluetoothd[1149]: plugins/hostname.c:update_name() name: retropie
                bluetoothd[1149]: src/adapter.c:adapter_set_name() name: retropie
                bluetoothd[1149]: src/adapter.c:adapter_set_name() alias: retropie
                bluetoothd[1149]: src/adapter.c:set_name() sending set local name command for index 0
                bluetoothd[1149]: plugins/hostname.c:property_changed() chassis:
                bluetoothd[1149]: Loading LTKs timed out for hci0
                bluetoothd[1149]: Failed to set mode: Failed (0x03)
                bluetoothd[1149]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
                bluetoothd[1149]: src/adapter.c:load_irks_complete() IRKs loaded for hci0
                bluetoothd[1149]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0
                bluetoothd[1149]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.50
                bluetoothd[1149]: src/adapter.c:local_name_changed_callback() Short name:
                bluetoothd[1149]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.50
                bluetoothd[1149]: src/adapter.c:local_name_changed_callback() Name: retropie
                bluetoothd[1149]: src/adapter.c:local_name_changed_callback() Short name:
                bluetoothd[1149]: src/adapter.c:local_name_changed_callback() Current alias: retropie
                
                
                1 Reply Last reply Reply Quote 0
                • P
                  pscotto1234 @mrttime
                  last edited by

                  @mrttime follow these instruction

                  https://raspberrypi.stackexchange.com/questions/122429/raspberry-pi-4-wont-pair-to-bluetooth-devices/123914#123914

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    GilbertJosé @pscotto1234
                    last edited by

                    @pscotto1234 Thanks for that sharing, the link provided does explain and works around the issue pretty well, I can now enjoy my PI4 as I wished

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      seandecoste @GilbertJosé
                      last edited by

                      @GilbertJosé
                      Hey, I’ve been looking for these instructions and I’m glad to have found them. Can you help me with the command for “replacing” commands? Thanks

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM mitu locked this topic on
                      • mituM
                        mitu Global Moderator @seandecoste
                        last edited by

                        @seandecoste Please don't bump very old topics. The user you mentioned hasn't been active for the last 2 years, so I don't think you'll get an aswer from them.

                        If you have an issue, please open a new topic and describe your issue, providing the info asked in https://retropie.org.uk/forum/topic/3/read-this-first.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          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.