Realtek RTL8761BU problems

zisco

New Member
Jul 26, 2023
11
0
1
I'm not able to get my new "wide-range" bluetooth adapter on hci0 working on my prox-node (altough it is working fine with Linux Mint)
Thankful for helpful answers!

Bash:
root@prox:~# hciconfig -a
hci0:   Type: Primary  Bus: USB
        BD Address: 8C:68:8B:A1:12:68  ACL MTU: 1021:6  SCO MTU: 255:12
        UP RUNNING 
        RX bytes:3308 acl:0 sco:0 events:240 errors:0
        TX bytes:35173 acl:0 sco:0 commands:242 errors:0
        Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: PERIPHERAL ACCEPT 
        Name: 'RTK_BT_5.0'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous, 
        HCI Version: 5.1 (0xa)  Revision: 0xdfc6
        LMP Version: 5.1 (0xa)  Subversion: 0xd922
        Manufacturer: Realtek Semiconductor Corporation (93)

hci1:   Type: Primary  Bus: USB
        BD Address: A0:C5:89:47:23:3F  ACL MTU: 1021:4  SCO MTU: 96:6
        UP RUNNING 
        RX bytes:7369 acl:0 sco:0 events:403 errors:0
        TX bytes:14823 acl:0 sco:0 commands:394 errors:0
        Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH SNIFF 
        Link mode: PERIPHERAL ACCEPT 
        Name: 'prox #2'
        Class: 0x000104
        Service Classes: Unspecified
        Device Class: Computer, Desktop workstation
        HCI Version: 4.2 (0x8)  Revision: 0x100
        LMP Version: 4.2 (0x8)  Subversion: 0x100
        Manufacturer: Intel Corp. (2)

Bash:
root@prox:~# lsusb | grep -i bluetooth
Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 009: ID 0bda:a728 Realtek Semiconductor Corp. Bluetooth 5.4 Radio

Bash:
dmesg | grep -i bluetooth
[437919.120735] Bluetooth: hci0: command tx timeout
[437954.181831] usb 1-3: Product: Bluetooth 5.4 Radio
[437954.186399] Bluetooth: hci2: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[437954.187369] Bluetooth: hci2: RTL: rom_version status=0 version=1
[437954.187376] Bluetooth: hci2: RTL: loading rtl_bt/rtl8761bu_fw.bin
[437954.187651] Bluetooth: hci2: RTL: loading rtl_bt/rtl8761bu_config.bin
[437954.187695] Bluetooth: hci2: RTL: cfg_sz 6, total sz 30210
[437954.338570] Bluetooth: hci2: RTL: fw version 0xdfc6d922
[437954.405771] Bluetooth: MGMT ver 1.22
[438093.965402] Bluetooth: hci2: Opcode 0x2005 failed: -110
[438093.965406] Bluetooth: hci2: command 0x2005 tx timeout
[438096.013371] Bluetooth: hci2: command 0x2005 tx timeout
[438096.013378] Bluetooth: hci2: Opcode 0x2041 failed: -110
[438197.260441] Bluetooth: hci2: command 0x2039 tx timeout
[438197.260444] Bluetooth: hci2: Opcode 0x2039 failed: -110
[438560.644503] Bluetooth: hci2: command 0x0401 tx timeout
[438720.274121] Bluetooth: hci2: HCI reset during shutdown failed
[439127.353607] Bluetooth: hci2: Opcode 0x0c03 failed: -110
[439158.759345] usb 1-4: Product: Bluetooth 5.4 Radio
[439158.763227] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[439158.764173] Bluetooth: hci0: RTL: rom_version status=0 version=1
[439158.764179] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[439158.764457] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
[439158.764517] Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
[439158.913373] Bluetooth: hci0: RTL: fw version 0xdfc6d922
[439158.981557] Bluetooth: MGMT ver 1.22
[439197.944283] Bluetooth: hci0: command 0x2005 tx timeout
[439197.944288] Bluetooth: hci0: Opcode 0x2005 failed: -110
[439199.992220] Bluetooth: hci0: Opcode 0x2041 failed: -110
[439199.992223] Bluetooth: hci0: command 0x2005 tx timeout
[554011.158999] usb 1-4: Product: Bluetooth 5.4 Radio
 
Finally fixed it (thanks to Claude in cooperation with ChatGPT) - got the bluetooth dongle working on my prox-node and after that
Bash:
qm set <node> -usb0 host=<host>
exposed it to my home-assistant node.