从今天早上开始,我一直无法将我的蓝牙耳机连接到我的 ubuntu Gnome 16.04 机器。就在昨天它工作正常。
现在,每当我尝试配对/连接到我的计算机时,它都会配对但无法连接。
/var/log/syslog文件中的消息:
Mar 5 14:59:28 Mijolnir bluetoothd[833]: a2dp-sink profile connect failed for 00:25:DB:70:00:F2: Protocol not available
Run Code Online (Sandbox Code Playgroud)
的输出[bluetooth]# info <MAC>:
Device 00:25:DB:70:00:F2
Name: G-CUBE BH-860
Alias: G-CUBE BH-860
Class: 0x240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
RSSI: -50
Run Code Online (Sandbox Code Playgroud)
的输出[bluetooth]# show:
Controller A0:88:69:CC:48:9E
Name: Mijolnir
Alias: Mijolnir
Class: 0x000000
Powered: yes
Discoverable: yes
Pairable: yes
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0525
Discovering: yes
Run Code Online (Sandbox Code Playgroud)
输出到rfkill list:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Run Code Online (Sandbox Code Playgroud)
有人可以告诉我如何解决这个问题吗?
所以经过一些挖掘,我发现pulseaudio和bluez存在问题..与委托给gstreamer的协议有关,但我似乎找不到我读到这个的帖子。一定是最新更新出了问题,因为前一天我的蓝牙工作正常
无论如何..为我解决这个问题的是清除pulseaudio并重新安装它。根据这篇文章:
$ sudo apt-get purge pulseaudio
$ sudo apt-get clean && sudo apt-get autoremove
$ sudo apt-get install pulseaudio*
$ sudo alsa force-reload
$ pavucontrol
Run Code Online (Sandbox Code Playgroud)
并重新启动。
我曾尝试仅清除并重新安装pulseaudio蓝牙模块。但这并没有解决我的问题。所以在我安装pulseaudio的步骤中,请注意我安装了pulseaudio*. 这将安装所有pulseaudio模块,包括蓝牙。您实际上不需要运行 pavucontrol,因为您可能需要安装它。它对我们所做的一切,实际上就是重新启动pulseaudio。我决定安装它,因为它有更多的实用程序和脉冲音频设置选项。
该帖子建议进行更多调整。但是在重新启动后为我解决了配对/连接问题,所以我从未解决过这个问题。
我之前在pulseaudio上遇到的一个问题在我重新安装后立即出现,其中 a2dp 无法识别。如果它发生在您身上,请查看此帖子以获取修复。
现在一切都按预期工作。
| 归档时间: |
|
| 查看次数: |
14869 次 |
| 最近记录: |