knb*_*knb 53 sound speakers unity bluetooth 13.04
2017 年 8 月更新:标记为我接受的解决方案似乎在 Ubuntu 15.10 之前一直有效。对于 16.04+,选择较新的解决方案之一。
对于 16.04+,配置文件/etc/bluetooth/main.conf不是 /etc/bluetooth/audio.conf 。
我有一个蓝牙扬声器,索尼 SRS-BTX300,它可以在 linux/ubuntu 13.04 中工作,但只是在一些摆弄之后。(2013 年 12 月更新:13.10 中仍然存在相同的问题)
每次打开计算机并重新连接扬声器后,我都必须将首选带宽模式设置为“高保真播放”(A2DP)。
该模式每次都会将自身重置为“电话/双工”(= 低带宽)。大约需要 20 次点击来重置扬声器,(点击菜单、断开连接、重新连接、选择模式、测试),而这些点击次数肯定太多了。
如何使“A2DP”模式成为默认模式,并以持久的方式进行?
一些屏幕截图将说明。
通过单击 Unity 顶部面板中的蓝牙图标选择此菜单后...

设置好之后...

...重新启动/挂起计算机后,首选模式将重置为此

小智 30
There's an option in /etc/bluetooth/audio.conf called aAutoConnect=truewhich is hashed out.
sudo nano /etc/bluetooth/audio.conf
Run Code Online (Sandbox Code Playgroud)
Delete the "#" at the start of the AutoConnect=true line
I found enabling this option by removing the # and got things connecting properly with my bluetooth headset
Restart the bluetooth service for the change to take effect:
sudo service bluetooth restart
Run Code Online (Sandbox Code Playgroud)
小智 29
将以下行添加到/etc/bluetooth/audio.conf:
[General]
Disable=Headset
Run Code Online (Sandbox Code Playgroud)
然后运行这个命令:
sudo service bluetooth restart
Run Code Online (Sandbox Code Playgroud)
小智 12
对于那些想知道的人,我发现在 Ubuntu 16.04 中的答案略有不同:
sudo gedit /etc/bluetooth/main.conf
Run Code Online (Sandbox Code Playgroud)
并更新以下行
#AutoEnable=false
Run Code Online (Sandbox Code Playgroud)
到
AutoEnable=true
Run Code Online (Sandbox Code Playgroud)
其次是
sudo service bluetooth restart
Run Code Online (Sandbox Code Playgroud)
对我来说,这在连接蓝牙音频设备时将音频配置文件默认为 A2DP Sink。
我正在使用 Gnome3,一段时间后我的耳机不再以 A2DP 连接。我不得不通过创建文件/var/lib/gdm3/.config/pulse/client.conf(以 root 身份)并添加以下几行来停止 Gnome 创建一个pulseaudio 守护进程:
autospawn = no
daemon-binary = /bin/true
Run Code Online (Sandbox Code Playgroud)
然后将所有者设置为 gdm:
sudo chown gdm:gdm /var/lib/gdm3/.config/pulse/client.conf
Run Code Online (Sandbox Code Playgroud)
然后注销/打开或查找以gdm用户身份运行的pulseaudio进程ps aux | grep pulse
(修剪)输出看起来像:
gdm 2943 10616 ? S<l Sep01 0:00 /usr/bin/pulseaudio..
Run Code Online (Sandbox Code Playgroud)
然后杀死kill <pid>对我来说是的进程2943
bluetoothctl再次运行并连接,然后我可以运行pacmd list-cards并找到我的设备index: 2并使用pacmd set-card-profile 2 a2dp_sink.
终于又上班了!
| 归档时间: |
|
| 查看次数: |
41126 次 |
| 最近记录: |