我完全无法连接到任何蓝牙耳机,直到按照第一个答案中的步骤操作这个论坛帖子:
sudo apt-get install pulseaudio-module-bluetooth
sudo killall pulseaudio
pulseaudio --start
sudo systemctl restart bluetooth
我宁愿不必在每次启动后都执行此操作。我假设这组命令存在一个潜在的问题,但我不知道如何诊断它。
该问题的原始发布者说,将这些行运行到启动脚本可以解决问题,但我对它们没有同样的运气:
exec --no-startup-id pactl load-module module-bluetooth-policy
exec --no-startup-id pactl load-module module-bluetooth-discover
Failure: Module initialization failed
当我尝试运行这些命令时,我得到了。
关于我的具体问题的更多信息:
启动后,当我尝试连接到蓝牙耳机时,我立即收到Failed to connect: org.bluez.Error.Failed
.
运行时systemctl status bluetooth
我得到:
Nov 23 14:31:11 boop bluetoothd[1225]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectionInterval” in group “Controler"
Nov 23 14:31:11 boop bluetoothd[1225]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLatency” in group “Controller”
Nov 23 14:31:11 boop bluetoothd[1225]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSupervisionTimeout” in group “Controller"
Nov 23 14:31:11 boop bluetoothd[1225]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnecttimeout” in group “Controller”
Nov 23 14:31:11 boop bluetoothd[1225]: Starting SDP server
Nov 23 14:31:11 boop bluetoothd[1225]: Bluetooth management interface 1.18 initialized
Nov 23 14:31:11 boop bluetoothd[1225]: Endpoint registered: sender=:1.168 path=/MediaEndpoint/A2DPSink/sbc
Nov 23 14:31:11 boop bluetoothd[1225]: Endpoint registered: sender=:1.168 path=/MediaEndpoint/A2DPSource/sbc
Nov 23 14:31:25 boop bluetoothd[1225]: /org/bluez/hci0/dev_F4_7D_EF_4F_43_98/sep1/fd0: fd(37) ready
请注意,除了之前的输出之外,我有时还会得到src/service.c:btd_service_connect() a2dp-sink profile connect failed for [device mac address]: Protocol not available
如果我可以提供任何其他信息,请询问。