選擇 A2DP 不會改變任何內容,什麼是有效的 conf 檔案?

選擇 A2DP 不會改變任何內容,什麼是有效的 conf 檔案?
Xubuntu 14.04.3
Thinkpad t450s
Mpow Swift headset
$ bluetoothd -v
4.101
$ pulseaudio -v
4.0

A2DP 正在工作(在按照其他線程調整 /etc/bluetooth/audio.conf 檔案之後)。我之前能夠斷開並重新連接耳機。我必須手動選擇 A2DP 而不是 HFP/HSP,但它可以工作。我沒有更改任何版本或運行系統更新,但發生了一些事情,因為現在當我選擇 A2DP 時它沒有執行任何操作。如果選擇“關閉”,則選擇 A2DP 將導致沒有音訊。如果選擇“HFP/HSP”,則選擇 A2DP 將導致仍是 HFP/HSP 輸出。

有沒有人有一個工作設置來發布他們的audio.conf或任何其他文件/設置,以便我可以匹配我所擁有的東西?

是否有設定讓它預設選擇 A2DP?

先致謝!

這是我的audio.conf。 (我嘗試啟用 Socket - 相同的結果。我嘗試啟用 HFP - 相同的結果。)

$ sudo cat /etc/bluetooth/audio.conf
# Configuration file for the audio service

# This section contains options which are not specific to any
# particular interface
[General]

# Switch to master role for incoming connections (defaults to true)
#Master=true

# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Gateway,Source,Socket
#Enable=Gateway,Source
Enable=Source,Sink,Headset,Gateway,Control,Media
Disable=Socket

# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM

# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
AutoConnect=true

# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
[Headset]

# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=false

# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1

# Set to true to enable use of fast connectable mode (faster page scanning)
# for HFP when incoming call starts. Default settings are restored after
# call is answered or rejected. Page scan interval is much shorter and page
# scan type changed to interlaced. Such allows faster connection initiated
# by a headset.
FastConnectable=false

# Just an example of potential config options for the other interfaces
[A2DP]
SBCSources=1
MPEG12Sources=0

答案1

好吧,所以我嘗試更改為禁用耳機,這完全殺死了它。這些選擇將在它們之後(拔出),因此不會輸出任何音訊:

Enable=Source,Sink,Gateway,Control,Media
Disable=Socket,Headset

$ sudo service bluetooth restart 
bluetooth stop/waiting
bluetooth start/running, process 8552
$ sudo alsa force-reload
Unloading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-controller snd-hda-codec snd-hwdep snd-pcm snd-timer (failed: modules still loaded: snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-controller snd-hda-codec snd-hwdep snd-pcm snd-timer).
Loading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-controller snd-hda-codec snd-hwdep snd-pcm snd-timer.
$ pulseaudio -k

然後我把它放回去,它又開始工作了:

Enable=Source,Sink,Gateway,Control,Media,Headset
Disable=Socket

$ sudo service bluetooth restart 
bluetooth stop/waiting
bluetooth start/running, process 15071

我不知道這有什麼意義。有時linux是最糟糕的!

相關內容