自从从 Ubuntu 22.10 升级到 Ubuntu 23.04 后,蓝牙似乎无法再连接。如果我尝试冷连接到我的便携式扬声器,它会连接一秒钟,然后断开连接。如果我配对并信任我的设备,它将不会自动连接。手动连接时,我收到以下错误:
Connection Failed: br-connection-profile-unavailable.
还bluetooth service status
显示:
root@:/home/# service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-04-30 16:58:12 AEST; 1min 41s ago
Docs: man:bluetoothd(8)
Main PID: 680 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 18371)
Memory: 2.1M
CPU: 35ms
CGroup: /system.slice/bluetooth.service
└─680 /usr/lib/bluetooth/bluetoothd
Apr 30 16:58:12 bluetoothd[680]: Bluetooth daemon 5.66
Apr 30 16:58:12 bluetoothd[680]: Starting SDP server
Apr 30 16:58:12 bluetoothd[680]: profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled
Apr 30 16:58:12 bluetoothd[680]: src/plugin.c:plugin_init() Failed to init vcp plugin
Apr 30 16:58:12 bluetoothd[680]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
Apr 30 16:58:12 bluetoothd[680]: src/plugin.c:plugin_init() Failed to init mcp plugin
Apr 30 16:58:12 bluetoothd[680]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
Apr 30 16:58:12 bluetoothd[680]: src/plugin.c:plugin_init() Failed to init bap plugin
Apr 30 16:58:12 bluetoothd[680]: Bluetooth management interface 1.22 initialized
Apr 30 16:58:12 systemd[1]: Started bluetooth.service - Bluetooth service.
我尝试过重启、各种修复/etc/bluetooth.main.cnf
和重新安装 Ubuntu,但似乎都无济于事。我认为这只是 23.04 早期版本的问题。
答案1
我遇到过同样的问题
这对我有用
sudo apt-get purge bluez-alsa-utils pulseaudio-module-bluetooth ; sudo apt-get install --reinstall libspa-0.2-bluetooth && systemctl reboot
设备(lsusb)
Bus 002 Device 002: ID 0bda:b85c Realtek Semiconductor Corp. Bluetooth Radio
答案2
我遇到了完全相同的问题,似乎系统中未安装 bluez-alsa-utils。安装它可以解决我的问题:
sudo apt install bluez-alsa-utils
然后执行 schwarzheit 的命令行就成功了,谢谢!
答案3
这对我有用。
cd /lib/firmware/brcm
sudo wget https://github.com/winterheart/broadcom-bt-firmware/raw/master/brcm/BCM20702A1-0a5c-21e6.hcd
reboot
感谢@jeremy31: https://ubuntuforums.org/showthread.php?t=2486421&p=14142312#post14142312
答案4
我尝试了几种建议,但都无济于事。除非只需要两三个命令,否则我会尽量避免使用命令提示符的解决方案,因此我首先在蓝牙管理器 GUI 中搜索了所有选项。瞧,我取消选中了菜单中“查看”选项下的“隐藏未命名设备”复选框。现在它显示了所有设备。请注意,我的反复试验过程相当马虎,因此可能是之前应用的解决方案之一在几次重启后就奏效了,但我认为值得一提。