#26 Le 02/03/2022, à 12:41
- NicoApi73
Re : Impossible d'activer le bluetooth
Tu peux essayer d'appliquer ce que proposait xubu : https://askubuntu.com/questions/1370663 … 53#1371453, en commençant à l'étape 2, mais en modifiant la première commande comme suit :
cd linux-5.13/drivers/bluetooth
Step 2: Edit btusb.c
cd linux-5.13/drivers/bluetooth gedit btusb.c
add the following
/* Tp-Link UB500 */
{ USB_DEVICE(0x2357, 0x0604), .driver_info = BTUSB_REALTEK },Under the section "static const struct usb_device_id blacklist_table[]". After /* Silicon Wave based devices */.
Step 3: Edit hci_ldisc.c
(may not be needed for some versions of kernel)
Replace
static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file,
unsigned char __user *buf, size_t nr)to
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)Step 4: Compile modules
make -C /lib/modules/$(uname -r)/build M=$(pwd) clean cp /usr/src/linux-headers-$(uname -r)/.config ./ cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers make -C /lib/modules/$(uname -r)/build M=$(pwd) modules sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth
If you have secure boot, it's also needed to sign the module, search for "How to sign things for Secure Boot".
Step 5: Repalce the old module
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth
Step 6: Load new btusb
sudo modprobe -r btusb sudo modprobe -v btusb
Nous avons vu qu'en utilisant l'archive correspondant à ta version de kernel, ça compile.
Hors ligne