Bluetooth RetroPie Setup Script Issues
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!
If the controller is connected in XInput mode, try installing the
xpadneodriver from RetroPie-Setup before pairing the controller.
@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
@jtcuth48 When using
Ctrl+C, the message is normal. Have you updated RetroPie-Setup after you installed the 4.7.1 image ?
@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
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 ?
@mitu I see. Yes, I'm running version 4.7.11
Can you connect via SSH (as the normal
bluetoothctlfrom 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+F2would get you a 2nd login screen,
Alt+F1switches back to the main screen) and start
bluetoothctlfrom there. You can run RetroPie-Setup on the 1st login screen with
cd RetroPie-Setup sudo ./retropie_setup.sh
jtcuth48 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.
@jtcuth48 You should remove the device from the list of paired devices before re-attempting to pair.
@mitu Unfortunately, same result, freezing when choosing "DisplayYesNo". I even tried the other options but no dice
link3384 last edited by
i have exactly the same problem with a 8bitdo zero 2.
Can't make it to connect in any way.
@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
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.