I have a Raspberry Pi 4 that I plan to use as a media center, and I want to pair a controller to it. However, using
bluetoothctl to pair a controller results in the controller briefly pairing and then unpairing, at least as far as what the Pi is telling me; on the controller itself, the pairing lights never stop blinking.
I've tried this with both an Xbox One S controller and an
8Bitdo SN30 Pro; both have the same result.
[bluetooth]# agent on Agent is already registered [bluetooth]# show Controller E4:5F:01:09:21:CE (public) Name: raspberrypi Alias: raspberrypi Class: 0x00000000 Powered: yes Discoverable: no Pairable: no UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) Modalias: usb:v1D6Bp0246d0532 Discovering: no [bluetooth]# default-agent [bluetooth]# Default agent request successful [bluetooth]# scan on [bluetooth]# Discovery started [bluetooth]# [CHG] Controller E4:5F:01:09:21:CE Discovering: yes [bluetooth]# [CHG] Device 40:87:18:E2:35:AE RSSI: -76 [bluetooth]# [CHG] Device 77:01:6D:52:02:5A RSSI: -93 [bluetooth]# [CHG] Device 77:01:6D:52:02:5A TxPower: 12 [bluetooth]# [CHG] Device 40:87:18:E2:35:AE RSSI: -84 [bluetooth]# [NEW] Device E4:17:D8:99:F7:83 8Bitdo SN30 Pro [bluetooth]# trust E4:17:D8:99:F7:83 [bluetooth]# [CHG] Device E4:17:D8:99:F7:83 Trusted: yes [bluetooth]# Changing E4:17:D8:99:F7:83 trust succeeded [bluetooth]# pair E4:17:D8:99:F7:83 Attempting to pair with E4:17:D8:99:F7:83 [bluetooth]# [8Bitdo SN30 Pro]# [CHG] Device E4:17:D8:99:F7:83 Connected: yes [8Bitdo SN30 Pro]# [CHG] Device E4:17:D8:99:F7:83 Paired: no [8Bitdo SN30 Pro]# [bluetooth]# [CHG] Device E4:17:D8:99:F7:83 Connected: no
I'm aware of the ERTM issue with Xbox One controllers, and I did disable ERTM; this did not help. I've also tried a Logitech K480 keyboard; that prompts for the passkey as you'd expect, but after typing in the passkey (or just after waiting a while) it disconnects. The keyboard never lights up the pairing light to show it's connected.
Edit: This is on Raspberry Pi OS Lite