logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 02-08-2021 23:05:59

gegedf
Membre
Inscription : 27-07-2021

demande d'aide pour faire fonctionner le bluetooth

Bonjour à tous,
Je débute sur Debian 10 buster, je n'y connais rien du tout.
J'ai déjà sollicité le forum et grâce à lui mon wifi fonctionne, un grand merci à cyrille notamment.

J'ai un portable Asus s551LN i3, 6go ram, Debian 10 buster en dual boot avec Windows 10.
J'ai mis Debian 10 buster pour apprendre linux.

Comme le wifi, le Bluetooth ne fonctionne pas sur Debian alors qu'il fonctionne sur windows.
dans le gestionnaire de périphériques Windows, il apparaît Mediatek Bluetooth Adaptor.
fournisseur du pilote: Mediatek; date du pilote: 24/04/2015; version du pilote: 2.3.1.0

j'ai fait des commandes Linux, je me suis inspiré de ce lien:
https://forum.ubuntu-fr.org/viewtopic.php?id=2051183
où xubu1957 demande d'exécuter des commandes.

Je les ai donc exécuté et voici le résultat ci-dessous:

gegedf@debian:~$ uname -a
Linux debian 5.10.0-0.bpo.7-amd64 #1 SMP Debian 5.10.40-1~bpo10+1 (2021-06-04) x86_64 GNU/Linux
gegedf@debian:~$ lspci -nnk | grep -iA3 net
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
    Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]
    Kernel driver in use: r8169
    Kernel modules: r8169
03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
    Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
    Kernel driver in use: mt76x0e
    Kernel modules: mt76x0e
04:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 840M] [10de:1341] (rev a2)
gegedf@debian:~$
gegedf@debian:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 002 Device 004: ID 13d3:5655 IMC Networks
Bus 002 Device 003: ID 0489:e069 Foxconn / Hon Hai
Bus 002 Device 002: ID 04f3:0210 Elan Microelectronics Corp. Optical Mouse
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
gegedf@debian:~$
gegedf@debian:~$
gegedf@debian:~$

gegedf@debian:~$ dmesg | grep -i bluetooth
dmesg: échec de lecture du tampon de noyau: Opération non permise
gegedf@debian:~$ sudo dmesg | grep -i bluetooth
[sudo] Mot de passe de gegedf : 
[ 4565.102400] Bluetooth: Core ver 2.22
[ 4565.102452] Bluetooth: HCI device and connection manager initialized
[ 4565.102459] Bluetooth: HCI socket layer initialized
[ 4565.102466] Bluetooth: L2CAP socket layer initialized
[ 4565.102472] Bluetooth: SCO socket layer initialized
[ 4808.475602] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4808.475605] Bluetooth: BNEP filters: protocol multicast
[ 4808.475610] Bluetooth: BNEP socket layer initialized
gegedf@debian:~$
gegedf@debian:~$ sudo dmesg | grep -i firmware
[    0.115688] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.404076] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query honored via cmdline
[    2.914787] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[   10.402552] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[   10.404658] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[   10.801071] mt76x0e 0000:03:00.0: firmware: direct-loading firmware mediatek/mt7650e.bin
[   10.801082] mt76x0e 0000:03:00.0: Firmware Version: 1.0.07
[   12.286316] r8169 0000:02:00.0: firmware: direct-loading firmware rtl_nic/rtl8168g-3.fw
gegedf@debian:~$
gegedf@debian:~$ lsmod | grep bluetooth
bluetooth             712704  7 bnep
ecdh_generic           16384  1 bluetooth
libaes                 16384  2 bluetooth,aesni_intel
rfkill                 28672  6 asus_wmi,bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4
gegedf@debian:~$
gegedf@debian:~$ dpkg -l | grep blue
ii  blueman                               2.0.8-1+deb10u1                         amd64        Graphical bluetooth manager
ii  bluez                                 5.50-1.2~deb10u1                        amd64        Bluetooth tools and daemons
ii  bluez-firmware                        1.2-4                                   all          Firmware for Bluetooth devices
ii  bluez-obexd                           5.50-1.2~deb10u1                        amd64        bluez obex daemon
ii  gnome-brave-icon-theme                5.5.1-2                                 all          blue variation of the GNOME-Colors icon theme
ii  libbluetooth3:amd64                   5.50-1.2~deb10u1                        amd64        Library to use the BlueZ Linux Bluetooth stack
ii  pulseaudio-module-bluetooth           12.2-4+deb10u1                          amd64        Bluetooth module for PulseAudio sound server
gegedf@debian:~$
gegedf@debian:~$ rfkill list all
Command 'rfkill' is available in the following places
* /sbin/rfkill
* /usr/sbin/rfkill
The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
rfkill: command not found
gegedf@debian:~$ sudo rfkill list all
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
gegedf@debian:~$
gegedf@debian:~$


gegedf@debian:~$ sudo service bluetooth status
[sudo] Mot de passe de gegedf : 
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-08-02 20:29:12 CEST; 54min ago
     Docs: man:bluetoothd(8)
Main PID: 4963 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   Memory: 2.1M
   CGroup: /system.slice/bluetooth.service
           └─4963 /usr/lib/bluetooth/bluetoothd

août 02 20:29:12 debian systemd[1]: Starting Bluetooth service...
août 02 20:29:12 debian bluetoothd[4963]: Bluetooth daemon 5.50
août 02 20:29:12 debian systemd[1]: Started Bluetooth service.
août 02 20:29:12 debian bluetoothd[4963]: Starting SDP server
août 02 20:29:12 debian bluetoothd[4963]: Bluetooth management interface 1.18 initialized
gegedf@debian:~$

--------------------------
en bas à droite de mon écran, j'ai bien l’icône Bluetooth mais en sélectionnant Périphériques; il n'en trouve pas.
Quand je fais "Configurer un nouvel appareil", la réponse est "Aucun adaptateur n'a été trouvé".

Voilà, si quelqu'un peut m'aider, je le remercie à l'avance.

Hors ligne

#2 03-08-2021 13:20:42

èfpé
Membre
Inscription : 10-07-2016

Re : demande d'aide pour faire fonctionner le bluetooth

Bonjour et bienvenue gegedf !

gegedf a écrit :

lspci -nnk | grep -iA3 net

03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
        Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
        Kernel driver in use: mt76x0e
        Kernel modules: mt76x0e


Le contrôleur Wi-Fi de cette carte combo est pris en charge nativement en version 4.20+ du noyau.

lsusb

Bus 002 Device 003: ID 0489:e069 Foxconn / Hon Hai


Par contre, ce n'est pas le cas du contrôleur Bluetooth, cf. linux-hardware.org et/ou les retours de :

lsusb -d 0489:e069 ; lsusb -t

usb-devices|grep -A6 -B2 0489


Et le retour de dmesg montre, par ailleurs, qu'aucun firmware (non libre) n'est demandé pour le BT.
Il semble que certains pilotes disponibles sur GitHub ont fonctionné dans le passé, à tester en 4.19.

Hors ligne

#3 03-08-2021 19:04:09

gegedf
Membre
Inscription : 27-07-2021

Re : demande d'aide pour faire fonctionner le bluetooth

Bonjour èfpé,
merci de bien vouloir m'aider.
j'ai fait les commandes demandées:

gegedf@debian:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 002 Device 003: ID 13d3:5655 IMC Networks
Bus 002 Device 002: ID 0489:e069 Foxconn / Hon Hai
Bus 002 Device 005: ID 04f3:0210 Elan Microelectronics Corp. Optical Mouse
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
gegedf@debian:~$
gegedf@debian:~$
gegedf@debian:~$ lsusb -d 0489:e069 ; lsusb -t
Bus 002 Device 002: ID 0489:e069 Foxconn / Hon Hai
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
    |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 4: Dev 2, If 1, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 5: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 5: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
gegedf@debian:~$
gegedf@debian:~$
gegedf@debian:~$ usb-devices|grep -A6 -B2 0489
T:  Bus=02 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.01 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0489 ProdID=e069 Rev=01.00
S:  Manufacturer=MediaTek
S:  Product=BT
S:  SerialNumber=1.0
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=450mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
I:  If#=0x1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
gegedf@debian:~$
gegedf@debian:~$
gegedf@debian:~$


Que dois-je faire à présent ? merci

Hors ligne

#4 03-08-2021 20:48:42

èfpé
Membre
Inscription : 10-07-2016

Re : demande d'aide pour faire fonctionner le bluetooth

Re-,

gegedf a écrit :

lsusb -d 0489:e069 ; lsusb -t

Bus 002 Device 002: ID 0489:e069 Foxconn / Hon Hai
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
    |__ Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 4: Dev 2, If 1, Class=Vendor Specific Class, Driver=, 480M


Merci... bon, ça c'était juste pour montrer/confirmer l'absence de prise en charge par le noyau 5.10.

gegedf a écrit :

Que dois-je faire à présent ?


Rétrograder le noyau en 4.19, puis tenter la compilation du pilote proposé par neurobin sur GitHub.
edit: ça compile gentiment, en 4.19 et en 5.10 (par contre il faudrait blacklister le module mt7630e).

git clone https://github.com/neurobin/MT7630E.git /tmp/MT7630E/

/tmp/MT7630E/install

make -C /lib/modules/5.10.0-8-amd64/build M=/tmp/MT7630E/rt2x00 modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-8-amd64 »
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00dev.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00mac.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00config.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00queue.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00link.o
  CC [M]  /tmp/MT7630E/rt2x00/mt_linux.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00crypto.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00firmware.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00leds.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00mmio.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2800pci.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2800lib.o
  CC [M]  /tmp/MT7630E/rt2x00/rt2x00pci.o
  LD [M]  /tmp/MT7630E/rt2x00/mt7630e.o
  MODPOST /tmp/MT7630E/rt2x00/Module.symvers
  CC [M]  /tmp/MT7630E/rt2x00/mt7630e.mod.o
  LD [M]  /tmp/MT7630E/rt2x00/mt7630e.ko
make[1] : on quitte le répertoire « /usr/src/linux-headers-5.10.0-8-amd64 »
make -C /lib/modules/5.10.0-8-amd64/build M=/tmp/MT7630E/btloader modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-8-amd64 »
  CC [M]  /tmp/MT7630E/btloader/mt76xx.o
  MODPOST /tmp/MT7630E/btloader/Module.symvers
  CC [M]  /tmp/MT7630E/btloader/mt76xx.mod.o
  LD [M]  /tmp/MT7630E/btloader/mt76xx.ko
make[1] : on quitte le répertoire « /usr/src/linux-headers-5.10.0-8-amd64 »
cp -v firmware/*/* /lib/firmware/
'firmware/BT/mt76x0.bin' -> '/lib/firmware/mt76x0.bin'
'firmware/Wi-FI/MT7650E234.bin' -> '/lib/firmware/MT7650E234.bin'
cp rt2x00/mt7630e.ko /lib/modules/5.10.0-8-amd64/kernel/drivers/net/wireless/
cp btloader/mt76xx.ko /lib/modules/5.10.0-8-amd64/kernel/drivers/net/wireless/
depmod 5.10.0-8-amd64

The driver has been successfully installed.
If you don't have wifi yet, try to reboot.
If bluetooth doesn't work, read the bluetooth
section in README.md file and follow through.
 


README.md a écrit :

### Bluetooth

For kernel 3.13 - 3.16 bluetooth may work without any extra efforts, but for higher kernels it may
not work at all. A kernel patch for the bluetooth driver may be needed to get it up and working.

If wifi works after installing the driver but bluetooth doesn't, you should first check if bluetooth is
hard/soft blocked. If it is blocked then remove the block, but if that's not the case then we have a
patch for you that you can apply to your kernel.


Autant dire que le risque que le BT tombe en marche est relativement faible — mais c'est formateur.

L'option la moins capillo-arrachante serait de te procurer un dongle Bluetooth USB (pris en charge).

Dernière modification par èfpé (10-08-2021 12:18:42)

Hors ligne

#5 04-08-2021 14:58:16

gegedf
Membre
Inscription : 27-07-2021

Re : demande d'aide pour faire fonctionner le bluetooth

Bonjour èfpé
j'ai suivi votre conseil:
"L'option la moins capillo-arrachante serait de te procurer un dongle Bluetooth USB (pris en charge)."

je me suis équipé d'un dongle Bluetooth USB; et à la première connexion, il a été reconnu tout de suite.
dans la foulée, j'ai effectué des transferts de fichiers dans un sens, puis dans l'autre; c'est nickel.

j'ai toute fois une petite question concernant les dits transferts:
j'ai noté que le transfert du pc vers mon smartphone asus zenfone X01BDA est bien plus rapide dans ce sens,
que dans le sens smartphone vers le pc.
cela dépend sans doute du fichier transmis mais il y a une grande différence.

y a-t-il un paramétrage à vérifier, et où et comment ?

merci à nouveau de votre aide

Hors ligne

#6 05-08-2021 20:04:42

èfpé
Membre
Inscription : 10-07-2016

Re : demande d'aide pour faire fonctionner le bluetooth

Bonsoir gegedf,

gegedf a écrit :

je me suis équipé d'un dongle Bluetooth USB


Pourrais-tu nous en préciser les références (marque et modèle) ? Mais surtout, poster le retour de :

lsusb ; lsusb -t


Cela fera un adaptateur à conseiller, d'une part, et, d'autre part, ce retour indiquera le pilote chargé.

gegedf a écrit :

asus zenfone X01BDA


Il s'agit, semble-t-il, du Zenfone Max Pro (M2) ; peux-tu confirmer, et préciser la version d'Android ?

gegedf a écrit :

j'ai noté que le transfert du pc vers mon smartphone [...] est bien plus rapide dans ce sens,
que dans le sens smartphone vers le pc.


As-tu la possibilité de tester un transfert de fichier via USB ? et si oui constates-tu la même chose ?

Quoi qu'il en soit, peux-tu éditer ton premier message, et en modifier le sujet (70 caractères max) ?

[Contourné] Bluetooth MediaTek MT7630E, non fonctionnel sous Debian 10

Par exemple. Un titre et un tag explicites facilitent grandement la lecture et le partage des solutions.

Hors ligne

#7 06-08-2021 20:51:31

gegedf
Membre
Inscription : 27-07-2021

Re : demande d'aide pour faire fonctionner le bluetooth

Bonjour èfpé,

Je me suis équipé d’une clé Bluetooth USB 4.0 de « essentiel b »

dont voici les caractéristiques :
Version du Bluetooth : 4.0
Rétro compatibilité avec les versions Bluetooth 3.0, 2.1 et 2.0
Taux de transfert : 3 Mbps
Portée : 10 mètres
Fréquence : 2,4 Ghz
Dimensions : 2,5 x 1,9 x 0,75 (cm)
Poids : 20 g
Compatibilités :
USB : 2.0 et 3.0
Systèmes d’exploitation : Windows XP, Vista, 7, 8

et le retour des commandes demandées :

gegedf@debian:~$ lsusb ; lsusb -t
Bus 003 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 001 Device 003: ID 13d3:5655 IMC Networks
Bus 001 Device 002: ID 0489:e069 Foxconn / Hon Hai
Bus 001 Device 005: ID 04f3:0210 Elan Microelectronics Corp. Optical Mouse
Bus 001 Device 010: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
    |__ Port 2: Dev 10, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 2: Dev 10, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 2, If 1, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 5: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 5: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
gegedf@debian:~$
gegedf@debian:~$

Je te confirme mon asus Zenfone Max Pro (M2) ,
version d’Android 9

J’ai fait un tranfert d’un fichier vidéo de 58,38 Mo :
du smartphone vers le pc : transfert immédiat ok
du pc vers le smartphone : un temps de transfert presque immédiat ok

Hors ligne

#8 06-08-2021 21:03:17

gegedf
Membre
Inscription : 27-07-2021

Re : demande d'aide pour faire fonctionner le bluetooth

par contre:
------------------------------
Quoi qu'il en soit, peux-tu éditer ton premier message, et en modifier le sujet (70 caractères max) ?

    [Contourné] Bluetooth MediaTek MT7630E, non fonctionnel sous Debian 10

Par exemple. Un titre et un tag explicites facilitent grandement la lecture et le partage des solutions.
------------------------------

désolé èfpé mais je ne sais pas faire cela ...
je ne suis pas à l'aise pour expliquer ça.
merci de ta compréhension

Hors ligne

Pied de page des forums