Bluetooth Kopfhörer keine Verbindung

Sound, Digitalkameras, TV+Video und Spiele.
Antworten
hnzngrmpf
Beiträge: 50
Registriert: 04.03.2016 22:34:03

Bluetooth Kopfhörer keine Verbindung

Beitrag von hnzngrmpf » 29.04.2021 07:14:25

Hallo liebe Gemeinde

Ich muss um eure Hilfe bitten: Ich habe ein Bluetooth Headset, zu dem ich eine Verbindung mit einem USB-Dongle herstellen konnte. Allerdings lief die Verbindung nur kurzzeitig, dann gab es massive Aussetzer.

Die Verbindung versuche ich mit blueman (grafische Oberfläche "blueman manger 2.0.8") herzustellen. In der Liste von blueman wird das Headset angezeigt mit Name und mac-adresse. Wenn ich es mit Rechtsklick einrichten möchte, wähle ich bei "connect" "verbinde mit Headset". Dann geht blueman weiter bis "finished" mit der Meldung "Gerät erfolgreich hinzugefügt, aber Verbindung fehlgeschlagen".

Edit:
Wenn ich mit blueman verbinden möchte, steht unten in der Statuszeile
Verbindung fehlgeschlagen: blueman.bluez.errors.DBusFailedError: Protocol not available... [/edit]

Dann bin ich in die Termialkonsole:

Code: Alles auswählen

sudo dmesg | grep -i bluetooth

[    8.966817] Bluetooth: Core ver 2.22
[    8.966841] Bluetooth: HCI device and connection manager initialized
[    8.966844] Bluetooth: HCI socket layer initialized
[    8.966846] Bluetooth: L2CAP socket layer initialized
[    8.966851] Bluetooth: SCO socket layer initialized
[   17.188409] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.188410] Bluetooth: BNEP filters: protocol multicast
[   17.188413] Bluetooth: BNEP socket layer initialized
[   70.223278] Bluetooth: RFCOMM TTY layer initialized
[   70.223282] Bluetooth: RFCOMM socket layer initialized
[   70.223289] Bluetooth: RFCOMM ver 1.11

Code: Alles auswählen

hciconfig --all

hci0:	Type: Primary  Bus: USB
	BD Address: 00:1A:7D:DA:71:08  ACL MTU: 310:10  SCO MTU: 64:8
	UP RUNNING PSCAN 
	RX bytes:1280 acl:0 sco:0 events:82 errors:0
	TX bytes:4512 acl:0 sco:0 commands:82 errors:0
	Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: SLAVE ACCEPT 
	Name: 'red-lizard'
	Class: 0x100104
	Service Classes: Object Transfer
	Device Class: Computer, Desktop workstation
	HCI Version: 4.0 (0x6)  Revision: 0x22bb
	LMP Version: 4.0 (0x6)  Subversion: 0x22bb
	Manufacturer: Cambridge Silicon Radio (10)

Code: Alles auswählen

lsusb
Bus 004 Device 002: ID 8087:8000 Intel Corp. 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 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 003: ID 03f0:094a HP, Inc Optical Mouse [672662-001]
Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Alles auswählen

sudo rfkill list
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

Code: Alles auswählen

sudo systemctl status bluetooth

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-04-29 05:59:15 CEST; 14min ago
     Docs: man:bluetoothd(8)
 Main PID: 443 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   Memory: 2.9M
   CGroup: /system.slice/bluetooth.service
           └─443 /usr/lib/bluetooth/bluetoothd

Apr 29 05:59:09 red-lizard systemd[1]: Starting Bluetooth service...
Apr 29 05:59:11 red-lizard bluetoothd[443]: Bluetooth daemon 5.50
Apr 29 05:59:15 red-lizard systemd[1]: Started Bluetooth service.
Apr 29 05:59:15 red-lizard bluetoothd[443]: Starting SDP server
Apr 29 05:59:15 red-lizard bluetoothd[443]: Bluetooth management interface 1.14 initialized
Apr 29 05:59:15 red-lizard bluetoothd[443]: Sap driver initialization failed.
Apr 29 05:59:15 red-lizard bluetoothd[443]: sap-server: Operation not permitted (1)
Dass die Information zum Sap driver und server rot markiert waren, habe ich mal nicht für problematisch angesehen, weil https://www.linux-magazine.com/Issues/2 ... uetoothctl in diesem Bild https://www.linux-magazine.com/Issues/2 ... article_f1 Sap auch rot anzeigt, im Text aber nicht darauf Bezug nimmt, dass das problematisch sei.

Dann habe ich dem gerade verlinkten Beitrag in linux-magazine.com zufolge mit bluetoothctl versucht:

Code: Alles auswählen

$ bluetoothctl
Agent registered
[CHG] Device 10:70:27:1A:0A:4A Connected: yes
[CHG] Device 10:70:27:1A:0A:4A Connected: no
[bluetooth]# list
Controller 00:1A:7D:DA:71:08 red-lizard [default]
[bluetooth]# show
Controller 00:1A:7D:DA:71:08 (public)
	Name: red-lizard
	Alias: red-lizard
	Class: 0x00100104
	Powered: yes
	Discoverable: no
	Pairable: yes
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
	UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
	UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d0532
	Discovering: no
[bluetooth]# agent on
Agent is already registered
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 00:1A:7D:DA:71:08 Discoverable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:08 Discovering: yes
[CHG] Device 10:70:27:1A:0A:4A RSSI: -67
[CHG] Device 10:70:27:1A:0A:4A TxPower: 0
[CHG] Device 10:70:27:1A:0A:4A RSSI: -77
[CHG] Device 10:70:27:1A:0A:4A RSSI: -93
[CHG] Device 10:70:27:1A:0A:4A RSSI: -76
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# devices
Device 10:70:27:1A:0A:4A DOMAX-NC70
[CHG] Device 10:70:27:1A:0A:4A RSSI: -95
[CHG] Device 10:70:27:1A:0A:4A RSSI: -70
[CHG] Device 10:70:27:1A:0A:4A RSSI: -79
[CHG] Device 10:70:27:1A:0A:4A RSSI: -90
[CHG] Device 10:70:27:1A:0A:4A RSSI: -74
[CHG] Device 10:70:27:1A:0A:4A RSSI: -93
[CHG] Device 10:70:27:1A:0A:4A RSSI: -70
[bluetooth]# info 10:70:27:1A:0A:4A
Device 10:70:27:1A:0A:4A (public)
	Name: DOMAX-NC70
	Alias: DOMAX-NC70
	Class: 0x00240418
	Icon: audio-card
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	Modalias: bluetooth:v000ApFFFFdFFFF
	RSSI: -70
	TxPower: 0
[CHG] Controller 00:1A:7D:DA:71:08 Discoverable: no
[CHG] Device 10:70:27:1A:0A:4A RSSI: -78
[CHG] Device 10:70:27:1A:0A:4A RSSI: -93
[CHG] Device 10:70:27:1A:0A:4A RSSI: -71
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 00:1A:7D:DA:71:08 Discoverable: yes
[CHG] Device 10:70:27:1A:0A:4A RSSI: -81
[bluetooth]# connect 10:70:27:1A:0A:4A
Attempting to connect to 10:70:27:1A:0A:4A
Failed to connect: org.bluez.Error.Failed
[CHG] Device 10:70:27:1A:0A:4A RSSI: -68
[bluetooth]# info 10:70:27:1A:0A:4A
Device 10:70:27:1A:0A:4A (public)
	Name: DOMAX-NC70
	Alias: DOMAX-NC70
	Class: 0x00240418
	Icon: audio-card
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	Modalias: bluetooth:v000ApFFFFdFFFF
	RSSI: -68
	TxPower: 0
[CHG] Device 10:70:27:1A:0A:4A RSSI: -77
Mit der Meldung Failed to connect: org.bluez.Error.Failed komme ich jetzt aber nicht weiter...
Ich bitte um Hilfe :(

Oh, bevor ich diesen Beitrag abgesendet habe, habe ich nochmal den bluetooth-status abgefragt, da wurde jetzt auch das a2dp-profile fehlerhaft gemeldet:

Code: Alles auswählen

$ sudo systemctl status bluetooth
[sudo] Passwort für nonadmin: 
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-04-29 05:59:15 CEST; 1h 8min ago
     Docs: man:bluetoothd(8)
 Main PID: 443 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   Memory: 3.1M
   CGroup: /system.slice/bluetooth.service
           └─443 /usr/lib/bluetooth/bluetoothd

Apr 29 05:59:09 red-lizard systemd[1]: Starting Bluetooth service...
Apr 29 05:59:11 red-lizard bluetoothd[443]: Bluetooth daemon 5.50
Apr 29 05:59:15 red-lizard systemd[1]: Started Bluetooth service.
Apr 29 05:59:15 red-lizard bluetoothd[443]: Starting SDP server
Apr 29 05:59:15 red-lizard bluetoothd[443]: Bluetooth management interface 1.14 initialized
Apr 29 05:59:15 red-lizard bluetoothd[443]: [Sap driver initialization failed.
Apr 29 05:59:15 red-lizard bluetoothd[443]: sap-server: Operation not permitted (1)
Apr 29 06:41:07 red-lizard bluetoothd[443]: a2dp-sink profile connect failed for 10:70:27:1A:0A:4A: Protocol not available
Apr 29 06:57:16 red-lizard bluetoothd[443]: a2dp-sink profile connect failed for 10:70:27:1A:0A:4A: Protocol not available
Die Meldungen nach den Doppelpunkten in den letzten vier Zeilen waren rot... :?

DeletedUserReAsG

Re: Bluetooth Kopfhörer keine Verbindung

Beitrag von DeletedUserReAsG » 29.04.2021 07:57:36

hnzngrmpf hat geschrieben: ↑ zum Beitrag ↑
29.04.2021 07:14:25
Mit der Meldung Failed to connect: org.bluez.Error.Failed komme ich jetzt aber nicht weiter.
Ist in der Tat nicht sehr aussagekräftig. Wenn bei mir die Meldung auftritt, versuche ich mittlerweile zunächst auf Verdacht, neu zu pairen – solange kein grundlegender Fehler vorliegt, behebt es das Problem in der Regel:
remove [device] → scan on → nach Erscheinen des Devices: scan off → pair [device] → trust [device] → connect [device] (wenn’s dann noch nicht verbunden ist).

Zu beachten wäre, dass dafür die Automatismen (von irgendwelchen „Managern“, etc.) ausgeschaltet werden sollten. Sonst greifen die sich u.U. das Device, und es kommt zum gleichen Fehler.

hnzngrmpf
Beiträge: 50
Registriert: 04.03.2016 22:34:03

Re: Bluetooth Kopfhörer keine Verbindung

Beitrag von hnzngrmpf » 29.04.2021 09:21:59

Nach weiterer Recherche habe ich erfolgreich folgendes unternommen:

Code: Alles auswählen

pactl unload-module  module-bluetooth-discover
pactl   load-module  module-bluetooth-discover
bluetoothctl
Agent registered
[bluetooth]# devices
Device 10:70:27:1A:0A:4A DOMAX-NC70
[bluetooth]# 
[bluetooth]# remove 10:70:27:1A:0A:4A
[DEL] Device 10:70:27:1A:0A:4A DOMAX-NC70
Device has been removed
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful

------Headset auschalten und wieder einschalten

[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:08 Discovering: yes
[NEW] Device 10:70:27:1A:0A:4A DOMAX-NC70
[bluetooth]# scan off
[CHG] Device 10:70:27:1A:0A:4A TxPower is nil
[CHG] Device 10:70:27:1A:0A:4A RSSI is nil
[CHG] Controller 00:1A:7D:DA:71:08 Discovering: no
Discovery stopped
[bluetooth]# trust 10:70:27:1A:0A:4A
[CHG] Device 10:70:27:1A:0A:4A Trusted: yes
Changing 10:70:27:1A:0A:4A trust succeeded
[bluetooth]# pair 10:70:27:1A:0A:4A
Attempting to pair with 10:70:27:1A:0A:4A
[CHG] Device 10:70:27:1A:0A:4A Connected: yes
[CHG] Device 10:70:27:1A:0A:4A UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 10:70:27:1A:0A:4A UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 10:70:27:1A:0A:4A UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 10:70:27:1A:0A:4A UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 10:70:27:1A:0A:4A UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 10:70:27:1A:0A:4A UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 10:70:27:1A:0A:4A ServicesResolved: yes
[CHG] Device 10:70:27:1A:0A:4A Paired: yes
Pairing successful
[CHG] Device 10:70:27:1A:0A:4A ServicesResolved: no
[CHG] Device 10:70:27:1A:0A:4A Connected: no
[bluetooth]# connect 10:70:27:1A:0A:4A
Attempting to connect to 10:70:27:1A:0A:4A
[CHG] Device 10:70:27:1A:0A:4A Connected: yes
Connection successful
[CHG] Device 10:70:27:1A:0A:4A ServicesResolved: yes
[DOMAX-NC70]#
Im wesentlichen also module-bluetooth-discover beenden und neu starten, das Headset entfernen und neu verbinden und dabei die Reihenfolge zuerst trust dann pair.

Jetzt ist das Headset wenigstens verbunden.

Aber die Verbindung hat nach wenigen Minuten ziemliche Aussetzer. Stimmt ggf. etwa mit der Bitrate nicht?

Antworten