Xbox controller/arduino q bluetooth issues

I have been working with xbox controllers connecting to the Arduino Uno Q.

I currently have 5 Arduino Uno Q boards flashed with the command line tool, so they are all the same. I generally use this sequence below to attach the devices together after holding down the sync button for 15 seconds on the xbox controller to clear the controller, turn it on, hold down the sync button to get it into pairing mode:

sudo bluetoothctl

Then within the bluetoothctl tool (with XX:XX:XX:XX:XX:XX as the MAC address):

power on
agent on
default-agent
scan on

Look for the MAC address of the xbox controller, and then:

scan off
pair XX:XX:XX:XX:XX:XX
trust XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX

Then you can use evtool to see events coming from the controller to verify the connection.

The problem as mentioned above, is this works just fine with 3 of the boards, but no matter what I try, it does not work with 2 others, even if I do this before the above sequence:

sudo systemctl restart bluetooth
sudo rfkill unblock bluetooth
sudo bluetoothctl remove XX:XX:XX:XX:XX:XX

I have tried just about every suggestion I can find (short of going to an older version of the firmware on the controller), including the following:

Adding the following to /etc/modprobe.d/bluetooth.conf

options bluetooth disable_ertm=1

Setting in /etc/bluetooth/input.conf in the [General] section:

ClassicBondedOnly=false
UserspaceHID=true

Adding in /etc/bluetooth/main.conf

JustWorksRepairing=always
FastConnectable=true
KeepPairing=true

I think I have made each board as exactly the same as I can by reflashing all of them prior to trying to pair with the controller.

Also, I used two different controllers with all 5 to make sure it was not an xbox controller issue.

I am out of ideas.

At what point does it fail with the other two non-working Q boards?

Do the controllers appear in the scan list at all?

Does bluetoothctl report any errors?

On the two non-working boards, does the following:

bluetoothctl list

report a local controller?

If it does and the service is started, then it might also be worth trying:

sudo systemctl enable bluetooth

Thanks for the reply and sorry for being so vague with what is not working.

Checkout the dialog below. Everything looks exactly like you would expect, but when using evtest to see events from the controller, nothing is returned and the light on the controller keeps blinking fast like it is available to pair.

After starting evtest at the end of this, after at least a minute, evtest eventually returns:

expected 24 bytes, got -1

evtest: error reading: No such device

Here is the whole dialog that looks perfectly normal. So, there is some sort of handshaking at the end that doesn't happen or something like that.

This exact thing happens with 2 of 5 boards using two different xbox controllers.

arduino@Board003:~$ sudo bluetoothctl
[sudo] password for arduino: 
hci0 new_settings: powered bondable ssp br/edr le secure-conn 
Agent registered
[CHG] Controller 14:B5:CD:EA:AC:C5 Pairable: yes
[bluetoothctl]> scan on
SetDiscoveryFilter success
hci0 type 7 discovering on
Discovery started
[CHG] Controller 14:B5:CD:EA:AC:C5 Discovering: yes
[NEW] Device AC:8E:BD:1D:5C:C8 Xbox Wireless Controller
[NEW] Device 78:9C:06:41:3C:28 78-9C-06-41-3C-28
[snip]
[NEW] Device 10:E8:A7:F3:47:F2 10-E8-A7-F3-47-F2
[bluetoothctl]> scan off
hci0 type 7 discovering off
Discovery stopped
[CHG] Device 78:6D:EB:B1:E8:4B RSSI is nil
[DEL] Device 78:6D:EB:B1:E8:4B 78-6D-EB-B1-E8-4B
[CHG] Device 10:E8:A7:F3:47:F2 RSSI is nil
[CHG] Device 70:38:C3:07:BC:6A TxPower is nil
[CHG] Device 70:38:C3:07:BC:6A RSSI is nil
[CHG] Device 6B:AC:72:84:EF:98 RSSI is nil
[CHG] Device 5F:CD:DC:C5:87:D4 RSSI is nil
[CHG] Device 1C:13:38:12:EC:3B RSSI is nil
[CHG] Device 61:D2:B1:CD:EF:8C RSSI is nil
[CHG] Device 64:D2:C4:BC:CE:76 TxPower is nil
[CHG] Device 64:D2:C4:BC:CE:76 RSSI is nil
[CHG] Device 64:DB:A0:0A:AC:79 RSSI is nil
[CHG] Device 61:D1:B0:FE:A7:A6 TxPower is nil
[CHG] Device 61:D1:B0:FE:A7:A6 RSSI is nil
[CHG] Device 6F:62:A1:65:18:DD RSSI is nil
[CHG] Device 7F:2F:8E:81:00:C0 TxPower is nil
[CHG] Device 7F:2F:8E:81:00:C0 RSSI is nil
[CHG] Device 64:D2:C4:C8:A6:C0 TxPower is nil
[CHG] Device 64:D2:C4:C8:A6:C0 RSSI is nil
[CHG] Device 64:D2:C4:C2:AC:D4 TxPower is nil
[CHG] Device 64:D2:C4:C2:AC:D4 RSSI is nil
[CHG] Device 4D:19:F4:75:30:A9 TxPower is nil
[CHG] Device 4D:19:F4:75:30:A9 RSSI is nil
[CHG] Device 54:33:24:41:4B:04 TxPower is nil
[CHG] Device 54:33:24:41:4B:04 RSSI is nil
[CHG] Device 64:D2:C4:CA:11:3A TxPower is nil
[CHG] Device 64:D2:C4:CA:11:3A RSSI is nil
[CHG] Device 71:23:DE:D0:31:EF RSSI is nil
[CHG] Device 78:9C:06:41:3C:28 TxPower is nil
[CHG] Device 78:9C:06:41:3C:28 RSSI is nil
[CHG] Device AC:8E:BD:1D:5C:C8 RSSI is nil
[CHG] Controller 14:B5:CD:EA:AC:C5 Discovering: no

[bluetoothctl]> pair AC:8E:BD:1D:5C:C8
Attempting to pair with AC:8E:BD:1D:5C:C8
hci0 AC:8E:BD:1D:5C:C8 type LE Public connected eir_len 14
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: yes
[CHG] Device AC:8E:BD:1D:5C:C8 Bonded: yes
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00000001-5f60-4c4f-9c83-a7953298d40d
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00001812-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 ServicesResolved: yes
[CHG] Device AC:8E:BD:1D:5C:C8 Paired: yes
[NEW] Primary Service (Handle 0x0001)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001
	00001800-0000-1000-8000-00805f9b34fb
	Generic Access Profile
[NEW] Characteristic (Handle 0x0002)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001/char0002
	00002a00-0000-1000-8000-00805f9b34fb
	Device Name
[NEW] Characteristic (Handle 0x0004)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001/char0004
	00002a01-0000-1000-8000-00805f9b34fb
	Appearance
[NEW] Characteristic (Handle 0x0006)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001/char0006
	00002a04-0000-1000-8000-00805f9b34fb
	Peripheral Preferred Connection Parameters
[NEW] Primary Service (Handle 0x0008)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0008
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
[NEW] Primary Service (Handle 0x0009)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009
	0000180a-0000-1000-8000-00805f9b34fb
	Device Information
[NEW] Characteristic (Handle 0x000a)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char000a
	00002a29-0000-1000-8000-00805f9b34fb
	Manufacturer Name String
[NEW] Characteristic (Handle 0x000c)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char000c
	00002a50-0000-1000-8000-00805f9b34fb
	PnP ID
[NEW] Characteristic (Handle 0x000e)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char000e
	00002a26-0000-1000-8000-00805f9b34fb
	Firmware Revision String
[NEW] Characteristic (Handle 0x0010)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char0010
	00002a25-0000-1000-8000-00805f9b34fb
	Serial Number String
[NEW] Primary Service (Handle 0x0012)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0012
	0000180f-0000-1000-8000-00805f9b34fb
	Battery Service
[NEW] Characteristic (Handle 0x0013)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0012/char0013
	00002a19-0000-1000-8000-00805f9b34fb
	Battery Level
[NEW] Descriptor (Handle 0x0015)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0012/char0013/desc0015
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Primary Service (Handle 0x0016)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016
	00001812-0000-1000-8000-00805f9b34fb
	Human Interface Device
[NEW] Characteristic (Handle 0x0017)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0017
	00002a4a-0000-1000-8000-00805f9b34fb
	HID Information
[NEW] Characteristic (Handle 0x0019)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0019
	00002a4c-0000-1000-8000-00805f9b34fb
	HID Control Point
[NEW] Characteristic (Handle 0x001b)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001b
	00002a4b-0000-1000-8000-00805f9b34fb
	Report Map
[NEW] Characteristic (Handle 0x001d)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001d
	00002a4d-0000-1000-8000-00805f9b34fb
	Report
[NEW] Descriptor (Handle 0x001f)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001d/desc001f
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Descriptor (Handle 0x0020)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001d/desc0020
	00002908-0000-1000-8000-00805f9b34fb
	Report Reference
[NEW] Characteristic (Handle 0x0021)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0021
	00002a4d-0000-1000-8000-00805f9b34fb
	Report
[NEW] Descriptor (Handle 0x0023)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0021/desc0023
	00002908-0000-1000-8000-00805f9b34fb
	Report Reference
[NEW] Primary Service (Handle 0x0024)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024
	00000001-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
[NEW] Characteristic (Handle 0x0025)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024/char0025
	00000002-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
[NEW] Characteristic (Handle 0x0027)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024/char0027
	00000003-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
[NEW] Characteristic (Handle 0x0029)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024/char0029
	00000004-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
Pairing successful
hci0 device_flags_changed: AC:8E:BD:1D:5C:C8 (LE Public)
     supp: 0x00000007  curr: 0x00000000
hci0 device_flags_changed: AC:8E:BD:1D:5C:C8 (LE Public)
     supp: 0x00000007  curr: 0x00000002
[CHG] Device AC:8E:BD:1D:5C:C8 Modalias: usb:v045Ep0B13d0509

[Xbox Wireless Controller]> trust AC:8E:BD:1D:5C:C8
[CHG] Device AC:8E:BD:1D:5C:C8 Trusted: yes
Changing AC:8E:BD:1D:5C:C8 trust succeeded

[Xbox Wireless Controller]> connect AC:8E:BD:1D:5C:C8
Attempting to connect to AC:8E:BD:1D:5C:C8
Connection successful

[Xbox Wireless Controller]> devices
Device AC:8E:BD:1D:5C:C8 Xbox Wireless Controller
Device 78:9C:06:41:3C:28 78-9C-06-41-3C-28
Device 71:23:DE:D0:31:EF 71-23-DE-D0-31-EF
Device 64:D2:C4:CA:11:3A 64-D2-C4-CA-11-3A
Device 54:33:24:41:4B:04 54-33-24-41-4B-04
Device 4D:19:F4:75:30:A9 4D-19-F4-75-30-A9
Device 64:D2:C4:C2:AC:D4 64-D2-C4-C2-AC-D4
Device 64:D2:C4:C8:A6:C0 64-D2-C4-C8-A6-C0
Device C4:91:DE:E9:5D:10 C4-91-DE-E9-5D-10
Device 7F:2F:8E:81:00:C0 7F-2F-8E-81-00-C0
Device 6F:62:A1:65:18:DD 6F-62-A1-65-18-DD
Device 61:D1:B0:FE:A7:A6 61-D1-B0-FE-A7-A6
Device 64:DB:A0:0A:AC:79 64-DB-A0-0A-AC-79
Device 64:D2:C4:BC:CE:76 64-D2-C4-BC-CE-76
Device 61:D2:B1:CD:EF:8C 61-D2-B1-CD-EF-8C
Device 1C:13:38:12:EC:3B PR BT 97FC
Device 5F:CD:DC:C5:87:D4 5F-CD-DC-C5-87-D4
Device 6B:AC:72:84:EF:98 6B-AC-72-84-EF-98
Device 70:38:C3:07:BC:6A 70-38-C3-07-BC-6A
Device 10:E8:A7:F3:47:F2 10-E8-A7-F3-47-F2
[Xbox Wireless Controller]> list
Controller 14:B5:CD:EA:AC:C5 Board003 [default]
[DEL] Device 71:23:DE:D0:31:EF 71-23-DE-D0-31-EF
[DEL] Device 64:D2:C4:CA:11:3A 64-D2-C4-CA-11-3A
[DEL] Device 54:33:24:41:4B:04 54-33-24-41-4B-04
[DEL] Device 4D:19:F4:75:30:A9 4D-19-F4-75-30-A9
[DEL] Device 64:D2:C4:C2:AC:D4 64-D2-C4-C2-AC-D4
[DEL] Device C4:91:DE:E9:5D:10 C4-91-DE-E9-5D-10
[DEL] Device 7F:2F:8E:81:00:C0 7F-2F-8E-81-00-C0
[DEL] Device 6F:62:A1:65:18:DD 6F-62-A1-65-18-DD
[DEL] Device 64:D2:C4:C8:A6:C0 64-D2-C4-C8-A6-C0
[DEL] Device 61:D1:B0:FE:A7:A6 61-D1-B0-FE-A7-A6
[DEL] Device 64:DB:A0:0A:AC:79 64-DB-A0-0A-AC-79
[DEL] Device 64:D2:C4:BC:CE:76 64-D2-C4-BC-CE-76
[DEL] Device 61:D2:B1:CD:EF:8C 61-D2-B1-CD-EF-8C
[DEL] Device 1C:13:38:12:EC:3B PR BT 97FC
[DEL] Device 5F:CD:DC:C5:87:D4 5F-CD-DC-C5-87-D4
[DEL] Device 6B:AC:72:84:EF:98 6B-AC-72-84-EF-98
[DEL] Device 70:38:C3:07:BC:6A 70-38-C3-07-BC-6A
[DEL] Device 10:E8:A7:F3:47:F2 10-E8-A7-F3-47-F2
[DEL] Device 78:9C:06:41:3C:28 78-9C-06-41-3C-28

[Xbox Wireless Controller]> exit

arduino@Board003:~$ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0:	gpio-keys
/dev/input/event1:	pm8941_pwrkey
/dev/input/event2:	Arduino-Imola-HPH-LOUT Headset Jack
/dev/input/event3:	Xbox Wireless Controller

Select the device event number [0-3]: 3
Input driver version is 1.0.1
Input device ID: bus 0x5 vendor 0x45e product 0xb13 version 0x509
Input device name: "Xbox Wireless Controller"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 167 (KEY_RECORD)
    Event code 304 (BTN_SOUTH)
    Event code 305 (BTN_EAST)
    Event code 306 (BTN_C)
    Event code 307 (BTN_NORTH)
    Event code 308 (BTN_WEST)
    Event code 309 (BTN_Z)
    Event code 310 (BTN_TL)
    Event code 311 (BTN_TR)
    Event code 312 (BTN_TL2)
    Event code 313 (BTN_TR2)
    Event code 314 (BTN_SELECT)
    Event code 315 (BTN_START)
    Event code 316 (BTN_MODE)
    Event code 317 (BTN_THUMBL)
    Event code 318 (BTN_THUMBR)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value      0
      Min        0
      Max    65535
      Fuzz     255
      Flat    4095
    Event code 1 (ABS_Y)
      Value      0
      Min        0
      Max    65535
      Fuzz     255
      Flat    4095
    Event code 2 (ABS_Z)
      Value      0
      Min        0
      Max    65535
      Fuzz     255
      Flat    4095
    Event code 5 (ABS_RZ)
      Value      0
      Min        0
      Max    65535
      Fuzz     255
      Flat    4095
    Event code 9 (ABS_GAS)
      Value      0
      Min        0
      Max     1023
      Fuzz       3
      Flat      63
    Event code 10 (ABS_BRAKE)
      Value      0
      Min        0
      Max     1023
      Fuzz       3
      Flat      63
    Event code 16 (ABS_HAT0X)
      Value      0
      Min       -1
      Max        1
    Event code 17 (ABS_HAT0Y)
      Value      0
      Min       -1
      Max        1
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
  Event type 21 (EV_FF)
    Event code 80 (FF_RUMBLE)
    Event code 81 (FF_PERIODIC)
    Event code 88 (FF_SQUARE)
    Event code 89 (FF_TRIANGLE)
    Event code 90 (FF_SINE)
    Event code 96 (FF_GAIN)
Properties:
Testing ... (interrupt to exit)

As you say, the output from bluetoothctl seems to look OK. The above happening after a minute or so would seem to indicate that the connection is dropping.

Advice I have seen online suggests commenting that line out altogether to prevent power saving putting devices to sleep. On mine it is just set to 'false'.

On the other hand I have also seen advice to set:

FastConnectable = true
ReconnectAttempts=7

to improve stability of the connection and also;

AutoEnable=true

to prevent the radio from automatically getting powered down.

No idea whether any of those is likely to help or perhaps you have tried them already?

My daughter has a couple of Xbox controllers and I have a couple of UNO Q's so I might have a play when I have some spare time, to see what happens.

Since the controller works with the other 3 boards, it doesn't appear to be a problem with the controller, which suggests that there must be something different about the two remaining Q boards.

Out of curiosity, is the radio chip the same on all 5 boards?

They are all the same version of the chip.

I also tried your bluetooth configuration ideas. No change with all 3 in place.

Appreciate your responses.

Have you tried pairing using the Desktop GUI Bluetooth widget? As I recall there is a bluetooth icon on the upper right corner. I used that to pair my xbox one controller.

If you run the scan on command, followed by the info command with the MAC of the Xbox controller as an argument (e.g., info AC:8E:BD:1D:5C:C8), bluetoothctl should print the RSSI of the device. I think it would be worth comparing the RSSI of the controller as shown in the output from the info command on one of the working boards to that from running the command on one of the non-working boards.

This part of the output you shared might seem alarming:

However, this is normal after running the scan off command. It is only when scan is on that valid RSSI values will be shown in those [CHG] events.

I tried to pair with it using the graphical interface. The xbox controller appears in the list, but when you try to connect, the "connecting" message continues for about a minute and then this error message is displayed:

le-connection-abort-by-local

Here is a really long bluetoothct log. You will see the RSSI is -35:

[CHG] Device AC:8E:BD:1D:5C:C8 Connected: no
hci0 AC:8E:BD:1D:5C:C8 type LE Public connected eir_len 14
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: yes
hci0 AC:8E:BD:1D:5C:C8 type LE Public disconnected with reason 4
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: no
hci0 AC:8E:BD:1D:5C:C8 type LE Public connected eir_len 14
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: yes
[Xbox Wireless Controller]> remove AC:8E:BD:1D:5C:C8
hci0 AC:8E:BD:1D:5C:C8 type LE Public disconnected with reason 4
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: no
Device has been removed
[DEL] Device AC:8E:BD:1D:5C:C8 Xbox Wireless Controller
[bluetoothctl]> scan on
SetDiscoveryFilter success
hci0 type 7 discovering on
Discovery started
[CHG] Controller 14:B5:CD:EA:AC:C5 Discovering: yes
[NEW] Device AC:8E:BD:1D:5C:C8 Xbox Wireless Controller
[NEW] Device 64:D2:C4:CA:11:3A 64-D2-C4-CA-11-3A
[NEW] Device 77:FC:BB:7C:2F:D7 77-FC-BB-7C-2F-D7
[NEW] Device 6A:1A:76:BE:94:1F 6A-1A-76-BE-94-1F
[NEW] Device 64:D2:C4:C8:A6:C0 64-D2-C4-C8-A6-C0
[NEW] Device 75:41:AC:EC:9E:E6 75-41-AC-EC-9E-E6
[NEW] Device 43:75:62:F5:25:CC 43-75-62-F5-25-CC
[NEW] Device 58:68:1F:AB:3A:84 58-68-1F-AB-3A-84
[NEW] Device 64:D2:C4:BC:CE:76 64-D2-C4-BC-CE-76
[NEW] Device 77:72:7B:90:67:0E 77-72-7B-90-67-0E
[NEW] Device 7B:E8:EA:32:13:C7 7B-E8-EA-32-13-C7
[NEW] Device 61:C8:87:6F:B3:19 61-C8-87-6F-B3-19
[NEW] Device 4A:82:12:80:4D:ED 4A-82-12-80-4D-ED
[NEW] Device 77:B7:B4:5E:FD:AD 77-B7-B4-5E-FD-AD
[NEW] Device 5A:9B:9D:CD:46:A6 5A-9B-9D-CD-46-A6
[NEW] Device 64:D2:C4:C2:AC:D4 64-D2-C4-C2-AC-D4
[NEW] Device 6C:79:40:0F:FA:F7 6C-79-40-0F-FA-F7
[NEW] Device 46:A8:2A:30:33:89 46-A8-2A-30-33-89
[NEW] Device 6A:8B:9F:A0:4B:5A 6A-8B-9F-A0-4B-5A
[NEW] Device C2:76:79:95:56:C9 C2-76-79-95-56-C9
[NEW] Device D6:F2:4C:D2:9E:80 D6-F2-4C-D2-9E-80
[NEW] Device 44:07:28:7F:02:12 44-07-28-7F-02-12
[bluetoothctl]> info AC:8E:BD:1D:5C:C8
Device AC:8E:BD:1D:5C:C8 (public)
	Name: Xbox Wireless Controller
	Alias: Xbox Wireless Controller
	Appearance: 0x03c4 (964)
	Icon: input-gaming
	Paired: no
	Bonded: no
	Trusted: no
	Blocked: no
	Connected: no
	WakeAllowed: no
	LegacyPairing: no
	UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
	ManufacturerData.Key: 0x0006 (6)
	ManufacturerData.Value:
  00                                               .               
	RSSI: 0xffffffdd (-35)
	TxPower: 0x0014 (20)
	AdvertisingFlags:
  06                                               .               
[NEW] Device FF:2F:E4:AE:66:95 VCON-6695
[NEW] Device 52:85:95:CB:0E:E4 52-85-95-CB-0E-E4
hci0 type 7 discovering off
hci0 type 7 discovering on
[CHG] Device AC:8E:BD:1D:5C:C8 ManufacturerData.Key: 0x0006 (6)
[CHG] Device AC:8E:BD:1D:5C:C8 ManufacturerData.Value:
  03 00 80                                         ...             
[CHG] Device 61:C8:87:6F:B3:19 RSSI: 0xffffffb8 (-72)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Key: 0x004c (76)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Value:
  0c 0e 08 f6 b7 27 22 73 7b 5a 75 f6 c2 e3 51 ea  .....'"s{Zu...Q.
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Key: 0x004c (76)
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Value:
  0c 0e 08 f6 b7 27 22 73 7b 5a 75 f6 c2 e3 51 ea  .....'"s{Zu...Q.
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[CHG] Device 5A:9B:9D:CD:46:A6 RSSI: 0xffffffb0 (-80)
[NEW] Device 1C:13:38:12:EC:3B PR BT 97FC
[NEW] Device 64:DB:A0:0A:AC:79 64-DB-A0-0A-AC-79
hci0 type 7 discovering off
hci0 type 7 discovering on
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Key: 0x004c (76)
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Value:
  0c 0e 08 f7 b7 be bc 18 4f 89 83 d6 da 22 14 4a  ........O....".J
  10 06 4f 1d a9 35 3c 78                          ..O..5<x        
[CHG] Device 64:D2:C4:C2:AC:D4 RSSI: 0xffffffb9 (-71)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Key: 0x004c (76)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Value:
  0c 0e 08 f7 b7 be bc 18 4f 89 83 d6 da 22 14 4a  ........O....".J
  10 06 4f 1d a9 35 3c 78                          ..O..5<x        
[bluetoothctl]> pair AC:8E:BD:1D:5C:C8
Attempting to pair with AC:8E:BD:1D:5C:C8
hci0 device_flags_changed: AC:8E:BD:1D:5C:C8 (LE Public)
     supp: 0x00000007  curr: 0x00000000
hci0 type 7 discovering off
hci0 AC:8E:BD:1D:5C:C8 type LE Public connected eir_len 14
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: yes
hci0 device_flags_changed: AC:8E:BD:1D:5C:C8 (LE Public)
     supp: 0x00000007  curr: 0x00000002
hci0 device_flags_changed: AC:8E:BD:1D:5C:C8 (LE Public)
     supp: 0x00000007  curr: 0x00000003
hci0 device_flags_changed: AC:8E:BD:1D:5C:C8 (LE Public)
     supp: 0x00000007  curr: 0x00000003
[CHG] Device AC:8E:BD:1D:5C:C8 Bonded: yes
[CHG] Device AC:8E:BD:1D:5C:C8 WakeAllowed: yes
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00000001-5f60-4c4f-9c83-a7953298d40d
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 UUIDs: 00001812-0000-1000-8000-00805f9b34fb
[CHG] Device AC:8E:BD:1D:5C:C8 ServicesResolved: yes
[CHG] Device AC:8E:BD:1D:5C:C8 Paired: yes
[NEW] Primary Service (Handle 0x0001)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001
	00001800-0000-1000-8000-00805f9b34fb
	Generic Access Profile
[NEW] Characteristic (Handle 0x0002)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001/char0002
	00002a00-0000-1000-8000-00805f9b34fb
	Device Name
[NEW] Characteristic (Handle 0x0004)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001/char0004
	00002a01-0000-1000-8000-00805f9b34fb
	Appearance
[NEW] Characteristic (Handle 0x0006)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0001/char0006
	00002a04-0000-1000-8000-00805f9b34fb
	Peripheral Preferred Connection Parameters
[NEW] Primary Service (Handle 0x0008)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0008
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
[NEW] Primary Service (Handle 0x0009)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009
	0000180a-0000-1000-8000-00805f9b34fb
	Device Information
[NEW] Characteristic (Handle 0x000a)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char000a
	00002a29-0000-1000-8000-00805f9b34fb
	Manufacturer Name String
[NEW] Characteristic (Handle 0x000c)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char000c
	00002a50-0000-1000-8000-00805f9b34fb
	PnP ID
[NEW] Characteristic (Handle 0x000e)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char000e
	00002a26-0000-1000-8000-00805f9b34fb
	Firmware Revision String
[NEW] Characteristic (Handle 0x0010)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0009/char0010
	00002a25-0000-1000-8000-00805f9b34fb
	Serial Number String
[NEW] Primary Service (Handle 0x0012)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0012
	0000180f-0000-1000-8000-00805f9b34fb
	Battery Service
[NEW] Characteristic (Handle 0x0013)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0012/char0013
	00002a19-0000-1000-8000-00805f9b34fb
	Battery Level
[NEW] Descriptor (Handle 0x0015)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0012/char0013/desc0015
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Primary Service (Handle 0x0016)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016
	00001812-0000-1000-8000-00805f9b34fb
	Human Interface Device
[NEW] Characteristic (Handle 0x0017)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0017
	00002a4a-0000-1000-8000-00805f9b34fb
	HID Information
[NEW] Characteristic (Handle 0x0019)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0019
	00002a4c-0000-1000-8000-00805f9b34fb
	HID Control Point
[NEW] Characteristic (Handle 0x001b)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001b
	00002a4b-0000-1000-8000-00805f9b34fb
	Report Map
[NEW] Characteristic (Handle 0x001d)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001d
	00002a4d-0000-1000-8000-00805f9b34fb
	Report
[NEW] Descriptor (Handle 0x001f)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001d/desc001f
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Descriptor (Handle 0x0020)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char001d/desc0020
	00002908-0000-1000-8000-00805f9b34fb
	Report Reference
[NEW] Characteristic (Handle 0x0021)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0021
	00002a4d-0000-1000-8000-00805f9b34fb
	Report
[NEW] Descriptor (Handle 0x0023)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0016/char0021/desc0023
	00002908-0000-1000-8000-00805f9b34fb
	Report Reference
[NEW] Primary Service (Handle 0x0024)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024
	00000001-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
[NEW] Characteristic (Handle 0x0025)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024/char0025
	00000002-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
[NEW] Characteristic (Handle 0x0027)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024/char0027
	00000003-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
[NEW] Characteristic (Handle 0x0029)
	/org/bluez/hci0/dev_AC_8E_BD_1D_5C_C8/service0024/char0029
	00000004-5f60-4c4f-9c83-a7953298d40d
	Vendor specific
Pairing successful
[CHG] Device AC:8E:BD:1D:5C:C8 Modalias: usb:v045Ep0B13d0509
[Xbox Wireless Controller]> trust AC:8E:BD:1D:5C:C8
[CHG] Device AC:8E:BD:1D:5C:C8 Trusted: yes
Changing AC:8E:BD:1D:5C:C8 trust succeeded
hci0 type 7 discovering on
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Key: 0x004c (76)
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Value:
  0c 0e 08 f7 b7 be bc 18 4f 89 83 d6 da 22 14 4a  ........O....".J
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[NEW] Device 10:E8:A7:F3:47:F2 VZ5G_RECEIVER_089100
[CHG] Device 4A:82:12:80:4D:ED RSSI: 0xffffffae (-82)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Key: 0x004c (76)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Value:
  0c 0e 08 f7 b7 be bc 18 4f 89 83 d6 da 22 14 4a  ........O....".J
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[CHG] Device FF:2F:E4:AE:66:95 RSSI: 0xffffffaa (-86)
[Xbox Wireless Controller]> info AC:8E:BD:1D:5C:C8
Device AC:8E:BD:1D:5C:C8 (public)
	Name: Xbox Wireless Controller
	Alias: Xbox Wireless Controller
	Appearance: 0x03c4 (964)
	Icon: input-gaming
	Paired: yes
	Bonded: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	WakeAllowed: yes
	LegacyPairing: no
	UUID: Vendor specific           (00000001-5f60-4c4f-9c83-a7953298d40d)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
	UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v045Ep0B13d0509
	ManufacturerData.Key: 0x0006 (6)
	ManufacturerData.Value:
  03 00 80                                         ...             
	RSSI: 0xffffffdd (-35)
	TxPower: 0x0014 (20)
	AdvertisingFlags:
  06                                               .               
	Battery Percentage: 0x32 (50)
[CHG] Device 61:C8:87:6F:B3:19 RSSI: 0xffffffb0 (-80)
[CHG] Device 77:72:7B:90:67:0E RSSI: 0xffffffae (-82)
[NEW] Device 68:E7:17:5E:06:36 68-E7-17-5E-06-36
[DEL] Device 1C:13:38:12:EC:3B PR BT 97FC
[Xbox Wireless Controller]> connect AC:8E:BD:1D:5C:C8
Attempting to connect to AC:8E:BD:1D:5C:C8
Connection successful
[DEL] Device 52:85:95:CB:0E:E4 52-85-95-CB-0E-E4
hci0 type 7 discovering off
hci0 type 7 discovering on
[CHG] Device 4A:82:12:80:4D:ED RSSI: 0xffffffb7 (-73)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Key: 0x004c (76)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Value:
  0c 0e 08 f8 b7 86 e2 72 f5 a2 40 49 0c b3 ec ab  .......r..@I....
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Key: 0x004c (76)
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Value:
  0c 0e 08 f8 b7 86 e2 72 f5 a2 40 49 0c b3 ec ab  .......r..@I....
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[CHG] Device 77:72:7B:90:67:0E RSSI: 0xffffffbd (-67)
[CHG] Device 64:D2:C4:C2:AC:D4 RSSI: 0xffffffc4 (-60)
[CHG] Device 6A:1A:76:BE:94:1F RSSI: 0xffffffc3 (-61)
[CHG] Device FF:2F:E4:AE:66:95 RSSI: 0xffffffb3 (-77)
[DEL] Device C2:76:79:95:56:C9 C2-76-79-95-56-C9
[Xbox Wireless Controller]> info AC:8E:BD:1D:5C:C8
Device AC:8E:BD:1D:5C:C8 (public)
	Name: Xbox Wireless Controller
	Alias: Xbox Wireless Controller
	Appearance: 0x03c4 (964)
	Icon: input-gaming
	Paired: yes
	Bonded: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	WakeAllowed: yes
	LegacyPairing: no
	UUID: Vendor specific           (00000001-5f60-4c4f-9c83-a7953298d40d)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
	UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v045Ep0B13d0509
	ManufacturerData.Key: 0x0006 (6)
	ManufacturerData.Value:
  03 00 80                                         ...             
	RSSI: 0xffffffdd (-35)
	TxPower: 0x0014 (20)
	AdvertisingFlags:
  06                                               .               
	Battery Percentage: 0x32 (50)
[NEW] Device C2:76:79:95:56:C9 C2-76-79-95-56-C9
hci0 type 7 discovering off
[DEL] Device 10:E8:A7:F3:47:F2 VZ5G_RECEIVER_089100
[DEL] Device 64:DB:A0:0A:AC:79 64-DB-A0-0A-AC-79
[DEL] Device 68:E7:17:5E:06:36 68-E7-17-5E-06-36
hci0 type 7 discovering on
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Key: 0x004c (76)
[CHG] Device 75:41:AC:EC:9E:E6 ManufacturerData.Value:
  0c 0e 08 fa b7 93 8c 10 dc c8 59 da ac f1 bb 18  ..........Y.....
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Key: 0x004c (76)
[CHG] Device 43:75:62:F5:25:CC ManufacturerData.Value:
  0c 0e 08 fa b7 93 8c 10 dc c8 59 da ac f1 bb 18  ..........Y.....
  10 06 4f 1d a9 35 3c 68                          ..O..5<h        
[Xbox Wireless Controller]> scan off
hci0 type 7 discovering off
Discovery stopped
[CHG] Device FF:2F:E4:AE:66:95 RSSI is nil
[CHG] Device 44:07:28:7F:02:12 TxPower is nil
[CHG] Device 44:07:28:7F:02:12 RSSI is nil
[CHG] Device 6A:8B:9F:A0:4B:5A TxPower is nil
[CHG] Device 6A:8B:9F:A0:4B:5A RSSI is nil
[CHG] Device 46:A8:2A:30:33:89 RSSI is nil
[CHG] Device 6C:79:40:0F:FA:F7 TxPower is nil
[CHG] Device 6C:79:40:0F:FA:F7 RSSI is nil
[CHG] Device 64:D2:C4:C2:AC:D4 TxPower is nil
[CHG] Device 64:D2:C4:C2:AC:D4 RSSI is nil
[CHG] Device 5A:9B:9D:CD:46:A6 TxPower is nil
[CHG] Device 5A:9B:9D:CD:46:A6 RSSI is nil
[CHG] Device 77:B7:B4:5E:FD:AD RSSI is nil
[CHG] Device 4A:82:12:80:4D:ED RSSI is nil
[CHG] Device 61:C8:87:6F:B3:19 TxPower is nil
[CHG] Device 61:C8:87:6F:B3:19 RSSI is nil
[CHG] Device 7B:E8:EA:32:13:C7 RSSI is nil
[CHG] Device 77:72:7B:90:67:0E RSSI is nil
[CHG] Device 64:D2:C4:BC:CE:76 TxPower is nil
[CHG] Device 64:D2:C4:BC:CE:76 RSSI is nil
[CHG] Device 58:68:1F:AB:3A:84 RSSI is nil
[CHG] Device 43:75:62:F5:25:CC RSSI is nil
[CHG] Device 75:41:AC:EC:9E:E6 RSSI is nil
[CHG] Device 64:D2:C4:C8:A6:C0 TxPower is nil
[CHG] Device 64:D2:C4:C8:A6:C0 RSSI is nil
[CHG] Device 6A:1A:76:BE:94:1F TxPower is nil
[CHG] Device 6A:1A:76:BE:94:1F RSSI is nil
[CHG] Device 77:FC:BB:7C:2F:D7 RSSI is nil
[CHG] Device 64:D2:C4:CA:11:3A TxPower is nil
[CHG] Device 64:D2:C4:CA:11:3A RSSI is nil
[CHG] Device AC:8E:BD:1D:5C:C8 TxPower is nil
[CHG] Device AC:8E:BD:1D:5C:C8 RSSI is nil
[CHG] Controller 14:B5:CD:EA:AC:C5 Discovering: no
hci0 AC:8E:BD:1D:5C:C8 type LE Public disconnected with reason 3
[CHG] Device AC:8E:BD:1D:5C:C8 ServicesResolved: no
[CHG] Device AC:8E:BD:1D:5C:C8 Connected: no
[DEL] Device D6:F2:4C:D2:9E:80 D6-F2-4C-D2-9E-80
[DEL] Device 6A:8B:9F:A0:4B:5A 6A-8B-9F-A0-4B-5A
[DEL] Device 64:D2:C4:C2:AC:D4 64-D2-C4-C2-AC-D4
[DEL] Device 5A:9B:9D:CD:46:A6 5A-9B-9D-CD-46-A6
[DEL] Device 77:FC:BB:7C:2F:D7 77-FC-BB-7C-2F-D7
[DEL] Device 75:41:AC:EC:9E:E6 75-41-AC-EC-9E-E6
[DEL] Device 64:D2:C4:CA:11:3A 64-D2-C4-CA-11-3A
[DEL] Device 46:A8:2A:30:33:89 46-A8-2A-30-33-89
[DEL] Device 6A:1A:76:BE:94:1F 6A-1A-76-BE-94-1F
[DEL] Device 6C:79:40:0F:FA:F7 6C-79-40-0F-FA-F7
[DEL] Device 4A:82:12:80:4D:ED 4A-82-12-80-4D-ED
[DEL] Device 7B:E8:EA:32:13:C7 7B-E8-EA-32-13-C7
[DEL] Device 43:75:62:F5:25:CC 43-75-62-F5-25-CC
[DEL] Device 64:D2:C4:C8:A6:C0 64-D2-C4-C8-A6-C0
[DEL] Device 77:72:7B:90:67:0E 77-72-7B-90-67-0E
[DEL] Device 64:D2:C4:BC:CE:76 64-D2-C4-BC-CE-76
[DEL] Device 61:C8:87:6F:B3:19 61-C8-87-6F-B3-19
[DEL] Device 58:68:1F:AB:3A:84 58-68-1F-AB-3A-84
[DEL] Device 77:B7:B4:5E:FD:AD 77-B7-B4-5E-FD-AD
[DEL] Device C2:76:79:95:56:C9 C2-76-79-95-56-C9
[DEL] Device 44:07:28:7F:02:12 44-07-28-7F-02-12
[DEL] Device FF:2F:E4:AE:66:95 VCON-6695
[bluetoothctl]> 

Is this from running the command on a working UNO Q, or from one of the non-working UNO Qs?

I would paste the whole log into chatgpt and gemini.google.com. Also in the prompt mention the board is an Uno Q running Debian. I usually try both AIs and hope for a quick fix from one. If no quick fix, pick one and try whatever it suggests. I usually do not even login.

chatgpt suggests a kernel HID/BlueZ compatibility problem rather than a pairing problem. It asks you run some bash commands then paste the results for analysis.

Here are the first few paragraphs from Gemini AI. The whole response is too long to include.

Pairing, trusting, and connecting in bluetoothctl succeeded (Paired: yes,
Bonded: yes, Trusted: yes, Connected: yes, Connection successful), which proves
the controller itself and the UNO Q's Bluetooth hardware can complete the link.

However, the moment you ran scan off, the connection dropped with:hci0
AC:8E:BD:1D:5C:C8 type LE Public disconnected with reason 3

Reason 3 in Bluetooth/HCI disconnect codes is Remote User Terminated Connection
(or link/supervision drop right as scanning stops). On Linux/BlueZ with Xbox
controllers (usb:v045Ep0B13d0509 — Xbox Series X|S controller), active scanning
(scan on) keeps the radio/link active, whereas stopping the scan while the Xbox
controller is still finishing its BLE HID/input handshake or power-saving
negotiation can cause the controller to drop the connection—or ertm / Enhanced
Retransmission Mode / BLE connection parameters cause the controller to
disconnect once idle.

Work through these steps to keep the connection stable after scanning stops and
ensure the input device is usable:

Another variable is the firmware version running in the Xbox controllers. There is a Windows Xbox program that can show and upgrade Xbox controller firmware. Xbox consoles can also do this.