我正在写JavaScript 的 BLE 库在我重启电脑后,Bluez 停止工作
当我写作时,bluetoothd -n
我得到了这个:
➜ bluetoothd -n
bluetoothd[2728]: Bluetooth daemon 5.48
D-Bus setup failed: Connection ":1.75" is not allowed to own the service "org.bluez" due to security policies in the configuration file
bluetoothd[2728]: Unable to get on D-Bus
我得到sudo
了这个:
➜ sudo bluetoothd -n
bluetoothd[2751]: Bluetooth daemon 5.48
D-Bus setup failed: Name already in use
bluetoothd[2751]: Unable to get on D-Bus
service bluetooth status
让我
➜ service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-10-26 13:04:51 CEST; 27min ago
Docs: man:bluetoothd(8)
Main PID: 772 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─772 /usr/lib/bluetooth/bluetoothd
Okt 26 13:04:50 tomato systemd[1]: Starting Bluetooth service...
Okt 26 13:04:51 tomato bluetoothd[772]: Bluetooth daemon 5.48
Okt 26 13:04:51 tomato bluetoothd[772]: Starting SDP server
Okt 26 13:04:51 tomato bluetoothd[772]: Bluetooth management interface 1.14 initialized
Okt 26 13:04:51 tomato systemd[1]: Started Bluetooth service.
Okt 26 13:04:56 tomato bluetoothd[772]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource
Okt 26 13:04:56 tomato bluetoothd[772]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink
这是我的
/etc/dbus-1/system.d/bluetooth.conf
作为要点
我正在开发的计算机是内置蓝牙的,但因为我经常看到这个问题,所以这里是我的输出lspci -knn | grep Net -A2; lsusb
➜ lspci -knn | grep Net -A2; lsusb
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
Subsystem: ASUSTeK Computer Inc. QCA9565 / AR9565 Wireless Network Adapter [1043:85f2]
Kernel driver in use: ath9k
Kernel modules: ath9k
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04ca:17ea Lite-On Technology Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我对自己能做什么感到非常困惑。