Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Last active December 17, 2024 08:58
Show Gist options
  • Save peteristhegreat/b48da772167f86f43decbd34edbd0849 to your computer and use it in GitHub Desktop.
Save peteristhegreat/b48da772167f86f43decbd34edbd0849 to your computer and use it in GitHub Desktop.
Realtek bluetooth usb adapter RTL8671b

The CD that came with the device listed RTL8671B, but it's not on Realtek's website. Instead the manual points you to:

https://www.mytechkey.com/pages/driver

4.Bluetooth 5.0 Dongle

Driver Link:

https://www.dropbox.com/s/gwo9lz777i82f70/BT5.0%20Driver.zip?dl=0

Hope that helps someone.

Update Github hosted link

https://github.com/peteristhegreat/drivers-backup/releases/tag/1.0

Direct link

https://github.com/peteristhegreat/drivers-backup/releases/download/1.0/BT5.0.Driver.zip

Feb 2021 Update

Adding visibility to @carkrueger 's comment below

If you look here: https://www.catalog.update.microsoft.com/Search.aspx?q=realtek+bluetooth+1.6.1015 You will find now: 1.6.1015.3014 from 11.01.2021

Direct download link: http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2021/02/0d13721d-7aa7-47cf-887a-f53bcd228a5e_04c173bad44cec04d528d260392958dc6e5bcec3.cab

for backup purposes: h**ps://web.archive.org/web/20210216175344/http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2021/02/0d13721d-7aa7-47cf-887a-f53bcd228a5e_04c173bad44cec04d528d260392958dc6e5bcec3.cab

Direct download and the popup window for 1.6.1015.3014 didn't initially work. I ended up needing to right click the link and select Save target as. For it to work for me on Windows 10, I unzipped the cab file into a folder and then used Device Manager to look at that folder. Worked like a charm.

@Gladuin
Copy link

Gladuin commented Sep 4, 2023

Have any of you here tried using the A2DP sink feature that's built into windows (it can be used with utilities like this one)?
I have a realtek RTL8671B based bluetooth dongle (TP-Link UB500) and it just won't work. It works fine with another cheapo bluetooth dongle I have, but that one doesn't work properly with my stadia controller.

@John-Gee
Copy link

Thanks for the latest firmware, it also shows now 5.3 instead of 5.0 but is there a way to verify it's really working like a genuine 5.3? I'm mostly interested in the better connection and battery usage with LE, if it doesn't really work it'd be worth the extra 5 bucks for a new dongle.

If it all works fine, is there a way to push it to linux-firmware or is this something Realtek would need to do?

Thanks!

@joakim-tjernlund
Copy link

Thanks for the latest firmware, it also shows now 5.3 instead of 5.0 but is there a way to verify it's really working like a genuine 5.3? I'm mostly interested in the better connection and battery usage with LE, if it doesn't really work it'd be worth the extra 5 bucks for a new dongle.

If it all works fine, is there a way to push it to linux-firmware or is this something Realtek would need to do?

Thanks!

Realtek does not need to do it(but would be great if they did), you only need to extract the FW and try it out on Linux.
Then you can do a PR/patch for linux-firmware

@John-Gee
Copy link

Thanks for the latest firmware, it also shows now 5.3 instead of 5.0 but is there a way to verify it's really working like a genuine 5.3? I'm mostly interested in the better connection and battery usage with LE, if it doesn't really work it'd be worth the extra 5 bucks for a new dongle.
If it all works fine, is there a way to push it to linux-firmware or is this something Realtek would need to do?
Thanks!

Realtek does not need to do it(but would be great if they did), you only need to extract the FW and try it out on Linux. Then you can do a PR/patch for linux-firmware

Thanks for the quick reply!
Do we not need some kind of permission to distribute these?

@joakim-tjernlund
Copy link

rtl8761bu_fw.bin is already distributed in linux-firmware, unless you can find some license/text in the Win driver pkg
that prohibit distribution you should be fine.
Considering Realtek already pushes FW to linux-firmware I cannot see a problem.

If this FW supports LE you may need to enable that in kernel for this device though, in
drivers/bluetooth/btusb.c you have:

	/* Additional Realtek 8761BUV Bluetooth devices */
	{ USB_DEVICE(0x2357, 0x0604), .driver_info = BTUSB_REALTEK |
						     BTUSB_WIDEBAND_SPEECH },
	{ USB_DEVICE(0x0b05, 0x190e), .driver_info = BTUSB_REALTEK |
	  					     BTUSB_WIDEBAND_SPEECH },
	{ USB_DEVICE(0x2550, 0x8761), .driver_info = BTUSB_REALTEK |
						     BTUSB_WIDEBAND_SPEECH },
	{ USB_DEVICE(0x0bda, 0x8771), .driver_info = BTUSB_REALTEK |
						     BTUSB_WIDEBAND_SPEECH },
	{ USB_DEVICE(0x7392, 0xc611), .driver_info = BTUSB_REALTEK |
						     BTUSB_WIDEBAND_SPEECH },

BTUSB_VALID_LE_STATES might be needed, I don't known what this quirk does though.

@joakim-tjernlund
Copy link

I got an ID 0b05:190e ASUSTek Computer, Inc. ASUS USB-BT500 and I replace the rtl8761bu_fw.bin with the
FW in the driver above just for fun and it loads and starts at least.

@John-Gee
Copy link

@joakim-tjernlund Alright, I've sent the patch, we'll see how it goes. It's been a long time since I've had my name in the kernel, I'd say more than a decade, if it goes I'll owe you.

@joakim-tjernlund
Copy link

@joakim-tjernlund Alright, I've sent the patch, we'll see how it goes. It's been a long time since I've had my name in the kernel, I'd say more than a decade, if it goes I'll owe you.

Nice! Lets hope for the best :)

@joakim-tjernlund
Copy link

hmm, I just noticed that dmesg prints:

hci0: RTL: fw version 0xdcc6b3a8

which appears to be older than the current linux-firmware:

rtl_bt: Update RTL8761B BT USB firmware to 0xDFC6_D922
This firmware patch update for Realtek RTL8761B BT USB controller.

Release Version: 0xDFC6_D922

Signed-off-by: Hilda Wu <[email protected]>
Signed-off-by: Josh Boyer <[email protected]>

@UsayedShahid
Copy link

What is the latest version of the driver for the Realtek 8761b? I have bought a dongle from china and would love to use it on my pc.

@zdanovych1
Copy link

zdanovych1 commented Dec 3, 2023

What is the latest version of the driver for the Realtek 8761b? I have bought a dongle from china and would love to use it on my pc.

1.9.1051.3009
Use this link to check the latest version - https://www.catalog.update.microsoft.com/Search.aspx?q=realtek%20bluetooth%201.9.1051.* - manually add * at the end of the search field

@einsteinagogo
Copy link

@Anarch121 When I use this driver, all works well, and bluetooth devices are connected, but when I restart the Win10 computer it gives an issue with a Code 43, if I uninstall the device, and scan the hardware it installs and works correctly until next restart ?

Any ideas ?

@Anarch121
Copy link

@Anarch121 When I use this driver, all works well, and bluetooth devices are connected, but when I restart the Win10 computer it gives an issue with a Code 43, if I uninstall the device, and scan the hardware it installs and works correctly until next restart ?

Any ideas ?

No, i don't.
For all my device's on windows 10 and windows 11 everything working fine with the driver I've been posted

@Skewah
Copy link

Skewah commented Mar 1, 2024

https://drive.google.com/file/d/1wpUzmOM05HxVxgtY-2n4sPTb2r1Tl9AC/view?usp=sharing

Thanks for the driver. Now device manager shows Realtek Bluetooth 5.3 Adapter and hci 12.56518 / lmp12.45992, my Easy Idea 5.0 adapter is based on Realtek RTL8761BUV chip, works now on 5.3 driver. However, it didn't solve my problem. I'm trying to launch the Anker Soundcore Note i (bt 5.2) headset, but there is still hope.

This worked and allowed me to install the driver for my Volans USB BT 5.3 and it now actually finds devices!
I created an account just to say THANK YOU! :)

@RaXorX
Copy link

RaXorX commented May 23, 2024

@peteristhegreat Hey Peter. And anyone else, can someone verify if theyr bluetooth headset work fine for them using this similar adapter? I bought this adapter and, since I've had it it has always given me issues. Which it didn't at earlier stage but after a windows 10 update, it has always persisted. Even clean installing on a Win11 system, it worked at first but then somehow stopped working properly. At the point, I can't hear any voice when mic is being used. And it happens with all kinds of headphones. It doesn't on linux so, there's no issues there.

@lexab65
Copy link

lexab65 commented May 30, 2024

TP-Link silently release V2 version of UB500 which was Bluetooth 5.3 firmware flashed by default.
Bluetooth adapter drivers 1.9.1051.xxx for win11/win10/win8.1/win7 available from TP-Link web site upgrades UB500 V1 to Bluetooth 5.3.
https://static.tp-link.com/upload/product-overview/2024/202403/20240328/UB500_2.0%20Datasheet.pdf
https://www.tp-link.com/en/support/download/ub500/

@joakim-tjernlund
Copy link

TP-Link silently release V2 version of UB500 which was Bluetooth 5.3 firmware flashed by default. Bluetooth adapter drivers 1.9.1051.xxx for win11/win10/win8.1/win7 available from TP-Link web site upgrades UB500 V1 to Bluetooth 5.3. https://static.tp-link.com/upload/product-overview/2024/202403/20240328/UB500_2.0%20Datasheet.pdf https://www.tp-link.com/en/support/download/ub500/

Any chance you can extract the FW from there so one can use it on Linux?

@lexab65
Copy link

lexab65 commented Jun 3, 2024

Realtek Bluetooth 5.4 drivers available from Microsoft Update Catalog
https://catalog.update.microsoft.com/Search.aspx?q=realtek%20bluetooth%205.4

it has to be installed manually by force because the vid/pid doesn't match.

Drivers name convention:
x.x.1040.1xxx for Windows 8.1 x64
x.x.1040.4xxx for Windows 8.1 x86
x.x.1038.3xxx for Windows 10 x64
x.x.1038.2xxx for Windows 10 x86
x.x.1051.xxxx for Windows 11 x64

1.9.xxxx.xxxx version is for rtl8761
1.10 and 2.10 are for other rtl chips.

my orico bta-508 shows HCI 13.56789 / LMP 13.51041 Win10/x64

You can't use more than one Bluetooth adapter at a time on a Windows PC.
If you want to use a specific adapter, disable the other adapters in Device Manager.
I had to disable internal bt adapter to make dongle works.

@lexab65
Copy link

lexab65 commented Jun 6, 2024

TP-Link silently release V2 version of UB500 which was Bluetooth 5.3 firmware flashed by default. Bluetooth adapter drivers 1.9.1051.xxx for win11/win10/win8.1/win7 available from TP-Link web site upgrades UB500 V1 to Bluetooth 5.3. https://static.tp-link.com/upload/product-overview/2024/202403/20240328/UB500_2.0%20Datasheet.pdf https://www.tp-link.com/en/support/download/ub500/

Any chance you can extract the FW from there so one can use it on Linux?

check current BT version
$hciconfig -a
download and extract cab file
$file-roller -h c1f14a17-4aed-40ff-85cb-7710d0244f42_4433154fbd9a4a8173ee994d24ee7eb640714562.cab
backup current firmware
$sudo mv /lib/firmware/rtl_bt/rtl8761bu_fw.bin.zst /lib/firmware/rtl_bt/rtl8761bu_fw.bin.zst.old
copy new firmware (zst-ing of new firmware is optional)
$sudo cp rtl8761b_mp_chip_bt40_fw_asic_rom_patch_new.dat /lib/firmware/rtl_bt/rtl8761bu_fw.bin
remove and insert dongle, check new version
$hciconfig -a

@mooms06
Copy link

mooms06 commented Jul 23, 2024

Realtek Bluetooth 5.4 drivers available from Microsoft Update Catalog https://catalog.update.microsoft.com/Search.aspx?q=realtek%20bluetooth%205.4

it has to be installed manually by force because the vid/pid doesn't match.

Drivers name convention: x.x.1040.1xxx for Windows 8.1 x64 x.x.1040.4xxx for Windows 8.1 x86 x.x.1038.3xxx for Windows 10 x64 x.x.1038.2xxx for Windows 10 x86 x.x.1051.xxxx for Windows 11 x64

1.9.xxxx.xxxx version is for rtl8761 1.10 and 2.10 are for other rtl chips.

my orico bta-508 shows HCI 13.56789 / LMP 13.51041 Win10/x64

You can't use more than one Bluetooth adapter at a time on a Windows PC. If you want to use a specific adapter, disable the other adapters in Device Manager. I had to disable internal bt adapter to make dongle works.

Thank you.

Please note that x.x.1051.xxxx is also for Windows 10 x64.
I've downloaded this one and it works:
https://catalog.s.download.windowsupdate.com/d/msdownload/update/driver/drvs/2024/04/c1f14a17-4aed-40ff-85cb-7710d0244f42_4433154fbd9a4a8173ee994d24ee7eb640714562.cab

The driver works with my BT dongle with PID 0BDA-A725 (USB\VID_0BDA&PID_A725&REV_0200)
I had to force the installation as you have mentioned).

image image

Side note: When a BT device is connected, AIDA64 is saying the radio is 5.1.

image

It's also the case with the previous driver, 1.9.1051.3004, (BT 5.3) that was installed by Windows Update.

image image

image

Is there any pro or cons to use the newer driver instead of the previous one ?

@davidldennison
Copy link

For those of you still having trouble on Windows. This Microsoft Store app is a great debugging and connection tool. Before I used this app, I couldn't get my iPhone to connect no matter what driver I used. After using this app to actually pair my phone, now it doesn't matter what driver I use - it works. Might for you too:

https://www.microsoft.com/store/productId/9N7DVKWXKQFC

@kurac338
Copy link

kurac338 commented Aug 23, 2024

Realtek Bluetooth 5.4 drivers available from Microsoft Update Catalog https://catalog.update.microsoft.com/Search.aspx?q=realtek%20bluetooth%205.4

it has to be installed manually by force because the vid/pid doesn't match.

Drivers name convention: x.x.1040.1xxx for Windows 8.1 x64 x.x.1040.4xxx for Windows 8.1 x86 x.x.1038.3xxx for Windows 10 x64 x.x.1038.2xxx for Windows 10 x86 x.x.1051.xxxx for Windows 11 x64

1.9.xxxx.xxxx version is for rtl8761 1.10 and 2.10 are for other rtl chips.

my orico bta-508 shows HCI 13.56789 / LMP 13.51041 Win10/x64

You can't use more than one Bluetooth adapter at a time on a Windows PC. If you want to use a specific adapter, disable the other adapters in Device Manager. I had to disable internal bt adapter to make dongle works.

@lexab65 could you please share your experience with the modified driver?

I am using the "Orico BTA-508", but by default Windows 11 installs and old relic version 1.6.1015.3018 for USB\VID_0BDA&PID_8771&REV_0200.

I've tried several alternative drivers for the RTL8761B chip, from the 1.9.1051.30xx releases, from ASUS, TP-Link, etc. Some don't install at all, while those that install, cannot find nor connect to previously connected devices. 🤷

Could you please send a an archive with the latest modified driver for it?

My main issue are BT connection drops when connected to a Sony DualShock 4 controller, using DS4Windows. The adapter is distanced from the PC with an USB 2.0 extension cord, however it did not help the sporadic behavior.

EDIT: using Windows 11, so I would appreciate a modified .cab or any archive (.zip, .7z, ...) to test with my adapter

@lexab65
Copy link

lexab65 commented Aug 23, 2024

@lexab65 could you please share your experience with the modified driver?

I am using the "Orico BTA-508", but by default Windows 11 installs and old relic version 1.6.1015.3018 for USB\VID_0BDA&PID_8771&REV_0200.

I've tried several alternative drivers for the RTL8761B chip, from the 1.9.1051.30xx releases, from ASUS, TP-Link, etc. Some don't install at all, while those that install, cannot find nor connect to previously connected devices. 🤷

Could you please send a an archive with the latest modified driver for it?

My main issue are BT connection drops when connected to a Sony DualShock 4 controller, using DS4Windows. The adapter is distanced from the PC with an USB 2.0 extension cord, however it did not help the sporadic behavior.

EDIT: using Windows 11, so I would appreciate a modified .cab or any archive (.zip, .7z, ...) to test with my adapter

no need to modify *.cab, just use manual driver update
Please search Google for the "install device drivers manually on Windows 11" for the screenshoot guide

  1. unpack/extract c1f14a17-4aed-40ff-85cb-7710d0244f42_4433154fbd9a4a8173ee994d24ee7eb640714562.cab file
  2. open "Device Manager", choose the "Bluetooth" -> your "Bluetooth adapter"
  3. Right-click on your "Bluetooth adapter", select "Update driver" in context menu
  4. click "Browse my computer for driver" and "Browse..." to the directory, there you extracted *.cab file
  5. Choose the "Realtek Bluetooth 5.4 adapter"
  6. reboot you computer
  7. Done

@kurac338
Copy link

kurac338 commented Aug 23, 2024 via email

@kurac338
Copy link

kurac338 commented Aug 24, 2024

I've tried this method, however it did not work. It is possible that it was due to the previous 1.6.xxxx... driver that I already had installed. I will try to uninstall all drivers, fallback to the generic MS one, and try to install this one manually.

On Fri, Aug 23, 2024, 20:24 lexab65 @.> wrote: @.* commented on this gist. ------------------------------ @lexab65 https://github.com/lexab65 could you please share your experience with the modified driver? I am using the "Orico BTA-508", but by default Windows 11 installs and old relic version 1.6.1015.3018 for USB\VID_0BDA&PID_8771&REV_0200. I've tried several alternative drivers for the RTL8761B chip, from the 1.9.1051.30xx releases, from ASUS, TP-Link, etc. Some don't install at all, while those that install, cannot find nor connect to previously connected devices. 🤷 Could you please send a an archive with the latest modified driver for it? My main issue are BT connection drops when connected to a Sony DualShock 4 controller, using DS4Windows. The adapter is distanced from the PC with an USB 2.0 extension cord, however it did not help the sporadic behavior. EDIT: using Windows 11, so I would appreciate a modified .cab or any archive (.zip, .7z, ...) to test with my adapter no need to modify *.cab, just use manual driver update Please search Google for the "install device drivers manually on Windows 11" for the screenshoot guide 1. unpack/extract c1f14a17-4aed-40ff-85cb-7710d0244f42_4433154fbd9a4a8173ee994d24ee7eb640714562.cab file 2. open "Device Manager", choose the "Bluetooth" -> your "Bluetooth adapter" 3. Right-click on your "Bluetooth adapter", select "Update driver" in context menu 4. click "Browse my computer for driver" and "Browse..." to the directory, there you extracted *.cab file 5. Choose the "Realtek Bluetooth 5.4 adapter" 6. reboot you computer 7. Done — Reply to this email directly, view it on GitHub https://gist.github.com/peteristhegreat/b48da772167f86f43decbd34edbd0849#gistcomment-5165322 or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZEQ4L2ERXSIRW4BZFJFZDZS546RBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTAMZVGAZTGOBYU52HE2LHM5SXFJTDOJSWC5DF . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

I've tried to do a complete clean install of all BT devices in Windows Device Manager, but the newer Realtek driver versions simply won't apply for the Orico BTA-508 adapter.

Even stranger, every single time Windows forces the 1.6.1015.3018 driver on every (re)install.
When trying to manually add the updated Realtek drivers, I can see their .inf is registered as oem202.inf and not applied to any devices, while the outdated Realtek one MS is forcing for me does not match that ID. The outdated v1.6 is registered as oem220.inf.

Screenshot attached:
image

EDIT: it seems I've figured it out. When browsing to the driver directory in the wizard, I had to use the "Have Disk" option, browse to the driver directory once more, and than it finally showed the device as a BT class 5.4 device. I was prompted that the driver was unsigned, bla bla, foo, yes install, and it worked. The adapter driver was finally updated to the latest version. Sorry for the post spam, but I was going crazy with it, and this debugging trail may help someone in the future.

@mooms06
Copy link

mooms06 commented Aug 24, 2024

The real question is: does the dongle actually have 5.4 features, or it's still a 5.0 with a newer driver ?

@kurac338
Copy link

kurac338 commented Aug 24, 2024

The real question is: does the dongle actually have 5.4 features, or it's still a 5.0 with a newer driver ?

Honestly not sure, I might be able to test it using some CLI tool, but I would need instructions.
The driver details report "HCI 13.56789 / LMP 13.51041", but whether this is actually true in the real world is TBD.
(In my case I don't really care, as long as the connection to my devices is stable now.)

EDIT: I can see that the second image in my previous post, after the update, failed to upload. I am reattaching it now 🤞
EDIT2: image upload failed again with "Access Denied", whatever. I think you get my point from text

@platima
Copy link

platima commented Sep 4, 2024

Thank you so very kindly! This saved me 10 fold!

@ValeZAA
Copy link

ValeZAA commented Oct 19, 2024

Got myself new 0bda:a728 device with true 5.4, driver 3013 installs automatically.

The driver works with my BT dongle with PID 0BDA-A725 (USB\VID_0BDA&PID_A725&REV_0200)
I had to force the installation as you have mentioned).

Did not have to. :)

@Buzbee
Copy link

Buzbee commented Oct 21, 2024

The drivers should install automatically for these 2 VID/PIDs:

VID_0BDA&PID_876F ; BT54
VID_0BDA&PID_A728

but should be able to be able to be installed manually for the other 79 VID/PIDs in the PidVid_List.dat file (open with hex editor) but probably not with 5.4 functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment