65 votes

Ubuntu 20.04 bluetooth ne fonctionne pas

J'ai installé Ubuntu 20.04 et le bluetooth ne fonctionne pas pour moi. Mais il fonctionne dans une session live si je démarre à partir d'une clé USB. Quelqu'un peut-il m'aider ?

systemctl | grep -i blue sortie :

  sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d14-1\x2d14:1.0-bluetooth-hci0.device        loaded active     plugged   /sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0     
  sys-subsystem-bluetooth-devices-hci0.device                                               loaded active     plugged   /sys/subsystem/bluetooth/devices/hci0                                      
  bluetooth.service                                                                         loaded active     running   Bluetooth service                                                          
  bluetooth.target                                                                          loaded active     active    Bluetooth    

dmesg | grep -i blue sortie :

[    2.309059] Bluetooth: Core ver 2.22
[    2.309071] Bluetooth: HCI device and connection manager initialized
[    2.309073] Bluetooth: HCI socket layer initialized
[    2.309074] Bluetooth: L2CAP socket layer initialized
[    2.309076] Bluetooth: SCO socket layer initialized
[    3.413708] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.413710] Bluetooth: BNEP filters: protocol multicast
[    3.413713] Bluetooth: BNEP socket layer initialized
[    4.342171] Bluetooth: hci0: command 0xfc05 tx timeout
[    4.342173] Bluetooth: hci0: Reading Intel version information failed (-110)
[  193.048690] Bluetooth: hci0: command 0xfc05 tx timeout
[  193.048749] Bluetooth: hci0: Reading Intel version information failed (-110)

lspci sortie :

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Phison Electronics Corporation Device 5008 (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
04:00.0 Unassigned class [ff00]: Alcor Micro AU6625 PCI-E Flash card reader controller

lspci -k -s 00:14.3 sortie :

00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
    DeviceName: WLAN
    Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi

bluetoothctl :

[bluetooth]# list
[bluetooth]# power on
No default controller available

rfkill list all sortie :

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

lsusb sortie :

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04f2:b627 Chicony Electronics Co., Ltd HP Wide Vision HD Camera
Bus 001 Device 003: ID 8087:0aaa Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

89voto

Usama Baig Points 101

J'ai rencontré le même problème, après un démarrage à chaud de Windows à Ubuntu, le Bluetooth ne fonctionnait pas. J'ai suivi le rapport de bug d'Ubuntu aquí et le Bluetooth fonctionne parfaitement. Utilisez les commandes suivantes :

  1. sudo rmmod btusb
  2. sudo modprobe btusb

39voto

Nam Nguyen Points 499

J'ai le même problème avec bluetooth avec ubuntu 20.04, et corrigé de cette façon

sudo apt install blueman

sudo add-apt-repository ppa:blaze/rtbth-dkms
sudo apt-get update
sudo apt-get install rtbth-dkms

sudo vim /etc/modules

Commentez tout et ajoutez cette ligne

rtbth

Redémarrez et ouvrez

sudo blueman-manager

Si cela ne fonctionne toujours pas, essayez ceci

sudo rmmod btusb
sleep 1
sudo modprobe btusb

Si cela ne fonctionne toujours pas, essayez ceci

mise à jour /etc/default/grub avec cette valeur

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nommconf pcie_aspm=off"

mettre à jour Grub

sudo update-grub

puis reboot et profitez de votre musique


Mise à jour pour Bluetooth v5

Source de la solution micrologicielle Bluetooth v5

Si vous obtenez des informations de la commande : sudo dmesg | grep Bluetooth

... firmware file rtl_bt/rtl8761b_fw.bin not found

Essayez de télécharger le firmware et de l'installer

wget https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/rtk1395/bt/rtkbt/Firmware/BT/rtl8761b_config
wget https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/rtk1395/bt/rtkbt/Firmware/BT/rtl8761b_fw

sudo mv rtl8761b_config /usr/lib/firmware/rtl_bt/rtl8761b_config.bin
sudo mv rtl8761b_fw /usr/lib/firmware/rtl_bt/rtl8761b_fw.bin

9voto

Danilo Escudero Points 91

J'ai également rencontré ce problème. Pour moi, l'erreur était liée à Python. Le problème se pose avec la version 3.7. Pour moi, ce qui suit a fonctionné :

J'ai désinstallé le bluetooth :

sudo apt remove blueman

sudo apt autoremove

Changez ensuite votre version de Python en 3.6 ou 3.8 :

sudo update-alternatives --config python3

Si cette commande ne fonctionne pas, vous devrez exécuter :

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2

Ensuite, exécutez à nouveau la commande pour modifier la version de Python.

Pour installer bluetooth, il est nécessaire d'avoir Python-gi, pour cela, exécutez la commande ci-dessous :

sudo apt install python3-gi

Après cela, installez à nouveau le bluetooth :

sudo apt install blueman -y && blueman-manager

Ce sont les étapes que j'ai suivies et cela a fonctionné, mais peut-être qu'un simple changement de version de Python aurait fonctionné. Lorsque j'essaie de revenir à Python 3.7, le bluetooth cesse à nouveau de fonctionner. Je ne sais pas comment résoudre ce problème, j'ai simplement arrêté d'utiliser la version 3.7.

J'espère que cela vous aidera.

4voto

Daniel Persson Points 1996

Je fais du dual boot entre Ubuntu 20.04 et Windows 7.

Mon problème était que le service Bluetooth ne démarrait pas, bien que je l'aie activé dans les paramètres Bluetooth.

Les commentaires précédents n'ont pas fonctionné pour moi. Voici ce qui a fonctionné :

Pour démarrer le service Bluetooth, entrez :

sudo /etc/init.d/bluetooth start

Cela permettra d'activer le bluetooth pendant la session.

Pour que le service Bluetooth démarre automatiquement lors du démarrage d'Ubuntu, entrez :

sudo systemctl enable bluetooth

3voto

aayore Points 221

J'ai eu des difficultés à coupler une manette XBOX ONE (qui fonctionnait sans problème dans 19.10). La solution a été de désactiver le bluetooth ERTM ( https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1750146 )

sudo su
echo 1 > /sys/module/bluetooth/parameters/disable_ertm

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X