蓝牙服务无法设置模式

Igo*_*xly 7 bluetooth 21.04

因此,我尝试使用我的无线耳机,但发现 Ubuntu 21.04 有一个错误:

\n
\n\xe2\x97\x8f bluetooth.service - Bluetooth service\n     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)\n     Active: active (running) since Wed 2021-05-26 07:40:51 MSK; 53min ago\n       Docs: man:bluetoothd(8)\n   Main PID: 822 (bluetoothd)\n     Status: "Running"\n      Tasks: 1 (limit: 8566)\n     Memory: 1.8M\n     CGroup: /system.slice/bluetooth.service\n             \xe2\x94\x94\xe2\x94\x80822 /usr/lib/bluetooth/bluetoothd\n\nMay 26 07:40:47 UbuntuLinux bluetoothd[822]: Bluetooth daemon 5.56\nMay 26 07:40:47 UbuntuLinux systemd[1]: Starting Bluetooth service...\nMay 26 07:40:51 UbuntuLinux bluetoothd[822]: Starting SDP server\nMay 26 07:40:51 UbuntuLinux systemd[1]: Started Bluetooth service.\nMay 26 07:40:53 UbuntuLinux bluetoothd[822]: Bluetooth management interface 1.19 initialized\nMay 26 07:40:53 UbuntuLinux bluetoothd[822]: Failed to set mode: Blocked through rfkill (0x12)\nMay 26 07:41:24 UbuntuLinux bluetoothd[822]: Failed to set mode: Blocked through rfkill (0x12)\nMay 26 07:41:31 UbuntuLinux bluetoothd[822]: Endpoint registered: sender=:1.80 path=/MediaEndpoint/A2DPSink/sbc\nMay 26 07:41:31 UbuntuLinux bluetoothd[822]: Endpoint registered: sender=:1.80 path=/MediaEndpoint/A2DPSource/sbc\n
Run Code Online (Sandbox Code Playgroud)\n

我该如何解决这个问题?

\n

use*_*097 8

这对我有用

sudo rfkill unblock bluetooth
sudo systemctl stop bluetooth
sudo systemctl status bluetooth
sudo systemctl restart bluetooth
Run Code Online (Sandbox Code Playgroud)

  • 上面对我不起作用,但这确实有效:https://unix.stackexchange.com/a/602739/115743 (2认同)