如何通过蓝牙耳机播放?

什么时候

我正在尝试通过蓝牙将Bose Quiet Comfort连接到笔记本电脑。

我可以像使用其他任何无线蓝牙设备一样将这些耳机连接并配对至手机,而不会出现问题。

命令行连接尝试:

使用bluetoothctl我似乎能够连接,但无法配对:

[bluetooth]# devices
Device 04:52:C7:32:68:16 Bose QuietComfort 35
[bluetooth]# connect 04:52:C7:32:68:16
Attempting to connect to 04:52:C7:32:68:16
Connection successful
[Bose QuietComfort 35]# devices
[Bose QuietComfort 35]#ch)`pair ': pair 04:52:C7:32:68:16
Attempting to pair with 04:52:C7:32:68:16
Failed to pair: org.bluez.Error.AuthenticationFailed
[CHG] Device 04:52:C7:32:68:16 Connected: no
[CHG] Device 04:52:C7:32:68:16 Connected: yes

但是,在蓝牙GUI菜单中,似乎认为我已与设备配对:

在此处输入图片说明

耳机本身似乎从未意识到笔记本电脑已连接,并且在我的声音设置中,我看不到任何可输出到的东西,因此我认为“配对”是虚假的。

在此处输入图片说明

因此,这显然是ubuntu中的问题。

I've tried deleting the device and starting again, but every time I can connect but not pair. I also tried deactivating bluetooth LE as per this answer:

Pair Bose QuietComfort 35 with Ubuntu 16.04 over Bluetooth

but the behaviour did not change.

Here's what happens when I type info <MAC Address>:

Device 04:52:C7:32:68:16
    Name: Bose QuietComfort 35
    Alias: Bose QuietComfort 35
    Paired: no
    Trusted: no
    Blocked: no
    Connected: yes
    LegacyPairing: no
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
    UUID: Bose Corporation          (0000febe-0000-1000-8000-00805f9b34fb)
    Modalias: bluetooth:v009Ep400Cd0106

Not sure that's helpful.

GUI / Blueman Connection attempt:

I found this page, which seems relevant:

Ubuntu 16.04 won't output sound to Bluetooth headphones

I tried using blueman as suggested, which crashes whenever I try to pair my device.

在此处输入图片说明

I tried upgrading the suggested packages by running

sudo apt-get install libpam-systemd libsystemd0 libudev1 systemd ubuntu-mono udev

This stopped the error from appearing but I was still not able to pair with blueman (no error, it just doesn't do anything when I try to pair).

tail -f /var/syslog在打开耳机时尝试跑步,并看到以下消息:

Dec  7 20:18:15 elitebook bluetoothd[860]: Unable to register GATT service with handle 0x0001 for device 04:52:C7:32:68:16
Dec  7 20:18:15 elitebook bluetoothd[860]: Unable to register GATT service with handle 0x0013 for device 04:52:C7:32:68:16

我认为这可能是个线索...

什么时候

看起来基本问题与该问题类似:

https://stackoverflow.com/questions/31380594/linux-bluez-dbus-communication

除了我正在运行systemd linux安装程序之外,因此我必须按照该答案的注释建议进行操作:

对于更新的基于Systemd的系统,将复制/lib/systemd/system/bluetooth.service/etc/systemd/system/bluetooth.service并将ExecStart更改ExecStart=/usr/lib/bluetooth/bluetoothd -E

-Arto Bendiken

因此,我这样做了,重新启动,然后启动bluetoothctl,然后手动连接:

[Bose QuietComfort 35]# connect 04:52:C7:32:68:16 
Attempting to connect to 04:52:C7:32:68:16
[CHG] Device 04:52:C7:32:68:16 Paired: yes
Connection successful

这次我配对时,我的耳机识别出了连接(即使GNOME似乎认为配对已奏效,以前也没有),并且输出设备出现在我的设备列表中。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章