[SOLVED]raspberrypi bluetoothd[420]: Failed to set mode: Blocked through rfkill (0x12)
failure case:
Reason:
hci0 is blocked ,you must set to unblocked
excuted as follow
failure case:
root@raspberrypi:~# sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-03-30 07:55:25 CST; 3h 35min ago
Docs: man:bluetoothd(8)
Main PID: 420 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 2200)
Memory: 2.0M
CPU: 365ms
CGroup: /system.slice/bluetooth.service
└─420 /usr/libexec/bluetooth/bluetoothd
3月 30 07:55:24 raspberrypi systemd[1]: Starting Bluetooth service...
3月 30 07:55:25 raspberrypi bluetoothd[420]: Bluetooth daemon 5.64
3月 30 07:55:25 raspberrypi bluetoothd[420]: src/main.c:check_config() Unknown group Controller in /etc/bl>
3月 30 07:55:25 raspberrypi systemd[1]: Started Bluetooth service.
3月 30 07:55:25 raspberrypi bluetoothd[420]: Starting SDP server
3月 30 07:55:25 raspberrypi bluetoothd[420]: Bluetooth management interface 1.14 initialized
3月 30 07:55:25 raspberrypi bluetoothd[420]: src/adapter.c:reset_adv_monitors_complete() Failed to reset A>
3月 30 07:55:25 raspberrypi bluetoothd[420]: Failed to set mode: Blocked through rfkill (0x12)
Reason:
hci0 is blocked ,you must set to unblocked
excuted as follow
[
root@raspberrypi:~# rfkill
ID TYPE DEVICE SOFT HARD
0 wlan phy0 blocked unblocked
1 bluetooth hci0 blocked unblocked
root@raspberrypi:~# rfkill unblock 1
root@raspberrypi:~# rfkill
ID TYPE DEVICE SOFT HARD
0 wlan phy0 blocked unblocked
1 bluetooth hci0 unblocked unblocked
/code]
[code]
root@raspberrypi:~# sudo systemctl restart bluetooth.service
root@raspberrypi:~# sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-03-30 20:12:45 CST; 3s ago
Docs: man:bluetoothd(8)
Main PID: 5823 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 2200)
Memory: 600.0K
CPU: 306ms
CGroup: /system.slice/bluetooth.service
└─5823 /usr/libexec/bluetooth/bluetoothd
3月 30 20:12:44 raspberrypi systemd[1]: Starting Bluetooth service...
3月 30 20:12:45 raspberrypi bluetoothd[5823]: Bluetooth daemon 5.64
3月 30 20:12:45 raspberrypi bluetoothd[5823]: src/main.c:check_config() Unknown group Controller in /etc/b>
3月 30 20:12:45 raspberrypi systemd[1]: Started Bluetooth service.
3月 30 20:12:45 raspberrypi bluetoothd[5823]: Starting SDP server
3月 30 20:12:45 raspberrypi bluetoothd[5823]: Bluetooth management interface 1.14 initialized
3月 30 20:12:45 raspberrypi bluetoothd[5823]: src/adapter.c:reset_adv_monitors_complete() Failed to rese
0