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 是最糟糕的!