Pb connection bluetooth avec bluez

Salut,
Je ne peux pas me connecter à mes périphériques bluetooth (mais je peux m’appairer et aussi les voir)

Merci d’avance Théo

root@theo-inspiron-15-3552:/home/theo# service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since ven. 2016-09-30 19:18:28 CEST; 8min ago
     Docs: man:bluetoothd(8)
 Main PID: 520 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─520 /usr/lib/bluetooth/bluetoothd

sept. 30 19:19:57 theo-inspiron-15-3552 bluetoothd[520]: Failed to set mode: Blocked through rfkill (0x12)
sept. 30 19:20:11 theo-inspiron-15-3552 bluetoothd[520]: GAP and GATT are mandatory
sept. 30 19:20:11 theo-inspiron-15-3552 bluetoothd[520]: gap-gatt-profile profile probe failed for BC:D1:D3:D1:B5:BB
sept. 30 19:20:11 theo-inspiron-15-3552 bluetoothd[520]: a2dp-source profile connect failed for BC:D1:D3:D1:B5:BB: Protocol not available

On dirait que c’est rfkill qui bloque. C’est le système qui permet d’activer et désactiver les cartes radio.

Affiche-nous le retour de la commande rfkill list en tant que root. Si tu ne l’as pas, il est dans le paquet rfkill.

root@theo-inspiron-15-3552:/home/theo# rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: hci0: Bluetooth
	Soft blocked: yes
	Hard blocked: no

J’ai débloqué rfkill mais il y a un problème avec sap-server

oct. 01 12:10:26 theo-inspiron-15-3552 systemd[1]: Starting Bluetooth service...
oct. 01 12:10:28 theo-inspiron-15-3552 bluetoothd[517]: Bluetooth daemon 5.23
oct. 01 12:10:31 theo-inspiron-15-3552 systemd[1]: Started Bluetooth service.
oct. 01 12:10:31 theo-inspiron-15-3552 bluetoothd[517]: Starting SDP server
oct. 01 12:10:33 theo-inspiron-15-3552 bluetoothd[517]: Bluetooth management interface 1.10 initialized
oct. 01 12:10:33 theo-inspiron-15-3552 bluetoothd[517]: Sap driver initialization failed.
oct. 01 12:10:33 theo-inspiron-15-3552 bluetoothd[517]: sap-server: Operation not permitted (1)

Une recherche rapide m’amène à une discussion ici et une solution plus rapide ici.

Édit : je m’aperçois que pour la pérennité de ma réponse, il vaut mieux que je copie/colle la solution proposée ici-même :

Open /etc/systemd/system/bluetooth.target.wants/bluetooth.service
Change:
ExecStart=/usr/lib/bluetooth/bluetoothd
To
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
Reload the systemd:
$ sudo systemctl daemon-reload
Restart the bluetooth:
$ sudo service bluetooth restart
Get the bluetooth status:
$ sudo service bluetooth status
bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Sat 2016-04-30 10:38:46 UTC; 6s ago
     Docs: man:bluetoothd(8)
 Main PID: 12775 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─12775 /usr/lib/bluetooth/bluetoothd --noplugin=sap

Oui d’accord, c’est fait mais un autre problème persiste :

  root@theo-inspiron-15-3552:/home/theo# service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since sam. 2016-10-01 16:18:42 CEST; 38min ago
     Docs: man:bluetoothd(8)
 Main PID: 518 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─518 /usr/lib/bluetooth/bluetoothd --noplugin=sap

oct. 01 16:18:43 theo-inspiron-15-3552 bluetoothd[518]: Bluetooth management interface 1.10 initialized
oct. 01 16:57:25 theo-inspiron-15-3552 bluetoothd[518]: GAP and GATT are mandatory
oct. 01 16:57:25 theo-inspiron-15-3552 bluetoothd[518]: gap-gatt-profile profile probe failed for BC:D1:D3:D1:B5:BB
oct. 01 16:57:25 theo-inspiron-15-3552 bluetoothd[518]: a2dp-source profile connect failed for BC:D1:D3:D1:B5:BB: Protocol not available

Malgré cette erreur le service semble fonctionner non ? Ce message a-t-il un quelconque effet sur ton utilisation ?

Sinon, à nouveau avec une recherche simple, je tombe rapidement sur la solution à ton problème.

Édit : je m’aperçois que pour la pérennité de ma réponse, il vaut mieux que je copie/colle la solution proposée ici-même : apt-get install pulseaudio-module-bluetooth.

Non le service ne fonctionne toujours pas et je vais aussi faire des recherches de mon coté mais ça n’a rien donné tout comme l’installation du paquet pulseaudio

root@theo-inspiron-15-3552:/home/theo# service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since sam. 2016-10-01 19:22:10 CEST; 4min 31s ago
     Docs: man:bluetoothd(8)
 Main PID: 518 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─518 /usr/lib/bluetooth/bluetoothd --noplugin=sap

oct. 01 19:22:37 theo-inspiron-15-3552 bluetoothd[518]: Failed to set mode: Blocked through rfkill (0x12)
oct. 01 19:22:47 theo-inspiron-15-3552 bluetoothd[518]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource
oct. 01 19:22:47 theo-inspiron-15-3552 bluetoothd[518]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink
oct. 01 19:22:52 theo-inspiron-15-3552 bluetoothd[518]: Failed to set mode: Blocked through rfkill (0x12)
oct. 01 19:23:05 theo-inspiron-15-3552 bluetoothd[518]: Endpoint unregistered: sender=:1.29 path=/MediaEndpoint/A2DPSource
oct. 01 19:23:05 theo-inspiron-15-3552 bluetoothd[518]: Endpoint unregistered: sender=:1.29 path=/MediaEndpoint/A2DPSink
oct. 01 19:25:43 theo-inspiron-15-3552 bluetoothd[518]: Failed to set mode: Blocked through rfkill (0x12)
oct. 01 19:26:14 theo-inspiron-15-3552 bluetoothd[518]: GAP and GATT are mandatory
oct. 01 19:26:14 theo-inspiron-15-3552 bluetoothd[518]: gap-gatt-profile profile probe failed for BC:D1:D3:D1:B5:BB
oct. 01 19:26:14 theo-inspiron-15-3552 bluetoothd[518]: Access denied: Rejecting service auth (0000110d-0000-1000-8000-00805f9b34fb) for /or...not HID
Hint: Some lines were ellipsized, use -l to show in full.