Using BSP 5.x, On an Apalis iMX8, I can pair to a Bluetooth keyboard but when I connect the keyboard immediately disconnects.
Having UserpaceHID disabled I get the following output
[bluetooth]# pair 08:95:42:EF:B2:1C
Attempting to pair with 08:95:42:EF:B2:1C
[CHG] Device 08:95:42:EF:B2:1C Connected: yes
Request confirmation
[agent] Confirm passkey 443127 (yes/no): yes
[CHG] Device 08:95:42:EF:B2:1C UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 08:95:42:EF:B2:1C UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: yes
[CHG] Device 08:95:42:EF:B2:1C Paired: yes
Pairing successful
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: no
[CHG] Device 08:95:42:EF:B2:1C Connected: no
[bluetooth]# trust 08:95:42:EF:B2:1C
[CHG] Device 08:95:42:EF:B2:1C Trusted: yes
Changing 08:95:42:EF:B2:1C trust succeeded
[bluetooth]# connect 08:95:42:EF:B2:1C
Attempting to connect to 08:95:42:EF:B2:1C
[CHG] Device 08:95:42:EF:B2:1C Connected: yes
Connection successful
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: yes
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: no
[CHG] Device 08:95:42:EF:B2:1C Connected: no
Having UserspaceHID enabled, I get the following output
[bluetooth]# pair 08:95:42:EF:B2:1C
Attempting to pair with 08:95:42:EF:B2:1C
[CHG] Device 08:95:42:EF:B2:1C Connected: yes
Request confirmation
[agent] Confirm passkey 932012 (yes/no): yes
[CHG] Device 08:95:42:EF:B2:1C UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 08:95:42:EF:B2:1C UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: yes
[CHG] Device 08:95:42:EF:B2:1C Paired: yes
Pairing successful
[Magic Keyboard]# trust 08:95:42:EF:B2:1C
[CHG] Device 08:95:42:EF:B2:1C Trusted: yes
Changing 08:95:42:EF:B2:1C trust succeeded
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: no
[CHG] Device 08:95:42:EF:B2:1C Connected: no
[bluetooth]# connect 08:95:42:EF:B2:1C
Attempting to connect to 08:95:42:EF:B2:1C
[CHG] Device 08:95:42:EF:B2:1C Connected: yes
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 08:95:42:EF:B2:1C ServicesResolved: no
[CHG] Device 08:95:42:EF:B2:1C Connected: no
I can use bluetoothctl on my Ubuntu laptop and connect no issues to the same keyboard.
I’ve also tried a different bluetooth keyboard and get similar results.
Edit 1: I’ve tested on both a 1.0B and a 1.1E and get the same results.