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 20-04-2020 17:35:52

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Le bluetooth refuse de rester activé

Bonjour à tous,

Je cherche à connecter mon téléphone (un Fairphone 2 avec fairphone-open comme OS) en bluetooth à mon Dell-Latitude D430 afin d'échanger des fichiers entre les deux. Pour ce faire j'ai suivi le wiki sur le bluetooth et installé les paquets bluetooth et blueman. Le service bluetooth est également activé :

service bluetooth status


● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enab
   Active: active (running) since Mon 2020-04-20 17:57:28 CEST
     Docs: man:bluetoothd(8)
 Main PID: 3016 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 2330)
   Memory: 2.6M
   CGroup: /system.slice/bluetooth.service
           └─3016 /usr/lib/bluetooth/bluetoothd

avril 20 18:09:34 harold-debian bluetoothd[3016]: Endpoint reg
avril 20 18:09:34 harold-debian bluetoothd[3016]: Endpoint reg
avril 20 18:09:35 harold-debian bluetoothd[3016]: Endpoint unr
avril 20 18:09:35 harold-debian bluetoothd[3016]: Endpoint unr
avril 20 18:13:24 harold-debian bluetoothd[3016]: Sap driver i
avril 20 18:13:24 harold-debian bluetoothd[3016]: sap-server:
avril 20 18:13:24 harold-debian bluetoothd[3016]: Endpoint reg
avril 20 18:13:24 harold-debian bluetoothd[3016]: Endpoint reg
avril 20 18:13:25 harold-debian bluetoothd[3016]: Endpoint unr
avril 20 18:13:25 harold-debian bluetoothd[3016]: Endpoint unr


J'ai donc une icône en bas de mon tableau de bord m'indiquant que le bluetooth est désactivé. Je clique alors sur activer, il s'active et...se désactive à peine une seconde après. Rfkill m'indique la même chose :

rfkill list all


0: dell-wifi: Wireless LAN
  Soft blocked: no
  Hard blocked: no
1: dell-bluetooth: Bluetooth
  Soft blocked: yes
  Hard blocked: no
2: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
 


Or, même résultat avec la commande rkill unblock bluetooth : le bluetooth s'active et se désactive une seconde après.

A noter que j'ai changé la carte réseau de ce pc, dont voici le modèle :

lspci -nnkd ::0280


0c:00.0 Network controller [0280]: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)
  Subsystem: AzureWave AR928X Wireless Network Adapter (PCI-Express) [1a3b:1071]
  Kernel driver in use: ath9k
  Kernel modules: ath9k
 


Je ne sais pas si c'est à cause de cette dernière ou non. Mon utilisateur est également dans le groupe bluetooth. Quelqu'un aurait une idée ?


Thinkpad T440P avec osboot

Hors ligne

#2 20-04-2020 18:28:29

Anonyme-11
Invité

Re : Le bluetooth refuse de rester activé

Salut,
Si tu n'as pas le firmware :

apt-get -y install firmware-atheros



Il me semble qu'il faut ajouter contrib et non-free au sources.list

#3 21-04-2020 10:33:15

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Salut,

Effectivement je n'ai pas ce paquet (qui se trouve dans non-free comme indiqué ici), mais ça m'embête un peu de l'installer car j'avais justement choisi cette carte réseau pour rester libre et ne pas avoir à installer de pilote propriétaire pour le wi-fi. N'y a-t-il pas d'autre solution ?

Dernière modification par Harashi (21-04-2020 10:34:13)


Thinkpad T440P avec osboot

Hors ligne

#4 21-04-2020 10:46:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Bonjour,

Harashi a écrit :

À noter que j'ai changé la carte réseau [sans fil] de ce portable, [...]


Ni l'AzureWave AW-NE772 ni l'Intel PRO/Wireless 3945ABG d'origine ne sont des combos Wi-Fi+BT.

lsusb

dmesg | grep firmw


Permettront d'identifier le matériel (sous le clavier – cf. doc page 6) et l'éventuel firmware manquant.

Hors ligne

#5 21-04-2020 10:59:25

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Bonjour èfpé,

èfpé a écrit :

Ni l'AzureWave AW-NE772 ni l'Intel PRO/Wireless 3945ABG d'origine ne sont des combos Wi-Fi+BT.


Je l'ignorais, mais il faut dire que je ne m'étais guère intéressé au bluetooth jusque récemment car je n'en avais pas besoin.

Le première commande renvoie ceci :

lsusb


Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 001 Device 003: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 001 Device 002: ID 413c:a005 Dell Computer Corp. Internal 2.0 Hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Le seconde, exécutée en root, ne renvoie rien. Toutefois, il s'agit précisément de cette carte.


Thinkpad T440P avec osboot

Hors ligne

#6 21-04-2020 11:36:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Re-,

Harashi a écrit :

Le seconde, exécutée en root, ne renvoie rien.


C'est qu'aucun firmware n'est requis... Ton tout premier retour est inexploitable (lignes tronquées) :

service bluetooth status | more


Pourrait permettre de mieux comprendre. Il semble, en tout cas, que le Bluetooth n'est pas en USB.

lsmod | grep bt

dmesg | grep Bl


Montreront les messages du noyau/les modules chargés ; le retour de lsusb n'est pas celui attendu.

Harashi a écrit :

Toutefois, il s'agit précisément de cette carte.


Je ne comprends pas où tu veux en venir. Tu peux mettre pci.ids à jour avec update-pciids, en root.

Dernière modification par èfpé (21-04-2020 15:26:42)

Hors ligne

#7 21-04-2020 15:48:36

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Re,

Voici les retours demandés :

service bluetooth status | more


● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-04-21 16:34:42 CEST; 6min ago
     Docs: man:bluetoothd(8)
 Main PID: 2934 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 2330)
   Memory: 2.5M
   CGroup: /system.slice/bluetooth.service
           └─2934 /usr/lib/bluetooth/bluetoothd

avril 21 16:34:42 harold-debian bluetoothd[2934]: Bluetooth daemon 5.50
avril 21 16:34:42 harold-debian systemd[1]: Started Bluetooth service.
avril 21 16:34:42 harold-debian bluetoothd[2934]: Starting SDP server
avril 21 16:34:42 harold-debian bluetoothd[2934]: Bluetooth management interface 1.14 initialized
avril 21 16:34:47 harold-debian bluetoothd[2934]: Sap driver initialization failed.
avril 21 16:34:47 harold-debian bluetoothd[2934]: sap-server: Operation not permitted (1)
avril 21 16:34:47 harold-debian bluetoothd[2934]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource
avril 21 16:34:47 harold-debian bluetoothd[2934]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSink
avril 21 16:34:48 harold-debian bluetoothd[2934]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSource
avril 21 16:34:48 harold-debian bluetoothd[2934]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSink
 


Je précise que ce retour est obtenu au démarrage, sans aucune manipulation de ma part ou tentative d'activer le bluetooth au préalable.

lsmod | grep bt


btusb                  53248  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                24576  1 btusb
bluetooth             647168  14 btrtl,btintel,btbcm,bnep,btusb,rfcomm
dell_rbtn              16384  0
rfkill                 28672  8 bluetooth,dell_laptop,dell_rbtn,cfg80211
usbcore               294912  5 ehci_pci,usbhid,ehci_hcd,btusb,uhci_hcd
 


dmesg | grep Bl


[    4.165930] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[   21.608148] Bluetooth: Core ver 2.22
[   21.608192] Bluetooth: HCI device and connection manager initialized
[   21.609339] Bluetooth: HCI socket layer initialized
[   21.609345] Bluetooth: L2CAP socket layer initialized
[   21.609363] Bluetooth: SCO socket layer initialized
[   35.777795] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   35.777798] Bluetooth: BNEP filters: protocol multicast
[   35.777807] Bluetooth: BNEP socket layer initialized
[   40.042946] Bluetooth: hci0: unexpected event for opcode 0x0000
[   40.363899] Bluetooth: RFCOMM TTY layer initialized
[   40.363923] Bluetooth: RFCOMM socket layer initialized
[   40.363935] Bluetooth: RFCOMM ver 1.11
 


èfpé a écrit :

Je ne comprends pas où tu veux en venir.


Nulle part, en réalité je n'y connais vraiment rien en réseau, que ce soit avec GNU/Linux ou tout court, et je pensais que c'était ce que tu cherchais à savoir car tu voulais identifier le matériel.


Thinkpad T440P avec osboot

Hors ligne

#8 23-04-2020 18:28:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Bonsoir,

Harashi a écrit :

[...] je pensais que c'était ce que tu cherchais à savoir, car tu voulais identifier le matériel.


Le matériel Bluetooth pas le matériel Wi-Fi (déjà connu), or il disparaît littéralement (exit hci0, pfuit).
Quoi qu'il en soit, le chargement du module btusb laisse penser que la carte Bluetooth est en USB...

modprobe -r ath9k


Cette commande va décharger le pilote de la carte Wi-Fi. Ensuite peux-tu retenter l'activation du BT.

grep -i bluetooth /var/log/syslog


Montrera tout ça. Le paramètre btcoex_enable du module ath9k concernerait les combos, mais bon.

Tiens au fait, le câble USB "data" est LA méthode préconisée, pour le Fairphone 2. J'dis ça, j'dis rien.

Hors ligne

#9 24-04-2020 08:36:51

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Bonjour,

J'ai déchargé le pilote de la carte wifi puis tenté d'activer le bluetooth, d'abord en graphique (ça n'a rien donné) puis avec rfkill (le voyant bluetooth est resté allumé légèrement plus longtemps que d'habitude mais s'est éteint quand même). Voici le retour après ces opérations (je n'ai conservé que les logs depuis l'allumage de la machine pour cette session) :

grep -i bluetooth /var/log/syslog


Apr 24 09:01:11 harashi-debian rfkill: block set for type bluetooth
Apr 24 09:01:11 harashi-debian kernel: [   34.948470] Bluetooth: Core ver 2.22
Apr 24 09:01:11 harashi-debian kernel: [   34.948519] Bluetooth: HCI device and connection manager initialized
Apr 24 09:01:11 harashi-debian kernel: [   34.950710] Bluetooth: HCI socket layer initialized
Apr 24 09:01:11 harashi-debian kernel: [   34.950716] Bluetooth: L2CAP socket layer initialized
Apr 24 09:01:11 harashi-debian kernel: [   34.950733] Bluetooth: SCO socket layer initialized
Apr 24 09:01:12 harashi-debian NetworkManager[1421]: <info>  [1587711672.8474] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.14.6/libnm-device-plugin-bluetooth.so)
Apr 24 09:01:22 harashi-debian systemd[1]: Starting Bluetooth service...
Apr 24 09:01:23 harashi-debian bluetoothd[2890]: Bluetooth daemon 5.50
Apr 24 09:01:23 harashi-debian systemd[1]: Started Bluetooth service.
Apr 24 09:01:23 harashi-debian bluetoothd[2890]: Starting SDP server
Apr 24 09:01:23 harashi-debian kernel: [   49.129636] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 24 09:01:23 harashi-debian kernel: [   49.129641] Bluetooth: BNEP filters: protocol multicast
Apr 24 09:01:23 harashi-debian kernel: [   49.129652] Bluetooth: BNEP socket layer initialized
Apr 24 09:01:23 harashi-debian bluetoothd[2890]: Bluetooth management interface 1.14 initialized
Apr 24 09:01:25 harashi-debian systemd[2048]: Starting Bluetooth OBEX service...
Apr 24 09:01:25 harashi-debian systemd[2048]: Started Bluetooth OBEX service.
Apr 24 09:01:27 harashi-debian kernel: [   52.940855] Bluetooth: hci0: unexpected event for opcode 0x0000
Apr 24 09:01:27 harashi-debian bluetoothd[2890]: Sap driver initialization failed.
Apr 24 09:01:27 harashi-debian bluetoothd[2890]: sap-server: Operation not permitted (1)
Apr 24 09:01:27 harashi-debian kernel: [   53.271858] Bluetooth: RFCOMM TTY layer initialized
Apr 24 09:01:27 harashi-debian kernel: [   53.271872] Bluetooth: RFCOMM socket layer initialized
Apr 24 09:01:27 harashi-debian kernel: [   53.271887] Bluetooth: RFCOMM ver 1.11
Apr 24 09:01:27 harashi-debian bluetoothd[2890]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource
Apr 24 09:01:27 harashi-debian bluetoothd[2890]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSink
Apr 24 09:01:27 harashi-debian systemd[1]: Reached target Bluetooth.
Apr 24 09:01:29 harashi-debian rfkill: block set for type bluetooth
Apr 24 09:01:29 harashi-debian bluetoothd[2890]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSource
Apr 24 09:01:29 harashi-debian bluetoothd[2890]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSink
Apr 24 09:01:35 harashi-debian systemd[1]: Stopped target Bluetooth.
Apr 24 09:17:48 harashi-debian rfkill: block set for type bluetooth
Apr 24 09:17:50 harashi-debian kernel: [ 1035.999776] Bluetooth: hci0: command 0x0c01 tx timeout
Apr 24 09:17:50 harashi-debian kernel: [ 1035.999811] Bluetooth: hci0: sending frame failed (-19)
Apr 24 09:17:52 harashi-debian kernel: [ 1038.015779] Bluetooth: hci0: command 0x0c0d tx timeout
Apr 24 09:17:52 harashi-debian kernel: [ 1038.015817] Bluetooth: hci0: sending frame failed (-19)
Apr 24 09:17:54 harashi-debian kernel: [ 1040.031770] Bluetooth: hci0: command 0x080f tx timeout
Apr 24 09:17:54 harashi-debian kernel: [ 1040.031814] Bluetooth: hci0: sending frame failed (-19)
Apr 24 09:17:56 harashi-debian kernel: [ 1042.047771] Bluetooth: hci0: command 0x0c1b tx timeout
Apr 24 09:17:56 harashi-debian kernel: [ 1042.047803] Bluetooth: hci0: sending frame failed (-19)
Apr 24 09:17:58 harashi-debian kernel: [ 1044.063774] Bluetooth: hci0: command 0x0c46 tx timeout
Apr 24 09:17:59 harashi-debian rfkill: block set for type bluetooth
Apr 24 09:17:59 harashi-debian rfkill: unblock set for type bluetooth
Apr 24 09:18:00 harashi-debian kernel: [ 1046.419837] Bluetooth: hci0: unexpected event for opcode 0x0c38
Apr 24 09:18:02 harashi-debian kernel: [ 1048.423853] Bluetooth: hci0: unexpected event for opcode 0x0c39
Apr 24 09:18:10 harashi-debian systemd[1]: Reached target Bluetooth.
Apr 24 09:18:10 harashi-debian systemd[1]: Stopped target Bluetooth.
Apr 24 09:18:10 harashi-debian rfkill: block set for type bluetooth
Apr 24 09:18:16 harashi-debian systemd[1]: Reached target Bluetooth.
Apr 24 09:18:17 harashi-debian rfkill: block set for type bluetooth
Apr 24 09:18:28 harashi-debian systemd[1]: Stopped target Bluetooth.


èfpé a écrit :

Tiens au fait, le câble USB "data" est LA méthode préconisée, pour le Fairphone 2. J'dis ça, j'dis rien.


Je sais, et j'arrive tout à fait à connecter mon téléphone avec un câble et la commande go-mtpfs, mais je bouge beaucoup pour mon travail avec cet ordinateur portable et il m'est arrivé de ne pas avoir de câble avec moi alors que j'avais besoin de transférer des fichiers depuis ou vers le téléphone (et avec souvent une réception internet trop pourrie ou inexistante pour m'envoyer les fichiers par mail). Du coup je me suis dit que ce serait pas mal de réussir à faire marcher le bluetooth, même si dans le pire des cas je peux m'en passer.


Thinkpad T440P avec osboot

Hors ligne

#10 25-04-2020 12:24:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Re-,

Le 16-09-2017 à 16:54:30, Harashi a écrit :

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 413c:8140 Dell Computer Corp. Wireless 360 Bluetooth
Bus 002 Device 005: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 002 Device 003: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 002 Device 002: ID 413c:a005 Dell Computer Corp. Internal 2.0 Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Ce retour obtenu sous Debian 9 montre un périphérique Bluetooth conforme aux spécifications Dell.

Le 16-09-2017 à 16:54:30, Harashi a écrit :

lsmod | grep bt

btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             552960  5 btrtl,btintel,btbcm,btusb
dell_rbtn              16384  0
rfkill                 24576  5 bluetooth,dell_laptop,dell_rbtn,cfg80211
usbcore               249856  5 usbhid,ehci_hcd,uhci_hcd,btusb,ehci_pci


Les modules bnep et rfcomm n'étaient pas chargés. Dernier bazar impliqué, le service systemd-rfkill.

Je suis tombé sur un truc de tordu, cette histoire de "firmware" DFU fourni par un "pilote" Windows.

Dell_413c_8140.dfu


Tu pourrais éventuellement tester en Live Debian 9 (après tout, une régression n'est pas à exclure).

Dernière modification par èfpé (25-04-2020 12:54:42)

Hors ligne

#11 25-04-2020 12:59:01

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Re-,

èfpé a écrit :

Les modules bnep et rfcomm n'étaient pas chargés. Dernier bazar impliqué, le service systemd-rfkill.


Je les ai chargé et ai désactivé le service systemd-rffkill :

# lsmod | grep bt
btusb                  53248  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                24576  1 btusb
bluetooth             647168  14 btrtl,btintel,btbcm,bnep,btusb,rfcomm
dell_rbtn              16384  0
rfkill                 28672  8 bluetooth,dell_laptop,dell_rbtn,cfg80211
usbcore               294912  4 ehci_pci,ehci_hcd,btusb,uhci_hcd

# systemctl stop systemd-rfkill
Warning: Stopping systemd-rfkill.service, but it can still be activated by:
  systemd-rfkill.socket

# systemctl stop systemd-rfkill.socket
 


Et toujours le même résultat, même si avec la commande rfkill unblock bluetooth le voyant bluetooth a du rester allumé dix secondes entières avant de se désactiver.

èfpé a écrit :

Tu pourrais éventuellement tester en Live Debian 9 (après tout, une régression n'est pas à exclure).


J'essaierai (sûrement demain) avec un live Debian 9, ne serait-ce que par curiosité, mais je ne pense pas réinstaller Debian 9 sur ce pc juste pour ça (je n'ai pas besoin du bluetooth à ce point)

Dernière modification par Harashi (25-04-2020 13:01:20)


Thinkpad T440P avec osboot

Hors ligne

#12 26-04-2020 11:12:35

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Harashi a écrit :

èfpé a écrit :

Tu pourrais éventuellement tester en Live Debian 9 (après tout, une régression n'est pas à exclure).


J'essaierai (sûrement demain) avec un live Debian 9, ne serait-ce que par curiosité, mais je ne pense pas réinstaller Debian 9 sur ce pc juste pour ça (je n'ai pas besoin du bluetooth à ce point)


Je viens de tester un truc étonnant. Comme je ne trouvais pas d'image live pour Debian 9 sur le site officiel, j'ai booté avec une image de Debian 10 d'octobre 2019 en live pour essayer de downgrader vers 9. Je ne l'ai finalement pas fait, car j'ai eu la surprise de voir le voyant bluetooth rester allumé. Après avoir installé blueman, je constate que le bluetooth est effectivement actif. Suivant les instructions d'appairage du wiki, je tente la détection sur mon téléphone qui trouve bien un appareil nommé "debian". Je rentre un code pin mais n'obtient rien sur l'ordinateur et le téléphone m'annonce que la connexion est refusé par "debian". Après avoir regardé dans les menus bluetooth, je constate que l'ordinateur peut être détecté, mais ne détecte rien (j'ai testé avec mon téléphone et une enceinte bluetooth portable, tous deux fonctionnels avec mon autre ordi, et ils ne sont pas détectés).

Rfkill m'indique également qu'il est activé, ce que je n'ai jamais réussi à obtenir avec ma présente installation :

rfkill list


0: dell-wifi: Wireless LAN
  Soft blocked: no
  Hard blocked: no
1: dell-bluetooth: Bluetooth
  Soft blocked: no
  Hard blocked: no
2: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
3: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
 


Donc même si ça ne marche pas très bien, à priori c'est activable avec Debian 10. Par contre je ne vois pas ce que je fais mal avec mon installation.

Dernière modification par Harashi (26-04-2020 11:13:45)


Thinkpad T440P avec osboot

Hors ligne

#13 26-04-2020 15:36:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Re-,

Harashi a écrit :

Comme je ne trouvais pas d'image live pour Debian 9 sur le site officiel, [...].


Comme il n'y a qu'une distribution stable, les images Debian 9 sont directement archivées (ici donc).
Sauf erreur, /usr/sbin/rfkill est utilisable en user et la commande list est dépréciée à partir de Buster.

Hors ligne

#14 26-04-2020 17:47:27

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Re-,

Merci pour le lien, je n'avais vraiment pas trouvé. J'ai donc fait une image live de debian 9-xfce et effectivement ça marche. J'ai réussi à appairer mon téléphone sans problème et à envoyer des fichiers dans les deux sens. Ça fonctionnait donc bien sous Stretch.

Mais du coup, si je ne souhaite pas revenir à Stretch, me reste-t-il des options ou bien c'est cuit pour faire fonctionner le bluetooth sous Buster ?

Thinkpad T440P avec osboot

Hors ligne

#15 27-04-2020 12:16:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Re-,

Harashi a écrit :

Ça fonctionnait donc bien sous Stretch.


L'hypothèse régressive se précise. Il aurait été intéressant de montrer lsmod dmesg syslog, toussa.

Harashi a écrit :

Mais du coup, si je ne souhaite pas revenir à Stretch, me reste-t-il des options ou bien c'est cuit pour faire fonctionner le Bluetooth sous Buster ?


L'origine n'étant pas identifiée et un contournement fiable étant disponible, je ne m'acharnerais pas.

Hors ligne

#16 28-04-2020 17:14:38

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Re-,

èfpé a écrit :

Il aurait été intéressant de montrer lsmod dmesg syslog, toussa.


Oui, sur le moment je n'y ai pas pensé. Voici donc les retours en question :

user@debian:~$ lsmod | grep bt
dell_rbtn              16384  0
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             557056  39 btrtl,btintel,bnep,btbcm,rfcomm,btusb
rfkill                 24576  8 bluetooth,dell_laptop,dell_rbtn,cfg80211
usbcore               253952  6 usb_storage,ehci_hcd,uhci_hcd,btusb,uas,ehci_pci

user@debian:~$ sudo dmesg | grep Bl
[    1.370005] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[   19.888037] Bluetooth: Core ver 2.22
[   19.888080] Bluetooth: HCI device and connection manager initialized
[   19.888089] Bluetooth: HCI socket layer initialized
[   19.888095] Bluetooth: L2CAP socket layer initialized
[   19.888108] Bluetooth: SCO socket layer initialized
[   21.910929] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.910933] Bluetooth: BNEP filters: protocol multicast
[   21.910942] Bluetooth: BNEP socket layer initialized
[  282.561423] Bluetooth: RFCOMM TTY layer initialized
[  282.561439] Bluetooth: RFCOMM socket layer initialized
[  282.561455] Bluetooth: RFCOMM ver 1.11

user@debian:~$ sudo grep -i bluetooth /var/log/syslog
Apr 28 16:03:33 localhost kernel: [   19.888037] Bluetooth: Core ver 2.22
Apr 28 16:03:33 localhost kernel: [   19.888080] Bluetooth: HCI device and connection manager initialized
Apr 28 16:03:33 localhost kernel: [   19.888089] Bluetooth: HCI socket layer initialized
Apr 28 16:03:33 localhost kernel: [   19.888095] Bluetooth: L2CAP socket layer initialized
Apr 28 16:03:33 localhost kernel: [   19.888108] Bluetooth: SCO socket layer initialized
Apr 28 16:03:34 localhost systemd[1]: Starting Bluetooth service...
Apr 28 16:03:34 localhost bluetoothd[961]: Bluetooth daemon 5.43
Apr 28 16:03:34 localhost systemd[1]: Started Bluetooth service.
Apr 28 16:03:34 localhost bluetoothd[961]: Starting SDP server
Apr 28 16:03:34 localhost systemd[1]: Reached target Bluetooth.
Apr 28 16:03:35 localhost kernel: [   21.910929] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 28 16:03:35 localhost kernel: [   21.910933] Bluetooth: BNEP filters: protocol multicast
Apr 28 16:03:35 localhost kernel: [   21.910942] Bluetooth: BNEP socket layer initialized
Apr 28 16:03:35 localhost bluetoothd[961]: Bluetooth management interface 1.14 initialized
Apr 28 16:03:35 localhost bluetoothd[961]: Failed to obtain handles for "Service Changed" characteristic
Apr 28 16:03:35 localhost bluetoothd[961]: Sap driver initialization failed.
Apr 28 16:03:35 localhost bluetoothd[961]: sap-server: Operation not permitted (1)
Apr 28 16:03:37 localhost NetworkManager[818]: <info>  [1588089817.0381] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-device-plugin-bluetooth.so)
Apr 28 16:07:53 localhost systemd[1032]: Starting Bluetooth OBEX service...
Apr 28 16:07:53 localhost systemd[1032]: Started Bluetooth OBEX service.
Apr 28 16:07:54 localhost kernel: [  282.561423] Bluetooth: RFCOMM TTY layer initialized
Apr 28 16:07:54 localhost kernel: [  282.561439] Bluetooth: RFCOMM socket layer initialized
Apr 28 16:07:54 localhost kernel: [  282.561455] Bluetooth: RFCOMM ver 1.11
 


èfpé a écrit :

un contournement fiable étant disponible


Tu veux parler de réinstaller Debian 9 ?


Thinkpad T440P avec osboot

Hors ligne

#17 28-04-2020 18:54:42

èfpé
Membre
Inscription : 10-07-2016

Re : Le bluetooth refuse de rester activé

Re-,

Harashi a écrit :

Voici donc les retours en question :


Le syslog ne montre pas d'appairage. Du coup, on ne sait pas ce que fait systemd-rfkill, c'est ballot.

Harashi a écrit :

Tu veux parler de réinstaller Debian 9 ?


Nan. Ce serait trop superfail... je pensais au câble data... tellement looooourd, et encombraaaaant...

Hors ligne

#18 29-04-2020 11:17:46

Harashi
Membre
Lieu : Paris
Distrib. : Debian 12 (Bookworm)
Noyau : Linux 6.1.0-9-amd64
(G)UI : Cinnamon
Inscription : 15-09-2017

Re : Le bluetooth refuse de rester activé

Re,

Voici les mèmes retours avec appairage et échange de fichiers dans les deux sens :

user@debian:~$ lsmod | grep bt
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             557056  41 btrtl,btintel,bnep,btbcm,rfcomm,btusb
dell_rbtn              16384  0
rfkill                 24576  8 bluetooth,dell_laptop,dell_rbtn,cfg80211
usbcore               253952  6 usb_storage,ehci_hcd,uhci_hcd,btusb,uas,ehci_pci

user@debian:~$ sudo dmesg | grep Bl
[    1.365684] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[   20.190771] Bluetooth: Core ver 2.22
[   20.190810] Bluetooth: HCI device and connection manager initialized
[   20.190817] Bluetooth: HCI socket layer initialized
[   20.190823] Bluetooth: L2CAP socket layer initialized
[   20.190844] Bluetooth: SCO socket layer initialized
[   21.646873] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.646877] Bluetooth: BNEP filters: protocol multicast
[   21.646885] Bluetooth: BNEP socket layer initialized
[  256.094511] Bluetooth: RFCOMM TTY layer initialized
[  256.094531] Bluetooth: RFCOMM socket layer initialized
[  256.094554] Bluetooth: RFCOMM ver 1.11

user@debian:~$ sudo grep -i bluetooth /var/log/syslog
Apr 29 09:58:57 localhost kernel: [   20.190771] Bluetooth: Core ver 2.22
Apr 29 09:58:57 localhost kernel: [   20.190810] Bluetooth: HCI device and connection manager initialized
Apr 29 09:58:57 localhost kernel: [   20.190817] Bluetooth: HCI socket layer initialized
Apr 29 09:58:57 localhost kernel: [   20.190823] Bluetooth: L2CAP socket layer initialized
Apr 29 09:58:57 localhost kernel: [   20.190844] Bluetooth: SCO socket layer initialized
Apr 29 09:58:57 localhost systemd[1]: Starting Bluetooth service...
Apr 29 09:58:58 localhost bluetoothd[972]: Bluetooth daemon 5.43
Apr 29 09:58:58 localhost systemd[1]: Started Bluetooth service.
Apr 29 09:58:58 localhost systemd[1]: Reached target Bluetooth.
Apr 29 09:58:58 localhost bluetoothd[972]: Starting SDP server
Apr 29 09:58:58 localhost kernel: [   21.646873] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 29 09:58:58 localhost kernel: [   21.646877] Bluetooth: BNEP filters: protocol multicast
Apr 29 09:58:58 localhost kernel: [   21.646885] Bluetooth: BNEP socket layer initialized
Apr 29 09:58:58 localhost bluetoothd[972]: Bluetooth management interface 1.14 initialized
Apr 29 09:58:58 localhost bluetoothd[972]: Failed to obtain handles for "Service Changed" characteristic
Apr 29 09:58:58 localhost bluetoothd[972]: Sap driver initialization failed.
Apr 29 09:58:58 localhost bluetoothd[972]: sap-server: Operation not permitted (1)
Apr 29 09:59:00 localhost NetworkManager[841]: <info>  [1588154340.5744] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-device-plugin-bluetooth.so)
Apr 29 10:02:53 localhost systemd[1043]: Starting Bluetooth OBEX service...
Apr 29 10:02:53 localhost systemd[1043]: Started Bluetooth OBEX service.
Apr 29 10:02:53 localhost kernel: [  256.094511] Bluetooth: RFCOMM TTY layer initialized
Apr 29 10:02:53 localhost kernel: [  256.094531] Bluetooth: RFCOMM socket layer initialized
Apr 29 10:02:53 localhost kernel: [  256.094554] Bluetooth: RFCOMM ver 1.11
Apr 29 10:05:49 localhost bluetoothd[972]: vendor 0x0 product: 0x0
Apr 29 10:06:01 localhost NetworkManager[841]: <info>  [1588154761.9504] manager: (84:CF:BF:8C:48:04): new Bluetooth device (/org/freedesktop/NetworkManager/Devices/4)
Apr 29 10:09:42 localhost bluetoothd[972]: Unable to get io data for Object Push: getpeername: Transport endpoint is not connected (107)
 


èfpé a écrit :

je pensais au câble data... tellement looooourd, et encombraaaaant...


Pour moi il ne s'agit pas d'un contournement, car le problème technique est que le bluetooth ne fonctionne pas du tout, sans même parler d'appairage. Il est impossible de l'activer sur mon installation actuelle (alors qu'on peut au moins l'activer avec Debian 10 en live) et donc de connecter quoi que ce soit. Cela dépasse donc le simple problème du téléphone, et peut-être que trouver une solution pourrait aider des gens avec le même type de matériel. En ce qui me concerne j'ai déjà exposé mes raisons, parfois le câble je l'oublie car je dois souvent me déplacer dans la précipitation pour mon travail, et dans ces moments-là better safe than sorry comme disent les anglais. Maintenant, si tu penses que ce n'est pas vraiment un problème c'est ton droit et rien ne t'obliges à m'aider.


Thinkpad T440P avec osboot

Hors ligne

Pied de page des forums