私は現在、ubuntu 16.04とa2dpをインストールしましたが、これはフレッシュインストールでの作業に使用されていましたが、最後のオプションとして残したいと思います。ペアリングがBluetooth設定から消去され、再度ペアリングされると、a2dpプロファイル上にある場合がありますが、ヘッドセットを切断してから再接続すると、a2dpプロファイルは機能しなくなります(a2dp上にあると表示されます)。 HSP / HSFに切り替えた後、a2dpに設定できません。
やってみました:
pacmd set-card-profile <index> a2dp_sink
しかし、次のエラーが発生します:
"Failed to set card profile to 'a2dp_sink'"
私はLinuxの経験があまりないので、ログを取得する方法やログで何を探すべきかわかりませんが、これはpacmdリストカードから取得しました:
動作する場合:
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:
そうでない場合:
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:
そして、所有するモジュールは次のとおりです。
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"
/etc/bluetooth/audio.confを変更してbluemanをインストールしようとしましたが、機能しませんでした。また、bluezとpulseaudioを再インストールしようとしましたが、何も変わりませんでした。
関連:MySQLでrootとしてログインする方法は?何が悪いのかを知り、それを修正する方法はありますか?
ベストアンサー
システムがA2DPシンクとして検出されるようにするには(たとえば、コンピューターのスピーカーを介して携帯電話から音楽を再生するため)、Enable=Source,Sink,Media,Socket
を追加します。 [General]
の下 /etc/bluetooth/audio.conf
にあります 。
これを行った後、Bluetoothデーモンを再起動します
systemctl restart bluetooth
ヘッドフォンデバイスを接続します
bluetoothctl
connect <MAC>
カードを確認してプロファイルを設定します
pactl list cards short
pacmd set-card-profile <index> <profile>