在 Gnome 的蓝牙设置中,我可以连接到我的耳机。但是,尽管在 GUI 中看到它们处于 [已连接] 状态,并且通过bluetoothctl info
[1] 进行“配对”,但我无法选择它们作为输出设备。我能够在终端中手动解决这个问题[2],之后可以在 Gnome 的声音设置中选择该设备作为输出设备。但是,这种方法并不可靠(我现在无法重现这种解决方法),这显然不应该是用户选择蓝牙输出设备的正常方式。
这是预期行为吗?这是错误吗?应该针对哪个项目提交:bluez、pipewire、gnome 还是内核?
[1]
bluetoothctl info
Device 28:6F:40:AB:1B:5C (public)
Name: JBL LIVE PRO 2 TWS-LE
Alias: JBL LIVE PRO 2 TWS-LE
Class: 0x00240404
Icon: audio-headset
Paired: yes
Bonded: yes
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: Amazon.com Services, Inc. (0000fe03-0000-1000-8000-00805f9b34fb)
UUID: Google (0000fe2c-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (11111111-1111-1111-1111-111111111111)
UUID: Vendor specific (65786365-6c70-6f69-6e74-2e636f6d0000)
UUID: Vendor specific (66666666-6666-6666-6666-666666666666)
ServiceData Key: 0000fe2c-0000-1000-8000-00805f9b34fb
ServiceData Value:
00 40 80 d0 28 10 34 7f 64 28 .@..(.4.d(
RSSI: -54
TxPower: -15
[2]
bluetoothctl scan on
# Find the device's address
bluetoothctl connect <address>
# Then the device became visible as an endpoint
[3] 蓝牙控制器信息
Controller A8:BB:CF:20:9F:AF (public)
Name: guest
Alias: guest
Class: 0x007c010c
Powered: yes
Discoverable: no
DiscoverableTimeout: 0x000000b4
Pairable: no
UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0542
Discovering: no
Roles: central
Roles: peripheral
Advertising Features:
ActiveInstances: 0x00 (0)
SupportedInstances: 0x05 (5)
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name
系统信息
Ubuntu Release: Lunar Lobster
Bluez Version: 5.66-0ubuntu1
Pipewire Version: 0.3.65-3
Kernel Version: 6.2.0-26-generic
Bluetooth endpoint: JBL LIVE PRO 2 TWS
答案1
我在 Ubuntu 23.04 Lunar(带有 pipewire)上遇到了同样的问题,但您的手动解决方案似乎不是一个解决方案。
无论如何,我尝试了很多方法。但基本上对我有用的是以下方法。
sudo apt --reinstall install pipewire-media-session
它杀死了我的 Ubuntu 桌面,所以我在文本中执行了以下操作:
sudo apt install ubuntu-desktop
然后我重新初始化了一些与管道相关的东西:
systemctl --user enable --now pipewire && systemctl --user enable --now wireplumber && systemctl --user enable --now pipewire-pulse
(我收到一个奇怪的错误,说没有安装 wireplumber,所以我安装了它sudo apt install wireplumber
并重新运行了前一个命令)。
我的 Sony MX5 终于开始全面发挥作用了。 截图:Ubuntu 23.04 Lunar 上的 Sony MX5