home assistant蓝牙设备报错:
FN-LINK TECHNOLOGY LIMITED None (D4:D2:D6:DD:C6:38)
没有设备或实体
设置失败,将重试: hci0 (D4:D2:D6:DD:C6:38): hci0 (D4:D2:D6:DD:C6:38): Failed to start Bluetooth: [org.freedesktop.DBus.Error.ServiceUnknown] The name org.bluez was not provided by any .service files; Try power cycling the Bluetooth hardware.
docker compose yml配置:
volumes:
- ./HomeAssistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
network_mode: host
dmesg日志:
$ sudo dmesg | grep -i bluetooth
[ 6.266939] usb 1-4: Product: Bluetooth Radio
[ 11.260352] Bluetooth: Core ver 2.22
[ 11.260415] NET: Registered PF_BLUETOOTH protocol family
[ 11.260418] Bluetooth: HCI device and connection manager initialized
[ 11.260426] Bluetooth: HCI socket layer initialized
[ 11.260430] Bluetooth: L2CAP socket layer initialized
[ 11.260438] Bluetooth: SCO socket layer initialized
[ 11.319569] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 11.320536] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 11.320542] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 11.322702] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 11.322928] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 11.786563] Bluetooth: hci0: RTL: fw version 0x75b8f098
[37847.946718] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[37847.947666] Bluetooth: hci0: RTL: rom_version status=0 version=1
[37847.947672] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[37847.947837] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[37847.947885] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[37848.410677] Bluetooth: hci0: RTL: fw version 0x75b8f098
目前飞牛内置的蓝牙驱动文件:
$ ll /usr/lib/firmware/rtl_bt
总计 1004
drwxr-xr-x 2 root root 4096 2024年 9月24日 .
drwxr-xr-x 21 root root 12288 6月 7日 12:49 ..
-rw-r--r-- 1 root root 38764 2023年 5月 2日 rtl8192ee_fw.bin
-rw-r--r-- 1 root root 37904 2023年 5月 2日 rtl8192eu_fw.bin
-rw-r--r-- 1 root root 24548 2023年 5月 2日 rtl8723a_fw.bin
-rw-r--r-- 1 root root 45048 2023年 5月 2日 rtl8723b_fw.bin
lrwxrwxrwx 1 root root 29 2023年 5月 2日 rtl8723bs_config-OBDA0623.bin -> rtl8723bs_config-OBDA8723.bin
-rw-r--r-- 1 root root 64 2023年 5月 2日 rtl8723bs_config-OBDA8723.bin
-rw-r--r-- 1 root root 52116 2023年 5月 2日 rtl8723bs_fw.bin
-rw-r--r-- 1 root root 10 2023年 5月 2日 rtl8723d_config.bin
-rw-r--r-- 1 root root 52080 2023年 5月 2日 rtl8723d_fw.bin
-rw-r--r-- 1 root root 74488 2023年 5月 2日 rtl8761a_fw.bin
-rw-r--r-- 1 root root 25 2023年 5月 2日 rtl8761b_config.bin
-rw-r--r-- 1 root root 44204 2023年 5月 2日 rtl8761b_fw.bin
-rw-r--r-- 1 root root 6 2023年 5月 2日 rtl8761bu_config.bin
-rw-r--r-- 1 root root 42088 2023年 5月 2日 rtl8761bu_fw.bin
-rw-r--r-- 1 root root 40520 2023年 5月 2日 rtl8812ae_fw.bin
lrwxrwxrwx 1 root root 19 2023年 5月 2日 rtl8821a_config.bin -> rtl8821c_config.bin
-rw-r--r-- 1 root root 37420 2023年 5月 2日 rtl8821a_fw.bin
-rw-r--r-- 1 root root 10 2023年 5月 2日 rtl8821c_config.bin
-rw-r--r-- 1 root root 54636 2023年 5月 2日 rtl8821c_fw.bin
-rw-r--r-- 1 root root 14 2023年 5月 2日 rtl8822b_config.bin
-rw-r--r-- 1 root root 51176 2023年 5月 2日 rtl8822b_fw.bin
-rw-r--r-- 1 root root 33 2023年 5月 2日 rtl8822cs_config.bin
-rw-r--r-- 1 root root 62040 2023年 5月 2日 rtl8822cs_fw.bin
-rw-r--r-- 1 root root 6 2023年 5月 2日 rtl8822cu_config.bin
-rw-r--r-- 1 root root 59332 2023年 5月 2日 rtl8822cu_fw.bin
-rw-r--r-- 1 root root 6 2023年 5月 2日 rtl8852au_config.bin
-rw-r--r-- 1 root root 49844 2023年 5月 2日 rtl8852au_fw.bin
-rw-r--r-- 1 root root 6 2023年 5月 2日 rtl8852bu_config.bin
-rw-r--r-- 1 root root 55276 2023年 5月 2日 rtl8852bu_fw.bin
-rw-r--r-- 1 root root 6 2023年 5月 2日 rtl8852cu_config.bin
-rw-r--r-- 1 root root 106960 2023年 5月 2日 rtl8852cu_fw.bin
能看出很明显是有8821c的驱动,但实际无法驱动我笔记本的8821蓝牙芯片,home assistant加载蓝牙设备失败。
希望可以修复一下此问题。