[solved] TP-Link UB5A bluetooth not working

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
Brn
Level 1
Level 1
Posts: 3
Joined: Sat Apr 13, 2024 6:45 am

[solved] TP-Link UB5A bluetooth not working

Post by Brn »

Just received a TP-Link UB5A bluetooth adapter.
Mint 20 seems to recognize it, but cannot actually find any devices.

Code: Select all

uname -r
5.4.0-176-generic

Code: Select all

lsusb
Bus 002 Device 002: ID 05e3:0732 Genesys Logic, Inc. All-in-One Cardreader
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04d9:a02e Holtek Semiconductor, Inc. USB Keyboard
Bus 001 Device 004: ID 2357:0604 TP-Link TP-Link UB5A Adapter
Bus 001 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2024-04-13 11:17:41 CEST; 3h 37min ago
       Docs: man:bluetoothd(8)
   Main PID: 5083 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9379)
     Memory: 1.1M
     CGroup: /system.slice/bluetooth.service
             └─5083 /usr/lib/bluetooth/bluetoothd

avril 13 11:17:41 mint systemd[1]: Starting Bluetooth service...
avril 13 11:17:41 mint bluetoothd[5083]: Bluetooth daemon 5.53
avril 13 11:17:41 mint systemd[1]: Started Bluetooth service.
avril 13 11:17:41 mint bluetoothd[5083]: Starting SDP server
avril 13 11:17:41 mint bluetoothd[5083]: Bluetooth management interface 1.14 initialized
avril 13 11:17:41 mint bluetoothd[5083]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSink/sbc
avril 13 11:17:41 mint bluetoothd[5083]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSource/sbc

Code: Select all

dmesg | egrep -i 'bluetooth|firmware'
[    0.166147] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.564477] Bluetooth: Core ver 2.22
[    5.564495] Bluetooth: HCI device and connection manager initialized
[    5.564498] Bluetooth: HCI socket layer initialized
[    5.564499] Bluetooth: L2CAP socket layer initialized
[    5.564501] Bluetooth: SCO socket layer initialized
[    5.606999] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.607000] Bluetooth: BNEP filters: protocol multicast
[    5.607002] Bluetooth: BNEP socket layer initialized
[    7.694821] Bluetooth: RFCOMM TTY layer initialized
[    7.694824] Bluetooth: RFCOMM socket layer initialized
[    7.694828] Bluetooth: RFCOMM ver 1.11
[ 2763.718617] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 2861.758707] Bluetooth: hci0: Ignoring error of Inquiry Cancel command

Code: Select all

hciconfig -a
hci0:	Type: Primary  Bus: USB
	BD Address: E8:48:B8:C8:40:00  ACL MTU: 1021:6  SCO MTU: 255:12
	UP RUNNING PSCAN ISCAN 
	RX bytes:13728 acl:0 sco:0 events:2114 errors:0
	TX bytes:31757 acl:0 sco:0 commands:1809 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: SLAVE ACCEPT 
	Name: 'mint'
	Class: 0x1c0104
	Service Classes: Rendering, Capturing, Object Transfer
	Device Class: Computer, Desktop workstation
	HCI Version: 5.1 (0xa)  Revision: 0xb
	LMP Version: 5.1 (0xa)  Subversion: 0x8761
	Manufacturer: Realtek Semiconductor Corporation (93)

Code: Select all

hciconfig -a
hci0:	Type: Primary  Bus: USB
	BD Address: E8:48:B8:C8:40:00  ACL MTU: 1021:6  SCO MTU: 255:12
	UP RUNNING PSCAN ISCAN 
	RX bytes:13728 acl:0 sco:0 events:2114 errors:0
	TX bytes:31757 acl:0 sco:0 commands:1809 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: SLAVE ACCEPT 
	Name: 'mint'
	Class: 0x1c0104
	Service Classes: Rendering, Capturing, Object Transfer
	Device Class: Computer, Desktop workstation
	HCI Version: 5.1 (0xa)  Revision: 0xb
	LMP Version: 5.1 (0xa)  Subversion: 0x8761
	Manufacturer: Realtek Semiconductor Corporation (93)

Code: Select all

hcitool scan
Scanning ...
Last edited by Brn on Sat Apr 13, 2024 10:15 am, edited 1 time in total.
JeremyB
Level 21
Level 21
Posts: 14190
Joined: Fri Feb 21, 2014 8:17 am

Re: TP-Link UB5A bluetooth not working

Post by JeremyB »

Can you try the 5.15 kernel from Update Manager, view menu, linux kernels and reboot?
User avatar
Brn
Level 1
Level 1
Posts: 3
Joined: Sat Apr 13, 2024 6:45 am

Re: TP-Link UB5A bluetooth not working

Post by Brn »

Done.

Code: Select all

uname -r
5.15.0-102-generic

Code: Select all

dmesg | egrep -i 'bluetooth|firmware'
[    0.205581] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.070144] Bluetooth: Core ver 2.22
[    5.070180] NET: Registered PF_BLUETOOTH protocol family
[    5.070181] Bluetooth: HCI device and connection manager initialized
[    5.070216] Bluetooth: HCI socket layer initialized
[    5.070218] Bluetooth: L2CAP socket layer initialized
[    5.070222] Bluetooth: SCO socket layer initialized
[    5.094200] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[    5.095215] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    5.095217] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[    5.095813] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761bu_fw.bin failed with error -2
[    5.095817] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761bu_fw.bin not found
[    9.765678] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.765681] Bluetooth: BNEP filters: protocol multicast
[    9.765685] Bluetooth: BNEP socket layer initialized
firmware seems to be missing...
JeremyB
Level 21
Level 21
Posts: 14190
Joined: Fri Feb 21, 2014 8:17 am

Re: TP-Link UB5A bluetooth not working

Post by JeremyB »

Code: Select all

cd /lib/firmware/rtl_bt
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/rtl8761b_config.bin
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/rtl8761b_fw.bin
That should fix the firmware, reboot
User avatar
Brn
Level 1
Level 1
Posts: 3
Joined: Sat Apr 13, 2024 6:45 am

Re: TP-Link UB5A bluetooth not working

Post by Brn »

It works fine by adding the "u" in the driver name :

Code: Select all

cd /lib/firmware/rtl_bt
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/rtl8761bu_fw.bin
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/rtl8761bu_config.bin
Thank you very much JeremyB :D
Post Reply

Return to “Hardware Support”