В августе 2022 командой разработки Home Assistant был анонсирован новый улучшенный модуль интеграции Bluetooth, теоретически позволяющий подключать Bluetooth устройства напрямую без MQTT брокера, однако работающий пока только с ограниченным списком Bluetooth свистков (ASUS USB-BT400, ASUS USB-BT500, Ugreen CM390 и т.д.).
Поддерживаемые адаптеры
- ASUS USB-BT400
- ASUS USB-BT500
- Avantree DG45
- Kinivo BTD-400
- Maxuni BT-50
- SUMEE BT501
- UGREEN CM390
- XDO BT802 (Long Range)
- ZEXMTE BT-505 (Long Range)
- ZEXMTE BT-DG54
Неподдерживаемые адаптеры
- tp-link UB400 — Frequent connection failures
- tp-link UB500 — Frequent connection failures
Мой безымянный Bluetooth 4 модуль не захотел определяться ассистентом, поэтому было принято решение заменить его на доступный в магазине UGREEN CM390. Естественно, драйвера по умолчанию не подтянулись, и команда hcitool scan упрямо сообщала, что устройств не найдено.
Значит, нужно установить драйвера вручную.
Для начала, при подключённом устройстве, выполним команду lsusb, и убедимся, что операционная система видит USB устройство:
Найдем драйвер для нашего устройства https://www.xmpow.com/pages/download
Скачиваем (Запасная копия в zip формате 20201202_LINUX_BT_DRIVER)
wget https://mpow.s3-us-west-1.amazonaws.com/mpow_BH519A_driver+for+Linux.7z
Распаковываем, заходим в директорию, куда распаковали, и собираем
sudo make install INTERFACE=all
Подключаем / переподключаем свисток в USB порт.
Обсуждение
Возможные проблемы и ошибки
ERROR: Module btusb is not currently loaded
Если вы запустили сборку и увидели следующую ошибку, значит драйвера Bluetooth у вас вообще не установлены, однако инсталлятор пытается их удалить перед тем, как ставить новые
make[1]: вход в каталог «/root/20201202_LINUX_BT_DRIVER/usb»
rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
mv /lib/modules/5.10.83-std-def-alt1/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.10.83-std-def-alt1/kernel/drivers/bluetooth/btusb_bak r
mmod rtk_btusb
rmmod: ERROR: Module rtk_btusb is not currently loaded
В папке с драйверами следует перейти в подпапку usb, открыть Makefile и закомментировать соответствующие строки после директивы install. Сохраните файл, вернитесь в корень папки с драйверами и запустите сборку заново.
make[3]: *** /lib/modules/4.19.0-22-amd64/build: Нет такого файла или каталога. Останов.
Если вы запустили сборку и увидели следующую ошибку, значит у вас нет заголовков под ядро 4.19 (или того номера, который будет у вас в тексте ошибки). Установите заголовки под ваше текущее ядро и попробуйте запустить сборку еще раз.
sudo apt install linux-headers-$(uname -r)
Ошибка функции hci_uart_init
Следующая ошибка сообщает о несовместимости типов в коде UART драйвера
/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver/hci_ldisc.o
/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver/hci_ldisc.c: In function ‘hci_uart_init’:
/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver/hci_ldisc.c:1149:22: error: assignment to ‘ssize_t (*)(struct tty_struct *, struct file *, unsigned char *, size_t, void **, long unsigned int)’ {aka ‘long int (*)(struct tty_struct *, struct file *, unsigned char *, long unsigned int, void **, long unsigned int)’} from incompatible pointer type ‘ssize_t (*)(struct tty_struct *, struct file *, unsigned char *, size_t)’ {aka ‘long int (*)(struct tty_struct *, struct file *, unsigned char *, long unsigned int)’} [-Werror=incompatible-pointer-types] 1149 | hci_uart_ldisc.read = hci_uart_tty_read;
Как советуют в обсуждении аналогичного драйвера, зайдите в файл hci_ldisc.c, расположеный в папке /20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver, найдите строки
static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file,
unsigned char __user *buf, size_t nr)
и замените их на
static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file,
unsigned char __user *buf, size_t nr,
void **cookie, unsigned long offset)
| Home Assistant, Ubuntu и Debian | Опубликовано: 05.09.2022 09:48 | 0
- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- Networking & Wireless
- [SOLVED] Bluetooth USB Adapter not working Ubuntu 20.04 LTS
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
I just see there was an error during the install:
stat f�r ‘/lib/modules/5.4.0-42-generic/kernel/drivers/bluetooth/btusb.ko
the file or directory was not found
and
rmmod: ERROR: Module rtk_btusb is not currently loaded
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
Originally Posted by bl75
I just see there was an error during the install:
stat f�r ‘/lib/modules/5.4.0-42-generic/kernel/drivers/bluetooth/btusb.ko
the file or directory was not found
and
rmmod: ERROR: Module rtk_btusb is not currently loaded
Not really. It was simply trying to remove conflicting modules, also known as drivers. None were loaded so none were unloaded.
What does this tell us?
Code:
lsusb sudo modprobe rtk_btusb && dmesg | grep rtk
«Oh, Ubuntu, you are my favorite Linux-based operating system» —Dr. Sheldon Cooper, Ph.D., Sc.D.
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
OK thanks. Now:
Code:
bl@eO-116-PC1-Ubuntu:~$ lsusb Bus 002 Device 002: ID 1058:2622 Western Digital Technologies, Inc. Elements SE 2622 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth Radio Bus 001 Device 002: ID 03f0:1a4a HP, Inc HP Wireless Slim Keyboard - Skylab EU Bus 001 Device 004: ID 1224:2a25 Jieli Technology USB PHY 2.0 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub bl@eO-116-PC1-Ubuntu:~$ sudo modprobe rtk_btusb && dmesg | grep rtk [sudo] Passwort f�r bl: modprobe: ERROR: could not insert 'rtk_btusb': Operation not permitted
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
modprobe: ERROR: could not insert ‘rtk_btusb’: Operation not permitted
Strange. It modprobes for me.
Is it already loaded?
I am quickly running low on useful ideas.
Is secure boot enabled or disabled in the BIOS/EFI? Try disabled.
«Oh, Ubuntu, you are my favorite Linux-based operating system» —Dr. Sheldon Cooper, Ph.D., Sc.D.
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
Secure boot was the problem.
Without disabling secure boot, lsmod | grep bt would just yield nothing. But now things work:
Code:
bl@eO-116-PC1-Ubuntu:~$ lsmod | grep bt rtk_btusb 61440 0 bluetooth 581632 54 bnep,rtk_btusb,rfcomm bl@eO-116-PC1-Ubuntu:~$
For those who might face a similar problem, here’s how you disable secure boot:
$ sudo apt install mokutil
$ sudo mokutil �disable-validationYou may not need the first command as it might already be installed on your system if secure boot is enabled. Reviewing the features of secure boot, which I installed without much inquiry when offered during install of Ubuntu 20, I do not think it is helpful. Ubuntu is imitating a Windows feature which I consider rather problematic and useless as Linux systems are far less affected by Viruses and other typical Windows issues. The main drawback of Linux is limited hardware compatibility, so why make things more complicated.When rebooting after this command, I was prompted in a blue screen to enter selected characters of the password that I set during Ubuntu install, and could then disable secure boot. From now on, the Bluetooth adapter is found and works properly.
Many thanks for the support!
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
Ubuntu is imitating a Windows feature which I consider rather problematic and useless
It isn’t really Ubuntu’s issue. I believe that Secure Boot is a feature (or a defect) in the BIOS/EFI of all modern computers. When you download Ubuntu and install it, it is already signed so that it installs without issue. It is only when you compile and install kernel modules from other sources that Secure Boot steps in to save you from yourself!
I think it is a bit helpful to prevent some malware and spyware from being installed by users who are unaware of the methods to avoid malware, etc.
Code:
depmod -a 5.4.0-42-generic
Please note that the driver is installed for your currently running kernel version only. Eventually, Update Manager will offer to install a newer kernel version, 5.4.0-43, for example. You will know this first, because you will be asked to reboot and, second, because, after the reboot, your bluetooth will no longer work! In that case, simple remove the device and do:
Code:
cd ~/20200610_LINUX_BT_DRIVER sudo make install INTERFACE=usb
Reinsert the device and you should be all set.
Thank you for posting the exact steps. I’m sure that the searchers will appreciate it.
I’m glad it’s working. Have fun!
«Oh, Ubuntu, you are my favorite Linux-based operating system» —Dr. Sheldon Cooper, Ph.D., Sc.D.
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
I managed to make it work in a different way, although probably it won’t work with secure boot.
I added 5.8.0 kernel with this guide:
https://www.how2shout.com/linux/inst…ntu-20-04-lts/
Then downloaded the package from MPOW:
https://mpow.s3-us-west-1.amazonaws….+for+Linux.tgz
Unpacked, copied and renamed the rtl8761b_fw and rtl8761b_config files inside /lib/firmware/rtl_bt, adding the «.bin» extension. Notice that these are the «b» version, supported in kernel 5.8.0 and used in BT 501. See the patch here:
https://patchwork.kernel.org/patch/11483367/And after a reboot it works! Hopefully Realtek publishes officially the firmware with the 5.8.0, although currently they did not answer the call from kernel developers. Hope for the best, but anyway this method works.
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
Hi,
I’ve encountered similar problem with this particular adapter.
Currently I’ve copied, and renamed the
rtl8761a_config file following instructions in this thread, and also rtk_btusb is loaded properly on my system. However, bluetooth is not working properly on my end.
The output of dmesg | tail :
Code:
dmesg | tail [ 2370.151683] usb 1-1: Manufacturer: Realtek [ 2370.151685] usb 1-1: SerialNumber: A09F10C04B1A [ 2370.153785] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 0 [ 2370.153788] rtk_btusb: btusb_probe can_wakeup 1, may wakeup 0 [ 2370.153789] rtk_btusb: patch_add [ 2370.153791] rtk_btusb: auto suspend is disabled [ 2370.153793] rtk_btusb: pid = 0x2550 [ 2370.153795] rtk_btusb: get_patch_entry =NULL, can not find device pid in patch_table [ 2370.153805] rtk_btusb: probe of 1-1:1.0 failed with error -1 [ 2370.154081] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 1
Output of sudo modprobe rtk_btusb && dmesg | grep rtk:
Code:
sudo modprobe rtk_btusb && dmesg | grep rtk [ 221.030926] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.897f3bb.20201202-173003 [ 221.030926] rtk_btcoex: rtk_btcoex_init: version: 1.2 [ 221.030926] rtk_btcoex: create workqueue [ 221.030952] rtk_btcoex: alloc buffers 1792, 2432 for ev and l2 [ 221.030965] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 0 [ 221.030965] rtk_btusb: btusb_probe can_wakeup 1, may wakeup 0 [ 221.030965] rtk_btusb: patch_add [ 221.030966] rtk_btusb: auto suspend is disabled [ 221.030966] rtk_btusb: pid = 0x2550 [ 221.030966] rtk_btusb: get_patch_entry =NULL, can not find device pid in patch_table [ 221.030968] rtk_btusb: probe of 1-1:1.0 failed with error -1 [ 221.030971] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 1 [ 221.030981] usbcore: registered new interface driver rtk_btusb [ 289.057396] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 0 [ 289.057399] rtk_btusb: btusb_probe can_wakeup 1, may wakeup 0 [ 289.057400] rtk_btusb: patch_add [ 289.057402] rtk_btusb: auto suspend is disabled [ 289.057403] rtk_btusb: pid = 0x2550 [ 289.057405] rtk_btusb: get_patch_entry =NULL, can not find device pid in patch_table [ 289.057415] rtk_btusb: probe of 1-1:1.0 failed with error -1 [ 289.057726] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 1 [ 748.193232] rtk_btusb: rtk_btusb: btusb_exit [ 748.193233] usbcore: deregistering interface driver rtk_btusb [ 748.193256] rtk_btcoex: rtk_btcoex_exit: destroy workqueue [ 1121.977548] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.897f3bb.20201202-173003 [ 1121.977549] rtk_btcoex: rtk_btcoex_init: version: 1.2 [ 1121.977550] rtk_btcoex: create workqueue [ 1121.977579] rtk_btcoex: alloc buffers 1792, 2432 for ev and l2 [ 1121.977595] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 0 [ 1121.977595] rtk_btusb: btusb_probe can_wakeup 1, may wakeup 0 [ 1121.977595] rtk_btusb: patch_add [ 1121.977596] rtk_btusb: auto suspend is disabled [ 1121.977596] rtk_btusb: pid = 0x2550 [ 1121.977596] rtk_btusb: get_patch_entry =NULL, can not find device pid in patch_table [ 1121.977599] rtk_btusb: probe of 1-1:1.0 failed with error -1 [ 1121.977602] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 1 [ 1121.977624] usbcore: registered new interface driver rtk_btusb [ 1280.653855] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 0 [ 1280.653858] rtk_btusb: btusb_probe can_wakeup 1, may wakeup 0 [ 1280.653859] rtk_btusb: patch_add [ 1280.653861] rtk_btusb: auto suspend is disabled [ 1280.653862] rtk_btusb: pid = 0x2550 [ 1280.653864] rtk_btusb: get_patch_entry =NULL, can not find device pid in patch_table [ 1280.653874] rtk_btusb: probe of 1-1:1.0 failed with error -1 [ 1280.654158] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 1 [ 1965.395564] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 0 [ 1965.395567] rtk_btusb: btusb_probe can_wakeup 1, may wakeup 0 [ 1965.395569] rtk_btusb: patch_add [ 1965.395570] rtk_btusb: auto suspend is disabled [ 1965.395572] rtk_btusb: pid = 0x2550 [ 1965.395574] rtk_btusb: get_patch_entry =NULL, can not find device pid in patch_table [ 1965.395583] rtk_btusb: probe of 1-1:1.0 failed with error -1 [ 1965.395877] rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber 1
I have tried all the steps mentioned in this post, and I am running out of ideas. Any help is highly appreciated.
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
I have the same MPOW adaptor (BH519A) with Realtek chipset RTL8761BU. My kernel version is 5.11 on ubuntu 20.04. Exhausted every solution I can find on the internet and only the one posted by @meavydev (link) worked.
To be precise,
1. Go to the downloaded linux driver folder (20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver)
2. edit rtk_misc.c.
3. Look for the code block: static patch_info fw_patch_table[]
4. Add the line: {0x2550, 0x8761, «mp_rtl8761b_fw», «rtl8761bu_fw», «rtl8761b_config», NULL, 0}, /* RTL8761BU only */
5. Save and close the file.
6. Run sudo make install INTERFACE=usb from 20201202_LINUX_BT_DRIVER/usb.
7. hciconfig will now show the device and bluetooth works as intended after that.
-
Re: Bluetooth USB Adapter not working Ubuntu 20.04 LTS
I tried to use the adapter on a different computer, with a fresh install of Ubuntu 20.04.03. LTS 64 bit
I copied the driver files and executed the steps as described above. However, this time I cannot execute the make install command. It claims «make» and «sudo» that commands are not found.
Have commands changed, do I need to unblock make or install, or is there something wrong with my saved driver file?
Code:
bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~$ sudo cp 20200610_LINUX_BT_DRIVER/rtkbt-firmware/lib/firmware/rtlbt/rtl8761a_config /lib/firmware/rtl_bt [sudo] Passwort f�r bl: bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~$ sudo mv /lib/firmware/rtl_bt/rtl8761a_config /lib/firmware/rtl_bt/rtl8761a_config.bin bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~$ dmesg | grep -i blue [ 1.612061] usb 1-1: Product: Bluetooth Radio [ 13.620639] Bluetooth: Core ver 2.22 [ 13.620654] Bluetooth: HCI device and connection manager initialized [ 13.620657] Bluetooth: HCI socket layer initialized [ 13.620659] Bluetooth: L2CAP socket layer initialized [ 13.620661] Bluetooth: SCO socket layer initialized [ 14.341190] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761 [ 14.342172] Bluetooth: hci0: RTL: rom_version status=0 version=1 [ 14.342175] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761b_fw.bin [ 14.659461] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2 [ 14.659467] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found [ 27.235443] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 27.235448] Bluetooth: BNEP filters: protocol multicast [ 27.235452] Bluetooth: BNEP socket layer initialized [ 490.544292] usb 1-4: Product: Bluetooth Radio [ 490.548110] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761 [ 490.550810] Bluetooth: hci0: RTL: rom_version status=0 version=1 [ 490.550815] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761b_fw.bin [ 490.550832] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2 [ 490.550836] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found [ 748.252269] usb 1-4: Product: Bluetooth Radio [ 748.256161] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761 [ 748.257160] Bluetooth: hci0: RTL: rom_version status=0 version=1 [ 748.257166] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761b_fw.bin [ 748.257198] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2 [ 748.257203] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found [ 1379.496098] usb 1-4: Product: Bluetooth Radio [ 1379.499877] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761 [ 1379.500678] Bluetooth: hci0: RTL: rom_version status=0 version=1 [ 1379.500685] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761b_fw.bin [ 1379.500723] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2 [ 1379.500729] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~$ ls /lib/firmware/rtl_bt rtl8192ee_fw.bin rtl8761a_config.bin rtl8822cs_config.bin rtl8192eu_fw.bin rtl8761a_fw.bin rtl8822cs_fw.bin rtl8723a_fw.bin rtl8812ae_fw.bin rtl8822cu_config.bin rtl8723b_fw.bin rtl8821a_fw.bin rtl8822cu_fw.bin rtl8723bs_config-OBDA8723.bin rtl8821c_config.bin rtl8852au_config.bin rtl8723bs_fw.bin rtl8821c_fw.bin rtl8852au_fw.bin rtl8723d_config.bin rtl8822b_config.bin rtl8723d_fw.bin rtl8822b_fw.bin bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~$ sudo blueman-manager blueman-manager version 2.1.2 starting blueman-manager 17.11.20 ERROR Manager:118 on_dbus_name_appeared: Default adapter not found, trying first available. blueman-manager 17.11.20 ERROR Manager:122 on_dbus_name_appeared: No adapter(s) found, exiting bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~$ cd ~/20200610_LINUX_BT_DRIVER bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~/20200610_LINUX_BT_DRIVER$ sudo make install INTERFACE=usb sudo: make: Befehl nicht gefunden bl@bl-LDS-HP-EliteDesk-800-G2-SFF:~/20200610_LINUX_BT_DRIVER$
Bookmarks
Bookmarks
Posting Permissions
Hello,
Bluetooth driver installation on Linux Mint 17 with 4.8 Kernel is giving this error:
$ sudo make install -s
rmmod: ERROR: Module rtk_btusb is not currently loaded
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c: In function ‘btusb_intr_complete’:
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:143:7: error: implicit declaration of function ‘hci_recv_fragment’ [-Werror=implicit-function-declaration]
if (hci_recv_fragment(hdev, HCI_EVENT_PKT,
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c: In function ‘btusb_close’:
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:567:18: error: ‘NUM_REASSEMBLY’ undeclared (first use in this function)
for (i = 0; i < NUM_REASSEMBLY; i++)
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:567:18: note: each undeclared identifier is reported only once for each function it appears in
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:569:10: error: ‘struct hci_dev’ has no member named ‘reassembly’
if(hdev->reassembly[i])
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:571:18: error: ‘struct hci_dev’ has no member named ‘reassembly’
kfree_skb(hdev->reassembly[i]);
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:572:8: error: ‘struct hci_dev’ has no member named ‘reassembly’
hdev->reassembly[i] = NULL;
^
In file included from ./include/linux/printk.h:6:0,
from ./include/linux/kernel.h:13,
from /home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:22:
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c: In function ‘rtk_parse_config_file’:
./include/linux/kern_levels.h:4:18: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
#define KERN_SOH «01» /* ASCII Start Of Header /
^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
#define KERN_ERR KERN_SOH «3» / error conditions */
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:43:39: note: in expansion of macro ‘KERN_ERR’
#define RTKBT_ERR(fmt, arg…) printk(KERN_ERR «rtk_btusb: » fmt «n» , ## arg)
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:1679:9: note: in expansion of macro ‘RTKBT_ERR’
RTKBT_ERR(«config len(%x) is not right(%x)», config_len, *filelen-sizeof(struct rtk_bt_vendor_config));
^
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c: At top level:
/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.c:2255:6: warning: ‘print_event’ defined but not used [-Wunused-function]
void print_event(struct sk_buff *skb)
^
cc1: some warnings being treated as errors
scripts/Makefile.build:295: recipe for target ‘/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.o’ failed
make[3]: *** [/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver/rtk_btusb.o] Error 1
Makefile:1491: recipe for target ‘module/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver’ failed
make[2]: *** [module/home/sencer/Downloads/Linux_BT_USB_2.11.20140423_8723BE/blutooth_usb_driver] Error 2
Makefile:10: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
Makefile:13: recipe for target ‘install’ failed
make: *** [install] Error 2
0
1
Здравствуйте!
Достаточно давно пользуюсь Linux Mint у меня ультрабук Aser Swift 3 (SF314-56-30PY) всё работало из коробки. Была OS Linux Mint 20.1 х64 всё работало но после переустановки системы на Linux Mint 20.2 bluettooth стал неадекватен самое интересное при возврате к 20.1 всё абсолютно тоже самое и на других дистрибутивах (Debian, Ubunta) тоже.
Система на моё железо можно посмотреть здесь: linux-hardware.org
inxi -Fxz
System: Kernel: 5.4.0-91-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.7 Distro: Linux Mint 20.2 Uma
base: Ubuntu 20.04 focal
Machine: Type: Laptop System: Acer product: SF314-56-30PY v: V1.14 serial: <filter>
Mobo: WL model: Strongbow_WL v: V1.14 serial: <filter> UEFI: Insyde v: 1.14 date: 08/12/2019
Battery: ID-1: BAT0 charge: 39.5 Wh condition: 39.5/47.8 Wh (83%) model: LGC KT0030G020 AP18C8K status: Not charging
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M275/M280 charge: 55% (should be ignored)
status: Discharging
CPU: Topology: Dual Core model: Intel Core i3-8145U bits: 64 type: MT MCP arch: Kaby Lake rev: B L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18399
Speed: 800 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 795 2: 786 3: 799 4: 789
Graphics: Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915 v: kernel bus ID: 00:02.0
Display: server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.0.3 direct render: Yes
Audio: Device-1: Intel Cannon Point-LP High Definition Audio vendor: Acer Incorporated ALI driver: sof-audio-pci
bus ID: 00:1f.3
Sound Server: ALSA v: k5.4.0-91-generic
Network: Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3
IF: wlp0s20f3 state: up mac: <filter>
Drives: Local Storage: total: 2.05 TiB used: 197.46 GiB (9.4%)
ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM256GDJTNG-8310A size: 238.47 GiB
ID-2: /dev/sda type: USB vendor: Western Digital model: WD Elements 2620 size: 1.82 TiB
Partition: ID-1: / size: 233.24 GiB used: 13.39 GiB (5.7%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 44.0 C mobo: 30.0 C
Fan Speeds (RPM): N/A
Info: Processes: 240 Uptime: 4h 55m Memory: 7.63 GiB used: 2.39 GiB (31.3%) Init: systemd runlevel: 5 Compilers:
gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38
Статус bluetooth после загрузки системы:
● bluetooth.service - Bluetooth servicehttps://linux-hardware.org/?probe=cb3688489dhttps://linux-hardware.org/?probe=cb3688489d
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
Пытаемся удалить модуль:
root@mint:/home/mint/Загрузки# rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
Загружаем модуль
modprobe btusb
Все проходит хорошо и статус bluetooth Active
root@laplin:/home/vvs/Загрузки# systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-12-06 17:15:14 MSK; 37s ago
Docs: man:bluetoothd(8)
Main PID: 30381 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9264)
Memory: 2.1M
CGroup: /system.slice/bluetooth.service
└─30381 /usr/lib/bluetooth/bluetoothd
дек 06 17:15:14 laplin systemd[1]: Starting Bluetooth service...
дек 06 17:15:14 laplin bluetoothd[30381]: Bluetooth daemon 5.53
дек 06 17:15:14 laplin systemd[1]: Started Bluetooth service.
дек 06 17:15:14 laplin bluetoothd[30381]: Starting SDP server
дек 06 17:15:14 laplin bluetoothd[30381]: Bluetooth management interface 1.14 initialized
Но дальше не легче запускаем менеджер:
root@mint:/home/mint/Загрузки# bt-adapter -i
**
ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))
Bail out! ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))
Аварийный останов (стек памяти сброшен на диск)
root@laplin:/home/vvs# bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]# devices
No default controller available
Всё висит на этом Cannon Point-LP CNVi [Wireless-AC] железка называется так Intel Bluetooth Driver (AX201).
Руки опускаются хоть решений в инете не нашёл. Буду рад любым мыслям и помощи. Заранее спасибо.
I’m trying to get a Bluetooth 5 USB doogle working (MPOW BH456A). I’ve downloaded the latest version of the Linux driver from Mpow website and I’ve tried using the automated installation by running sudo make install INTERFACE=all
. This fails with the following errors:
rmmod btusb
mv /lib/modules/5.10.22-100.fc32.x86_64/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.10.22-100.fc32.x86_64/kernel/drivers/bluetooth/btusb_bak
mv: cannot stat '/lib/modules/5.10.22-100.fc32.x86_64/kernel/drivers/bluetooth/btusb.ko': No such file or directory
make: [Makefile:8: install] Error 1 (ignored)
rmmod rtk_btusb
rmmod: ERROR: Module rtk_btusb is not currently loaded
make: [Makefile:9: install] Error 1 (ignored)
make -C ./bluetooth_usb_driver
make[1]: Entering directory '/home/jason/Desktop/mpow driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'
make -C /lib/modules/5.10.22-100.fc32.x86_64/build M=/home/jason/Desktop/mpow driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver modules
make[2]: Entering directory '/usr/src/kernels/5.10.22-100.fc32.x86_64'
make[2]: *** No rule to make target 'driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'. Stop.
make[2]: Leaving directory '/usr/src/kernels/5.10.22-100.fc32.x86_64'
make[1]: *** [Makefile:10: all] Error 2
make[1]: Leaving directory '/home/jason/Desktop/mpow driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'
make: *** [Makefile:10: install] Error 2
I’m on the KDE spin of Fedora 32.
Output from dmesg | grep bt
:
[ 8.518603] usbcore: registered new interface driver btusb
[ 8.526797] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761b_fw.bin
[ 8.530001] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2
[ 8.530007] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found
[ 1044.227505] usbcore: deregistering interface driver btusb
Output from lsusb | grep -i blue
:
Bus 008 Device 002: ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth Radio
Output from uname -r
:
5.10.22-100.fc32.x86_64
Here are the instruction for manual installation of the bluetooth drivers from MPOW which I’m trying to follow:
-Installation
1. Build and install USB driver, change to the driver directory
$ cd usb
$ sudo make install
2. Copy the right FW file and config file to the correct path.
$ sudo cp rtkbt-firmware/lib/firmware/rtl8xxxxx_fw /lib/firmware/
$ sudo cp rtkbt-firmware/lib/firmware/rtl8xxxxx_config /lib/firmware/
NOTE: PLEASE REFER THE FORWARD SECTION OF FILENAME LIST TO CORRESPOND THE FW FILENAME AND THE CONFIG FILENAME WITH THE CHIP.
3. Insert Realtek Bluetooth dongle
Check LMP subversion by the following command
$ hciconfig -a
Now RTK chip can be recognized by the system and bluetooth function can be used.
Здравствуйте!
ОС ALT 9.2 x64 KDE 5.70 Ядро 5.10.61
Купил я модный 5.0 блюпуп на чипе RTL8761BUV от компании Ugreen модель CM390. Воткнул в USB — ОС в трее где часы в разделе Bluetooth пишет «Нет доступных адаптеров». Зашел в терминал, подумал, может не рабочий адаптер, проверяю:
# lsusb
Bus 001 Device 005: ID 0bda:8771 Realtek Semiconductor Corp.
# lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 2: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
# rfkill
ID TYPE DEVICE SOFT HARD
1 bluetooth hci0 unblo
# hciconfig
hci0: Type: Primary Bus: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:21 acl:0 sco:0 events:2 errors:0
TX bytes:6 acl:0 sco:0 commands:2 errors:0
#hciconfig hci0 up
Can’t init device hci0: No such file or directory (2)
Как заставить адаптер работать ? И почему он DOWN ? Как его апнуть?
« Последнее редактирование: 13.12.2021 13:38:42 от iLya_Sereda »
Записан
Здесь тоже был DOWN, скачали прошивку (фирмварь). Насколько понял, помогло копирование из архива /20201202_LINUX_BT_DRIVER/rtkbt-firmware/lib/firmware в /lib/firmware файлов с rtl8761 в имени.
Записан
Спасибо за ссылку, но в Альте не заработало. Пробовал руками файлы добавить и по инструкции установить с помощью команды make — вываливает ошибку:
# sudo make install
mkdir -p /lib/modules/5.10.61-un-def-alt1/kernel/drivers/bluetooth
rmmod hci_uart
rmmod: ERROR: Module hci_uart is not currently loaded
make: [Makefile:10: install] Ошибка 1 (игнорирование)
make -C bluetooth_uart_driver
make[1]: вход в каталог «/home/sereda/Загрузки/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver»
make -C /lib/modules/5.10.61-un-def-alt1/build M=/home/sereda/Загрузки/20201202_LINUX_BT_DRIVER/uart/bl
make[2]: вход в каталог «/home/sereda/Загрузки/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver»
make[2]: *** /lib/modules/5.10.61-un-def-alt1/build: Нет такого файла или каталога. Останов.
make[2]: выход из каталога «/home/sereda/Загрузки/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver»
make[1]: *** [Makefile:12: all] Ошибка 2
make[1]: выход из каталога «/home/sereda/Загрузки/20201202_LINUX_BT_DRIVER/uart/bluetooth_uart_driver»
make: *** [Makefile:11: install] Ошибка 2
Записан
Прошу прощения, вчера не посмотрел как следует, что по ссылке у модели литера A, а у Вашего адаптера B (следующая U означает подключение по USB, а не uart). Его поддержку добавили в ядре 5.12. В Альте есть 5.15, но в Сизифе и 10й версии. Вероятно, можно скачать пакеты и установить вручную, но я не проверял.
Что бы собрать модули ядра, требуются пакеты с заголовочными файлами и инструментами, которые подтянутся по зависимостям:
apt-get install kernel-headers-modules-std-def
в Вашем случае ядро un-def, значит надо kernel-headers-un-def
Следует учесть, что актуальная на момент написания сообщения версия un-def-5.10.83, то есть придётся обновить ядро с 5.10.61
apt-get update
перезапуск нужен, поскольку в Makefile используется uname -r для определения текущего ядра и под него же собирает.
update-kernel
apt-get install kernel-headers-un-def
reboot
Далее у меня получилось (с INTERFACE=usb, что бы не собирать лишнее)
[root@zt 20201202_LINUX_BT_DRIVER]# make install INTERFACE=usb
sudo уже сами добавите, где надо.
mkdir -p /lib/modules/5.10.83-std-def-alt1/kernel/drivers/bluetooth
Start Realtek Bluetooth USB driver installation
mkdir -p /lib/firmware
Copy rtkbt-firmware/lib/firmware/rtl*_fw to /lib/firmware
cp -a rtkbt-firmware/lib/firmware/rtl*_fw /lib/firmware
Copy rtkbt-firmware/lib/firmware/rtl*_config /lib/firmware
cp -a rtkbt-firmware/lib/firmware/rtl*_config /lib/firmware
make -C usb install
make[1]: вход в каталог «/root/20201202_LINUX_BT_DRIVER/usb»
rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
make[1]: [Makefile:7: install] Ошибка 1 (игнорирование)
mv /lib/modules/5.10.83-std-def-alt1/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.10.83-std-def-alt1/kernel/drivers/bluetooth/btusb_bak
rmmod rtk_btusb
rmmod: ERROR: Module rtk_btusb is not currently loaded
make[1]: [Makefile:9: install] Ошибка 1 (игнорирование)
make -C ./bluetooth_usb_driver
make[2]: вход в каталог «/root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver»
make -C /lib/modules/5.10.83-std-def-alt1/build M=/root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver modules
make[3]: вход в каталог «/usr/src/linux-5.10.83-std-def-alt1»
CC [M] /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/rtk_coex.o
CC [M] /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/rtk_misc.o
CC [M] /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/rtk_bt.o
LD [M] /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.o
MODPOST /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/Module.symvers
CC [M] /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.mod.o
LD [M] /root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.ko
make[3]: выход из каталога «/usr/src/linux-5.10.83-std-def-alt1»
make[2]: выход из каталога «/root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver»
cp -f ./bluetooth_usb_driver/rtk_btusb.ko /lib/modules/5.10.83-std-def-alt1/kernel/drivers/bluetooth/rtk_btusb.ko
depmod -a 5.10.83-std-def-alt1
make -C ./bluetooth_usb_driver clean
make[2]: вход в каталог «/root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver»
rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a
make[2]: выход из каталога «/root/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver»
echo "install rtk_btusb success!"
install rtk_btusb success!
make[1]: выход из каталога «/root/20201202_LINUX_BT_DRIVER/usb»
[root@zt 20201202_LINUX_BT_DRIVER]#
Ну и при обновлении ядра придётся собирать опять.
Записан
Если драйвер соберётся и установится, сообщения от него можно посмотреть dmesg | grep Bluetooth
Следующие два файла ему нужны в /lib/firmware, если я опять ничего не пропустил:
rtl_bt/rtl8761b_fw.bin
rtl_bt/rtl8761b_config
При установке драйвера должны скопироваться. Если их не будет, в журнале сообщит.
« Последнее редактирование: 09.12.2021 14:49:00 от trs »
Записан
Всё работает. Спасибо за помощь!
Записан
Здравствуйте!
Достаточно давно пользуюсь Linux Mint у меня ультрабук Aser Swift 3 (SF314-56-30PY) всё работало из коробки. Была OS Linux Mint 20.1 х64 всё работало но после переустановки системы на Linux Mint 20.2 bluettooth стал неадекватен самое интересное при возврате к 20.1 всё абсолютно тоже самое и на других дистрибутивах (Debian, Ubunta) тоже.
Система можно посмотреть
https://linux-hardware.org/?probe=cb3688489d
inxi -Fxz
System: Kernel: 5.4.0-91-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.7 Distro: Linux Mint 20.2 Uma
base: Ubuntu 20.04 focal
Machine: Type: Laptop System: Acer product: SF314-56-30PY v: V1.14 serial: <filter>
Mobo: WL model: Strongbow_WL v: V1.14 serial: <filter> UEFI: Insyde v: 1.14 date: 08/12/2019
Battery: ID-1: BAT0 charge: 39.5 Wh condition: 39.5/47.8 Wh (83%) model: LGC KT0030G020 AP18C8K status: Not charging
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M275/M280 charge: 55% (should be ignored)
status: Discharging
CPU: Topology: Dual Core model: Intel Core i3-8145U bits: 64 type: MT MCP arch: Kaby Lake rev: B L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18399
Speed: 800 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 795 2: 786 3: 799 4: 789
Graphics: Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915 v: kernel bus ID: 00:02.0
Display: server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa resolution: 1920×1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.0.3 direct render: Yes
Audio: Device-1: Intel Cannon Point-LP High Definition Audio vendor: Acer Incorporated ALI driver: sof-audio-pci
bus ID: 00:1f.3
Sound Server: ALSA v: k5.4.0-91-generic
Network: Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3
IF: wlp0s20f3 state: up mac: <filter>
Drives: Local Storage: total: 2.05 TiB used: 197.46 GiB (9.4%)
ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM256GDJTNG-8310A size: 238.47 GiB
ID-2: /dev/sda type: USB vendor: Western Digital model: WD Elements 2620 size: 1.82 TiB
Partition: ID-1: / size: 233.24 GiB used: 13.39 GiB (5.7%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 44.0 C mobo: 30.0 C
Fan Speeds (RPM): N/A
Info: Processes: 240 Uptime: 4h 55m Memory: 7.63 GiB used: 2.39 GiB (31.3%) Init: systemd runlevel: 5 Compilers:
gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38
Статус bluetooth после загрузки системы:
root@mint:/home/mint/Загрузки# systemctl status bluetooth.service
● bluetooth.service — Bluetooth servicehttps://linux-hardware.org/?probe=cb3688489dhttps://linux-hardware.org/?probe=cb3688489d
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
Пытаемся удалить модуль:
root@mint:/home/mint/Загрузки# rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
Загружаем модуль
modprobe btusb
Все проходит хорошо и статус bluetooth Active
root@mint:/home/mint/Загрузки# service bluetooth restart
root@laplin:/home/vvs/Загрузки# systemctl status bluetooth.service
● bluetooth.service — Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-12-06 17:15:14 MSK; 37s ago
Docs: man:bluetoothd(8)
Main PID: 30381 (bluetoothd)
Status: «Running»
Tasks: 1 (limit: 9264)
Memory: 2.1M
CGroup: /system.slice/bluetooth.service
└─30381 /usr/lib/bluetooth/bluetoothd
дек 06 17:15:14 llin systemd[1]: Starting Bluetooth service…
дек 06 17:15:14 llin bluetoothd[30381]: Bluetooth daemon 5.53
дек 06 17:15:14 llin systemd[1]: Started Bluetooth service.
дек 06 17:15:14 llin bluetoothd[30381]: Starting SDP server
дек 06 17:15:14 llin bluetoothd[30381]: Bluetooth management interface 1.14 initialized
Но дальше не легче запускаем менеджер:
root@mint:/home/mint/Загрузки# bt-adapter -i
**
ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))
Bail out! ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))
Аварийный останов (стек памяти сброшен на диск)
root@laplin:/home/vvs# bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]# devices
No default controller available
Всё висит на этом Cannon Point-LP CNVi [Wireless-AC] железка называется так Intel Bluetooth Driver (AX201).
Руки опускаются решений в инете не нашёл. Буду рад любым мыслям и помощи. Заранее спасибо
Последний раз редактировалось пользователем 3 safon; всего редактировалось раз: 7