Realtek RTL8761B

From LinuxReviews
Jump to navigationJump to search

Realtek RTL8761B is a USB Bluetooth 5.0 dongle chip made by Realtek. It is identified by lsusb as 0bda:8771 Realtek Semiconductor Corp. Most of the cheaper BT 5.0 dongles, like the C-TECH BTD-01, use this chip.

Linux Support

The RTL8791B dongle chip has been supported by the bt_rtl (CONFIG_BT_RTL) driver since Linux 5.8.

You will need to upgrade your kernel to 5.8+ if you have an older kernel and you want to use this dongle.

CONFIG_BT_RTL is not listed as its own item in menuconfig in Linux 5.11, which can be a bit confusing. You should choose Networking support ▸ Bluetooth subsystem support ▸ Bluetooth device drivers ▸ HCI USB driver and the two options both named Realtek protocol support in that same menu (BT_HCIBTUSB_RTL and BT_HCIUART_RTL). You will then find that BT_RTL is enabled if you press / and search for BT_RTL.

The driver requires firmware. The firmware package shipped with most GNU/Linux distributions tend to just provide a /lib/firmware/rtl_bt/rtl8761a_fw.bin file for the RTL8761A model.

The firmware files for the RTL8761B can be acquired from the github.com/Realtek-OpenSource/android_hardware_realtek firmware repository using these links:

These firmware files need to be copied and renamed to:

  • /usr/lib/firmware/rtl_bt/rtl8761b_fw.bin OR /lib/firmware/rtl_bt/rtl8761b_fw.bin
  • /usr/lib/firmware/rtl_bt/rtl8761b_config.bin OR /lib/firmware/rtl_bt/rtl8761b_config.bin

It does not matter which location you copy the firmware files to on most distributions. Fedora and many others have a symbolic link from /lib/ to /usr/lib (making them the same folder).

Something called "Arch" has these firmware files available as a package called rtl8761b-fw (aur: rtl8761b-fw).

Links

Robert Síbek has written a tutorial with screenshots for the C-TECH BTD-01 dongle (actually the RTL8761B chip) specific to Ubuntu 20.10.


avatar

Linuxuzer

11 months ago
Score 0++

`linux-firmware package` still doesn't contains firmware files for 8761B version. They can be compiled and added manually. Also it works on kernels before 5.8 but with kernel patch.

I made it works on 5.4 kernel as described here: https://foru...237#p1917237
avatar

Horror-vacui

7 months ago
Score 0++

I am running Xubuntu 20.04.2 LTS with kernel 5.11.6-051106-generic, but the bluetooth firmware was not included. After downloading the two linked rtl8761b_* files, it was working, without restarting anything. Unfortunately the communication quality is not great (data from blueman-manager): -signal strength 40% -link quality 10% -transmit power level 50%

The above data was obtained when I was sitting half a meter from the adapter, and they are also confirmed by experience. Walking a few meter away, the connection starts to break... Is there any trick with which the range can be improved.
avatar

Anonymous (fc92e40d1b)

one month ago
Score 0

Avoid usb 3.0 ports as they may interfere.

Get an adapter with a better antenna, even external.
avatar

Mershl

5 months ago
Score 0++
Running Fedora 34 with latest linux-firmware also requires manually providing the rtl8761b firmware. As far as I can see rtl8761a is already available in linux-firmware. Is there a problem with rtl8761b or is it on the roadmap to be included in upstream?
avatar

Anonymous (cde9f771)

5 months ago
Score 0

When I copied over the `*_config` file, then the usb loaded with config where the driver was `btusb` rather than `bt_rtl`, and that lead to a successful demsg output but `bluetoothctl list` would still not detect anything.

After deleting the `*_config` file, it worked (because it might've tried some default configuration, I guess)
avatar

Anonymous (fab07f9e)

5 months ago
Score 0
Same here, had to delete the _config file
avatar

Anonymous (063d8a83)

4 months ago
Score 0

Hi, I have issue with this device/fw on debian testing. It is working some time after restart. Do you have any solution for this ?

Bluetooth: hci0: Received unexpected HCI Event 00000000 Bluetooth: hci0: Received unexpected HCI Event 00000000 Bluetooth: hci0: Received unexpected HCI Event 00000000 Bluetooth: hci0: Received unexpected HCI Event 00000000 Bluetooth: hci0: Received unexpected HCI Event 00000000 Bluetooth: hci0: command 0x1002 tx timeout Bluetooth: hci0: No gpio to reset Realtek device, ignoring Bluetooth: hci0: Received unexpected HCI Event 00000000 Bluetooth: hci0: command 0x1002 tx timeout Bluetooth: hci0: No gpio to reset Realtek device, ignoring Bluetooth: hci0: command 0x1002 tx timeout Bluetooth: hci0: No gpio to reset Realtek device, ignoring Bluetooth: hci0: command 0x1002 tx timeout

Bluetooth: hci0: No gpio to reset Realtek device, ignoring
avatar

Anonymous (a0d4bc5b)

4 months ago
Score 0
Which firmware are you using, the one provided in the link above or the firmware-realtek in the Bullseye repository?
avatar

Anonymous (ce03da0d4b)

4 months ago
Score 0

OS: Debian 11 (Bullseye) Bluetooth dongle: orico Bluetooth 5.0 - BTA-508 Kernel: 5.10.0-6-amd64

After moving the firmware provided above to "/lib/firmware/rtl_bt/" bluetooth finally works on my system, but it is not perfect, my headphones work fine but my bluetooth keyboard constantly disconnects and reconnects. this happens very fast it disconnects for only a fraction of a second and then reconnects again, I wouldn't find this a issue if were not to happen so frequently.

I tried different ways, different config files all over the place but I still can't fix the issue, which is very weird since the same does not happen with my headphones, on windows 10 after installing the proper driver the same does not happen and the keyboard works fine, so I am inclined to believe this issue to be related to the linux firmware as oppose to have a faulty device.
avatar

Anonymous (f652be644c)

4 months ago
Score 0

Good news! RTL8761B has been added upstream to linux-firmware 3 days ago

https://git....9640a4880296
avatar

Anonymous (4918ca965b)

3 months ago
Score 0
going to buy this bluetooth dongle for kernel 5.11 ubuntu is it buggy
avatar

Anonymous (f652be954a)

3 months ago
Score 0
It has been working perfectly for me (3 BT devices connected at the same time). Good news as well: Yesterdays linux-firmware release includes the necessary firmware now. Which means it should work out-of-the-box for more and more distros down the line (Fedora 34 has it in testing now, will hit stable in the next days).
avatar

Anonymous (6b48b17efb)

3 months ago
Score 0

Confirming new entry in the linux-firmware package - rtl_bt: Add rtl8761b/rtl8761bu firmware Fedora 34, Updates repository (aka no more Testing repository)

Hooray~!
avatar

Anonymous (d18f541a81)

2 months ago
Score 0
ㅎㅎㅎ
avatar

Anonymous (d18f541a81)

2 months ago
Score 0

https://aur....rtl8761b-fw/

This link shows 404 NOT FOUND. It seems that the original post has been removed.

In my config. of Linux 16.04 LTS, Kernel 4.15, the bluetooth (based on RealTek8761B chipset) of my PC still does not work at all after following every solution including this post.
avatar

Anonymous (527ed41a81)

2 months ago
Score 0
same here above link https://aur....rtl8761b-fw/ is not working for me either. any other solution that newbie can follow?
avatar

LazyGeek

2 months ago
Score 0++

I got it working!

Thanks to Anonymous (d18f541a81) who posted the (now defunct) link to the AUR package: https://aur....rtl8761b-fw/

I was able to find an archived copy of this page, here: https://raw..../rtl8761b_fw

In the "Sources" section, there's a direct link to the driver: https://web..../rtl8761b_fw

This will give you a driver file named "rtl8761b_fw", and you only need to put this file into your /usr/lib/firmware/rtl_bt/ directory, and rename it "rtl8761b_fw.bin".

Here's the command that made it work for me (being in the same dir where I downloaded the driver file):

sudo cp rtl8761b_fw /usr/lib/firmware/rtl_bt/rtl8761b_fw.bin

Then, REBOOT... Just to make sure everything is loaded correctly. It should work! If it still doesn't, then you should follow the instructions from this wiki page: https://wiki...le/Bluetooth

Cheers!
avatar

LazyGeek

2 months ago
Score 0++

oops, isn't there any way to edit our previous post?

The archived copy of the mentioned page is HERE: https://web....rtl8761b-fw/

anyway, the other links are fine, and you can click them to directly download the driver...

)
avatar

Anonymous (40786a0df6)

one month ago
Score 0

Thanks for this. Worked perfectly for Ubuntu 20.04.2 LTS, kernel 5.11.

I downloaded both files and sudo cp to /usr/lib/firmware/rtl_bt/ and renamed both to .bin.

I rebooted and device is working.

Cheers,

Michael
avatar

Anonymous (46d5c6e716)

25 days ago
Score 0
Can you help me how step by step?
avatar

Anonymous (22d0836563)

9 days ago
Score 0
In Debian (and likely Ubuntu) the firmware is in the package "firmware-realtek", since version package version 20210818-1.
Add your comment
LinuxReviews welcomes all comments. If you do not want to be anonymous, register or log in. It is free.