我使用的是 PopOS 21.04。直到最近,一切都运行良好,但经过一些更新后,我无法从“设置”面板启用蓝牙。我尝试从命令行启用蓝牙,bluetoothctl scan on
但收到一条错误消息,内容如下:
$ bluetoothctl scan on
Connection ":1.116" is not allowed to own the service "org.bluez" due to security policies in the configuration file
我将 -d 标志添加到 bluetooth.service 的ExecStart
参数中,并在冷启动后获得以下调试日志:
$ journalctl --unit=bluetooth -f
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/profile.c:ext_adapter_probe() ":1.124/org/bluez/obex/00005005_0000_1000_8000_0002ee000001/00005005-0000-1000-8000-0002ee000001" probed
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10010
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000008-0000-1000-8000-00805f9
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00005005-0000-1000-8000-0002ee0
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 20 10:25:08 nilanjan-mitra bluetoothd[915]: src/adapter.c:add_uuid() sending add uuid command for index 0
这些是 dmesg 日志:
$ dmesg | grep Bluetooth
[ 6.558671] Bluetooth: Core ver 2.22
[ 6.558691] Bluetooth: HCI device and connection manager initialized
[ 6.558694] Bluetooth: HCI socket layer initialized
[ 6.558696] Bluetooth: L2CAP socket layer initialized
[ 6.558699] Bluetooth: SCO socket layer initialized
[ 6.704062] Bluetooth: hci0: Firmware revision 0.1 build 6 week 12 2021
[ 7.781114] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 7.781117] Bluetooth: BNEP filters: protocol multicast
[ 7.781121] Bluetooth: BNEP socket layer initialized
[ 285.103971] Bluetooth: RFCOMM TTY layer initialized
[ 285.103979] Bluetooth: RFCOMM socket layer initialized
[ 285.103985] Bluetooth: RFCOMM ver 1.11
另外,这是以下的输出bluetoothd
:
$ bluetoothd
D-Bus setup failed: Connection ":1.126" is not allowed to own the service "org.bluez" due to security policies in the configuration file
当我运行时systemctl restart bluetooth
,蓝牙已打开,但当我从“设置”面板将其关闭时,我必须再次重新启动服务才能重新打开蓝牙。 BlueZ 版本是 5.55。
我还重新启动到恢复分区并执行全新安装,一切都运行良好,直到我使用apt update && apt upgrade
.
关于如何解决这个问题或者为什么会发生这种情况有什么想法吗?我尝试寻找Connection ":1.126" is not allowed to own the service "org.bluez" due to security policies
错误,但找不到任何东西。