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

    Bluetooth RetroPie Setup Script Issues

    Scheduled Pinned Locked Moved Help and Support
    bluetoothraspberry pi 44.7.18bitdo
    44 Posts 10 Posters 9.7k 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.
    • J
      jtcuth48
      last edited by

      Pi Model or other hardware: Raspberry Pi 4B
      Power Supply used: official Pi 4 supply
      RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): 4.7.1
      Built From: Pre-made image from website
      USB Devices connected: Wireless USB keyboard & mouse
      Controller used: 8BitDo SN30 pro+

      Hey guys! I am unable to get bluetooth to work at all, even after a completely fresh install. I am able to get the Pi to see the 8bitdo controller, but I am getting a freeze in the script upon choosing a security mode, and am unable to interact with it and have to CTRL+C out of it. I've tried with multiple controllers, and have the same thing happen. Is there a problem in the script, with bluez, or is my board faulty?

      Thank you so much!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        If the controller is connected in XInput mode, try installing the xpadneo driver from RetroPie-Setup before pairing the controller.

        J 1 Reply Last reply Reply Quote 0
        • J
          jtcuth48 @mitu
          last edited by

          @mitu Okay, I've installed the driver and tried to pair the controller afterwards. I still am getting a freeze when choosing "DisplayYesNo" in the security mode section. I'm not sure if this is even related, but the following output appears when pressing CTRL+C to exit the script:

          ^CTraceback (most recent call last):
          File "/home/pi/RetroPie-Setup/scriptmodules/supplementary/bluetooth/bluez-simple-agent", line 180, in <module>
              mainloop.run()      
            File "/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py", line 498, in run                
              super(MainLoop, self).run()                               
            File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__                                      
              self.gen.next()
            File "/usr/lib/python2.7/dist-packages/gi/_ossighelper.py", line 251, in register_sigint_fallback
              signal.default_int_handler(signal.SIGINT, None)
          KeyboardInterrupt
          
          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @jtcuth48
            last edited by mitu

            @jtcuth48 When using Ctrl+C, the message is normal. Have you updated RetroPie-Setup after you installed the 4.7.1 image ?

            J 1 Reply Last reply Reply Quote 0
            • J
              jtcuth48 @mitu
              last edited by

              @mitu Yes I have. If it helps, I am able to successfully connect with bluetooth on other images such as the latest version of Raspberry Pi OS released on March 4th

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                RetroPie is based on Raspberry Pi OS (the Lite version), so if you've updated RetroPie-Setup and the OS/packages, it should have the same software as on a Raspberry Pi OS image.
                If you've update RetroPie-Setup, can you post the exact version of RetroPie you have installed ?

                J 1 Reply Last reply Reply Quote 0
                • J
                  jtcuth48 @mitu
                  last edited by

                  @mitu I see. Yes, I'm running version 4.7.11

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by mitu

                    Can you connect via SSH (as the normal pi user), run bluetoothctl from that login session and then try again the pairing from RetroPie-Setup ?

                    EDIT: if you don't have SSH enabled, you can exit EmulationStation, login in a second screen (Alt+F2 would get you a 2nd login screen, Alt+F1 switches back to the main screen) and start bluetoothctl from there. You can run RetroPie-Setup on the 1st login screen with

                    cd RetroPie-Setup
                    sudo ./retropie_setup.sh
                    
                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jtcuth48 @mitu
                      last edited by jtcuth48

                      @mitu Okay, I just did it, and it froze at the same spot on the GUI. bluetoothctl spat out the devices in range while doing the search, that ended with the following lines:

                      [CHG] Device 8:BIT:DO:MAC:ADDRESS:HERE Connected: yes
                      [CHG] Device 8:BIT:DO:MAC:ADDRESS:HERE Connected: no
                      

                      So it looks like it connected for a split second maybe? The controller kept acting like it was still syncing until it timed out.

                      A minute later it spat out this stuff:

                      [DEL] Device RANDOM:DEVICE RANDOM-DEVICE
                      [DEL] Device RANDOM:DEVICE RANDOM-DEVICE
                      

                      EDIT: the device now shows up in the list of paired devices, but refuses to connect.

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @jtcuth48
                        last edited by

                        @jtcuth48 You should remove the device from the list of paired devices before re-attempting to pair.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jtcuth48 @mitu
                          last edited by

                          @mitu Unfortunately, same result, freezing when choosing "DisplayYesNo". I even tried the other options but no dice

                          1 Reply Last reply Reply Quote 0
                          • L
                            link3384
                            last edited by

                            Hi,
                            i have exactly the same problem with a 8bitdo zero 2.
                            Can't make it to connect in any way.

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jtcuth48 @link3384
                              last edited by

                              @link3384 Yeah, I've tested a friend's board (same model as mine) and it has the same issue. I think it's a problem on Raspberry Pi OS' end. I've had some luck with running "sudo service bluetooth restart" and then connecting, but it's hit or miss. Sorry I can't offer more assistance, this is a real bummer

                              1 Reply Last reply Reply Quote 0
                              • L
                                link3384
                                last edited by

                                I think it is a problem of retropie 4.7.1.
                                I can't find retropie 4.6 anywhere to test if it works there.
                                When i put recalbox to the sd card the 8bitdo connects in one minute and it works fine.

                                R 1 Reply Last reply Reply Quote 1
                                • V
                                  velez66
                                  last edited by

                                  Same exact problem here - Thanks

                                  1 Reply Last reply Reply Quote 1
                                  • P
                                    pscotto1234
                                    last edited by

                                    I'm having same issue with raspberry version 1.4.
                                    @jtcuth48 could you check your board version using following command?
                                    cat /proc/cpuinfo/

                                    1 Reply Last reply Reply Quote 0
                                    • V
                                      velez66
                                      last edited by

                                      Here is another piece of information. I have two Raspberry 4 boards. One was upgraded to boot from USB {SSD) the one other one has not been upgraded.

                                      Bluetooth devices connect right away to the one that has not been upgraded. On the one with the USB boot upgrade will not connect at all, it will not complete the security phase of the Bluetooth connection process.

                                      Also I have tried both boards using Batocera and the connection is flawless. But I prefer to use Retropie for my emulation.

                                      Thanks 😊

                                      1 Reply Last reply Reply Quote 1
                                      • J
                                        jtcuth48
                                        last edited by jtcuth48

                                        EDIT: A cheap USB bluetooth dongle combined with disabling onboard bluetooth fixed the issue, the controller connected like butter. Looks like the issue is likely with the bluez package in Pi OS.

                                        Guys, I've had success with both Recalbox and Batocera straight out of the box, but Raspberry Pi OS itself has the same issues as Retropie so I think it's on their end possibly, and I don't think it's an issue with the 8bitdo issue either, I think the version of bluez preinstalled is janky. Until this is fixed, I think I may stick to recalbox because it seems to just work.. I would prefer Retropie but if it doesn't work then I don't know.

                                        @pscotto1234, the output of that command is:

                                        processor	: 0
                                        model name	: ARMv7 Processor rev 3 (v7l)
                                        BogoMIPS	: 270.00
                                        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                        CPU implementer	: 0x41
                                        CPU architecture: 7
                                        CPU variant	: 0x0
                                        CPU part	: 0xd08
                                        CPU revision	: 3
                                        
                                        processor	: 1
                                        model name	: ARMv7 Processor rev 3 (v7l)
                                        BogoMIPS	: 270.00
                                        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                        CPU implementer	: 0x41
                                        CPU architecture: 7
                                        CPU variant	: 0x0
                                        CPU part	: 0xd08
                                        CPU revision	: 3
                                        
                                        processor	: 2
                                        model name	: ARMv7 Processor rev 3 (v7l)
                                        BogoMIPS	: 270.00
                                        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                        CPU implementer	: 0x41
                                        CPU architecture: 7
                                        CPU variant	: 0x0
                                        CPU part	: 0xd08
                                        CPU revision	: 3
                                        
                                        processor	: 3
                                        model name	: ARMv7 Processor rev 3 (v7l)
                                        BogoMIPS	: 270.00
                                        Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                        CPU implementer	: 0x41
                                        CPU architecture: 7
                                        CPU variant	: 0x0
                                        CPU part	: 0xd08
                                        CPU revision	: 3
                                        
                                        Hardware	: BCM2711
                                        Revision	: b03114
                                        Serial		: 100000002a9f6133
                                        Model		: Raspberry Pi 4 Model B Rev 1.4
                                        
                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          pscotto1234 @jtcuth48
                                          last edited by

                                          @jtcuth48 said in Bluetooth RetroPie Setup Script Issues:

                                          EDIT: A cheap USB bluetooth dongle combined with disabling onboard bluetooth fixed the issue, the controller connected like butter. Looks like the issue is likely with the bluez package in Pi OS.

                                          Guys, I've had success with both Recalbox and Batocera straight out of the box, but Raspberry Pi OS itself has the same issues as Retropie so I think it's on their end possibly, and I don't think it's an issue with the 8bitdo issue either, I think the version of bluez preinstalled is janky. Until this is fixed, I think I may stick to recalbox because it seems to just work.. I would prefer Retropie but if it doesn't work then I don't know.

                                          @pscotto1234, the output of that command is:

                                          processor	: 0
                                          model name	: ARMv7 Processor rev 3 (v7l)
                                          BogoMIPS	: 270.00
                                          Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                          CPU implementer	: 0x41
                                          CPU architecture: 7
                                          CPU variant	: 0x0
                                          CPU part	: 0xd08
                                          CPU revision	: 3
                                          
                                          processor	: 1
                                          model name	: ARMv7 Processor rev 3 (v7l)
                                          BogoMIPS	: 270.00
                                          Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                          CPU implementer	: 0x41
                                          CPU architecture: 7
                                          CPU variant	: 0x0
                                          CPU part	: 0xd08
                                          CPU revision	: 3
                                          
                                          processor	: 2
                                          model name	: ARMv7 Processor rev 3 (v7l)
                                          BogoMIPS	: 270.00
                                          Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                          CPU implementer	: 0x41
                                          CPU architecture: 7
                                          CPU variant	: 0x0
                                          CPU part	: 0xd08
                                          CPU revision	: 3
                                          
                                          processor	: 3
                                          model name	: ARMv7 Processor rev 3 (v7l)
                                          BogoMIPS	: 270.00
                                          Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
                                          CPU implementer	: 0x41
                                          CPU architecture: 7
                                          CPU variant	: 0x0
                                          CPU part	: 0xd08
                                          CPU revision	: 3
                                          
                                          Hardware	: BCM2711
                                          Revision	: b03114
                                          Serial		: 100000002a9f6133
                                          Model		: Raspberry Pi 4 Model B Rev 1.4
                                          

                                          You have a 1.4 model. I said in another 3d as well that the problem is mainly related with new raspberry.
                                          I think that the problem can only be resolved by upgrading bluetooth driver.
                                          @jtcuth48 could you tell me what BT dongle are you using?

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            jtcuth48 @pscotto1234
                                            last edited by

                                            @pscotto1234 Sure! It's this one: https://www.amazon.com/gp/product/B07QL7C6WG/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

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