Realtek bluetooth 8761b driver linux

Linux Mint Forums

Welcome to the Linux Mint forums!

♪ [SOLVED] ♫ Bluetooth USB (RTL8761) adapter

♪ [SOLVED] ♫ Bluetooth USB (RTL8761) adapter

Post by cbrace » Wed Apr 21, 2021 9:11 am

I have a new Sennheiser headphone which supports Bluetooth v5. With my Android phone, which supports v5, the audio quality is fantastic. I would if possible like to connect this headphone to my Thinkpad, which only supports an older Bluetooth version. I’m running Mint 21 MATE.

I bought a MPOW Bluetooth USB Dongle that supports Linux according to the manufacturer. demsg returns an error message though. Any ideas for getting this device working? TIA

Re: Bluetooth USB (rtl8761) adapter

Post by sydbat » Wed Apr 21, 2021 9:59 am

When you plug in the dongle, does it show up in Bluetooth manager? If so, is it turned on? If so, does it show up in Sound Preferences? If so, is it unmuted?

Dumb questions I know, but these are steps to help determine what you may have done already.

Re: Bluetooth USB (rtl8761) adapter

Post by cbrace » Wed Apr 21, 2021 10:14 am

Re: Bluetooth USB (rtl8761) adapter

Post by hglee » Wed Apr 21, 2021 10:46 am

I have a new Sennheiser headphone which supports Bluetooth v5. With my Android phone, which supports v5, the audio quality is fantastic. I would if possible like to connect this headphone to my Thinkpad, which only supports an older Bluetooth version. I’m running Mint 21 MATE.

I bought a MPOW Bluetooth USB Dongle that supports Linux according to the manufacturer. demsg returns an error message though. Any ideas for getting this device working? TIA

To download and install MPOW-supplied firmware files for Realtek RTL8761 A and RTL8761 B (ID 0bda:8771) Bluetooth chipsets:

Open a Terminal window (Ctrl-Alt-T), then copy-and-paste the following 5 command-lines, one by one.

Some MPOW owners report a need for kernel 5.8, so 5.4 users might want to upgrade:

Источник

Realtek RTL8761B

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.

Читайте также:  Картридж лазерный canon 052h оригинальный

Linux Support [ edit ]

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).

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.

Источник

How to install unsupported Bluetooth 5.0 Dongle on Linux

I bought a cheap Bluetooth dongle on Amazon without reading the characteristics carefully… and now I must tell you a little story.

One of my home desktop computers lacks Bluetooth 5.0 support and I needed one because of the dual-mode connection and better speeds.

So I was blind to ordering the cheapest dongle I could find… without researching a little more about my future device.

After it arrives, I couldn’t make it to work on my Linux machine.

I tested on another Windows 10 Pro machine and it works.

So I head back to the manufacturer website and then I saw this :

So after doing some research I tried to fix the problem by myself, reading the official documentation of the device I see that the dongle has an RTL8761B chipset, so knowing this makes the process easier to find and fix.

These will be the steps to install the dongle successfully in Linux, in this case, Debian-based Linux.

To check the problem I use the “ dmesg” command to have more insight information about the error.

You will see something like this… that means that we need to install the firmware for this chipset because the file is not there.

So let’s follow these small steps to have it working :

  1. Navigate to this URL to download the chipset driver compressed file, I found it on the official Arch package: https://aur.archlinux.org/packages/rtl8761b-fw/ (if this link it’s not working, new links added below for the individual files)
    — https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/rtk1395/bt/rtkbt/Firmware/BT/rtl8761b_config
    — https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/rtk1395/bt/rtkbt/Firmware/BT/rtl8761b_fw
  2. Uncompressed the downloaded file
  3. Navigate where the driver file is, in my case was in 20201202_LINUX_BT_DRIVER/rtkbt-firmware/lib/firmware/rtlbt
  4. Now we must copy the firmware files to the /usr/lib/firmware/rtl_bt and rename it .bin extension, for this we need sudo for permissions. There are two files we need: rtl8761b_config and rtl8761b_fw
Читайте также:  Copy all users linux

5. After copying the files, we need to unplug the USB dongle again or reboot your pc and check the “ dmesg” command again, if everything goes well the missing file error “ not found” will not be present anymore.

6. That’s it … Enjoy your Bluetooth 5.0 connection 🙂

Note: if your Linux OS upgrades the firmware in the future, you will need to repeat this steps again to have the device drivers installed after upgrading, so I recommend to read well if an upgrade to the system will also upgrades the firmware, if for any reason your Bluetooth dongle stops working… you know what to do again.

I hope this mini-guide will help others like me 🙂

Источник

Arch Linux User Repository

Search Criteria

Package Details: rtl8761usb 20201202-3

Package Actions

Git Clone URL: https://aur.archlinux.org/rtl8761usb.git (read-only, click to copy)
Package Base: rtl8761usb
Description: Realtek bluetooth modules for RTL8761 usb based devices
Upstream URL: https://www.xmpow.com/pages/download
Licenses: unknown
Conflicts: rtl8761b-fw
Submitter: knedlyk
Maintainer: knedlyk
Last Packager: knedlyk
Votes: 2
Popularity: 0.008360
First Submitted: 2021-02-05 16:33 (UTC)
Last Updated: 2021-04-29 07:42 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

gyscos commented on 2022-05-20 19:12 (UTC) (edited on 2022-05-20 20:24 (UTC) by gyscos)

On my machine (running linux 5.17.9-arch1-1), with this package installed, plugging in my TP-Link UB500 would result in these logs:

Seems that it was trying to fetch a rtl_bt/rtl8761bu_fw.bin file, but this package only provides rtl8761bu_fw . So I did:

And after that, my dongle was working correctly. So it looks like there is a mismatch between the actual file names and some configuration. I could not find where this path was defined (I suppose maybe in the kernel itself? — EDIT: indeed: link to the kernel source).

swyter commented on 2022-03-23 22:10 (UTC)

Helmut Grohne seems to have sent a fix upstream. Essentially a proper version of that hex-edit. It has been merged and will probably land soon enough in mainline, unfortunately due to the lack of a Cc: stable@vger.kernel.org it may not get back-ported anytime soon unless someone takes care of that.

jarylc commented on 2022-01-31 02:28 (UTC)

This hex edit seemed to have worked too without the need to recompile the kernel!

Burny02 commented on 2022-01-30 22:38 (UTC)

There is a larger kernel module problem which I had to rebuild to get mine working.

btusb is the module in question. See here:

https://linuxreviews.org/Realtek_RTL8761B Poster — Anonymous (8d3bedd83f) near the bottom for the changes

jarylc commented on 2022-01-29 08:05 (UTC)

@Burney02 same here, both on my Arch and DietPi systems, the dongle is detected. However, when scanning/discovering, no devices get detected.

Burny02 commented on 2021-11-13 17:00 (UTC)

I can’t seem to get this working.

Seems like it is detecting the adapter

Читайте также:  Linux как выключить иксы

bluetoothctl list Controller 00:E0:4C:19:81:88 my-sys [default]

But it is unable to find any devices when searching.

Strangely I have problems with the CD on windows also, until I found a 5.1 driver

mrapplexz commented on 2021-06-20 08:55 (UTC)

@knedlyk thank you very much!

knedlyk commented on 2021-03-26 00:56 (UTC)

@mrapplexz Check it out: rtl8761usb-dkms

mrapplexz commented on 2021-03-18 12:42 (UTC)

Hello! Could you please make DKMS version of this package?

Copyright © 2004-2022 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.

Источник

Fix Bluetooth rtl8761b Problem on Linux (Ubuntu 22.04)

Last Updated on May 4, 2022

Linux has sadly many problems when it comes to Bluetooth, or at least, some specific distributions of it.

We have seen a case before where many Bluetooth devices were actually supported by the kernel, but an issue in USB power management caused these devices to not work for a very, very long time on various Linux distributions.

Today, it seems that there is another Bluetooth issue.

Some Bluetooth 5.0 adapters which use the rtl8761b firmware are not working correctly on Ubuntu 20.04 and 22.04 (Possibly other Linux distributions too), because of a bug in loading the correct driver for these devices.

In other words, the driver is there on the system and has no issue, but the only issue is that it is not loaded correctly when the Bluetooth device is plugged to the machine.

You can figure this out if you write the following command in the terminal (After inserting the Bluetooth device):

And you may see the following output:

This happens because the rtl8761bu firmware is being requested, but the system should have loaded the rtl8761b firmware, not the rtl8761bu one. The latter may not even exist on your system.

To fix this issue, luckily we don’t need to install or download anything! We just need to create a simple symbolic link to link rtl8761bu driver firmware to rtl8761b one. In this way, any time our system requests the rtl8761bu files it will be instead served the correct rtl8761b ones.

We can do it by applying the following commands in the terminal:

After it, just remove the Bluetooth 5.0 adapter from the computer and plug it again (no restart required), and this time, it should be working.

This bug was first caught in Ubuntu on April 11, 2022, but still not fixed until this very day. Many thanks to the “Bert RAM Aerts” user for suggesting the possible fix.

If you have applied this fix and the Bluetooth adapter worked/didn’t work with you, then tell us in the comments below.

Useful Services & Offers

Check the following list of services and tools we use in our day-to-day work, perhaps they can be beneficial to you:

Make for Automation

Wise for Payments

NordVPN for Privacy
(60% Discount)

NordLayer for Business
Security

DigitalOcean for VPS
and Cloud ($200 Free Credit)

Источник

Поделиться с друзьями
КомпСовет
Adblock
detector