Ich habe derzeit ubuntu 16.04 installiert und a2dp hat früher an einer Neuinstallation gearbeitet, die ich lieber als letzte Option belassen würde. Wenn die Kopplung aus den Bluetooth-Einstellungen gelöscht und erneut gekoppelt wird, befindet sie sich manchmal im a2dp-Profil, aber wenn das Headset getrennt und dann wieder verbunden wird, funktionieren die a2dp-Profile nicht mehr (obwohl es auf a2dp steht), es funktioniert nur nach dem Wechsel zu HSP/HSF und dann kann ich es nicht auf a2dp einstellen.
Ich habe versucht, Folgendes zu tun:
pacmd set-card-profile <index> a2dp_sink
aber es kommt folgender Fehler:
"Failed to set card profile to 'a2dp_sink'"
Ich bin ziemlich unerfahren in Linux, daher weiß ich nicht, wie ich Protokolle bekomme oder wonach ich in ihnen suchen soll, aber ich habe dies von pacmd list-cards:
Wenn es funktioniert:
name: <bluez_card.50_C9_71_97_A1_86>
driver: <module-bluez5-device.c>
owner module: 27
properties:
device.description = "Jabra REVO a4.0.0"
device.string = "50:C9:71:97:A1:86"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_50_C9_71_97_A1_86"
bluez.class = "0x240404"
bluez.alias = "Jabra REVO a4.0.0"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
profiles:
headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown)
a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: unknown)
off: Off (priority 0, available: yes)
active profile: <a2dp_sink>
sinks:
bluez_sink.50_C9_71_97_A1_86/#6: Jabra REVO a4.0.0
sources:
bluez_sink.50_C9_71_97_A1_86.monitor/#10: Monitor of Jabra REVO a4.0.0
ports:
headset-output: Headset (priority 0, latency offset 0 usec, available: unknown)
properties:
headset-input: Headset (priority 0, latency offset 0 usec, available: unknown)
properties:
Wenn nicht:
name: <bluez_card.50_C9_71_97_A1_86>
driver: <module-bluez5-device.c>
owner module: 25
properties:
device.description = "Jabra REVO a4.0.0"
device.string = "50:C9:71:97:A1:86"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_50_C9_71_97_A1_86"
bluez.class = "0x240404"
bluez.alias = "Jabra REVO a4.0.0"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
profiles:
headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown)
a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: yes)
off: Off (priority 0, available: yes)
active profile: <off>
ports:
headset-output: Headset (priority 0, latency offset 0 usec, available: yes)
properties:
headset-input: Headset (priority 0, latency offset 0 usec, available: unknown)
properties:
Und das besitzende Modul ist:
name: <module-bluez5-device>
argument: <path=/org/bluez/hci0/dev_50_C9_71_97_A1_86>
used: 0
load once: no
properties:
module.author = "João Paulo Rechi Vita"
module.description = "BlueZ 5 Bluetooth audio sink and source"
module.version = "8.0"
Ich habe bereits versucht, /etc/bluetooth/audio.conf zu ändern und blueman zu installieren, aber es hat nicht funktioniert. Ich habe auch versucht, bluez und pulseaudio neu zu installieren, aber es hat sich nichts geändert.
Verwandte:Wie melde ich mich als root in MySQL an?Kann ich irgendwie feststellen, was falsch ist, und es beheben?
Beste Antwort
Damit Ihr System als A2DP-Senke erkannt werden kann (z. B. um Musik von Ihrem Telefon über Ihre Computerlautsprecher abzuspielen), fügen Sie Enable=Source,Sink,Media,Socket
hinzu unter [General]
in /etc/bluetooth/audio.conf
.
Starten Sie danach den Bluetooth-Daemon neu
systemctl restart bluetooth
Schließen Sie Ihr Kopfhörergerät an
bluetoothctl
connect <MAC>
Überprüfen Sie Ihre Karte und legen Sie Ihr Profil fest
pactl list cards short
pacmd set-card-profile <index> <profile>