NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.09k stars 14.14k forks source link

Firmware for Realtek RTL8761BU bluetooth chip #178284

Closed Majiir closed 2 years ago

Majiir commented 2 years ago

RTL8761BU is a Realtek bluetooth chip.

When plugging in an Asus USB-BT500 bluetooth dongle on NixOS 22.05, the firmware is not found:

[   77.088183] usb 3-1: new full-speed USB device number 4 using uhci_hcd
[   77.388181] usb 3-1: New USB device found, idVendor=0b05, idProduct=190e, bcdDevice= 2.00
[   77.388185] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   77.388186] usb 3-1: Product: ASUS USB-BT500
[   77.388187] usb 3-1: Manufacturer: Realtek
[   77.388187] usb 3-1: SerialNumber: 00E04C239987
[   77.397433] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[   77.400525] Bluetooth: hci0: RTL: rom_version status=0 version=1
[   77.400527] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[   77.400544] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761bu_fw.bin failed with error -2
[   77.400546] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761bu_fw.bin not found

That error happens even with rtl8761b-firmware installed. The *b and *bu chips require different firmware.

Majiir commented 2 years ago

Nevermind - I had forgotten hardware.enableRedistributableFirmware = true; in my config. It works!