Bluetootth not reconnecting after reboot

I have a raspberry pi 5 with a bluetooth keyboard and mouse. Both of these work when I pair trust and connect them. However, after a reboot neither of them work. The error messages that I get are

[david@desktop ~]$ bluetoothctl connect F4:73:35:41:C1:EB
Attempting to connect to F4:73:35:41:C1:EB
Failed to connect: org.bluez.Error.Failed br-connection-create-socket
[david@desktop ~]$ bluetoothctl connect FA:3B:19:DE:F7:D2
Attempting to connect to FA:3B:19:DE:F7:D2
Failed to connect: org.bluez.Error.Failed le-connection-abort-by-local
[david@desktop ~]$ 

Another error that I have seen in journalctl is

Unable to set wake_support without RPA resolution

I also have a cron job that is supposed to connect the bluetooth devices at reboot but it doesn’t. I have included the relevant journalctl log but if you need any more information then please ask.

[david@desktop ~]$ journalctl -b | grep -i blue
Sep 30 20:54:38 desktop kernel: Bluetooth: Core ver 2.22
Sep 30 20:54:38 desktop kernel: NET: Registered PF_BLUETOOTH protocol family
Sep 30 20:54:38 desktop kernel: Bluetooth: HCI device and connection manager initialized
Sep 30 20:54:38 desktop kernel: Bluetooth: HCI socket layer initialized
Sep 30 20:54:38 desktop kernel: Bluetooth: L2CAP socket layer initialized
Sep 30 20:54:38 desktop kernel: Bluetooth: SCO socket layer initialized
Sep 30 20:54:39 desktop kernel: Bluetooth: HCI UART driver ver 2.3
Sep 30 20:54:39 desktop kernel: Bluetooth: HCI UART protocol H4 registered
Sep 30 20:54:39 desktop kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
Sep 30 20:54:39 desktop kernel: Bluetooth: HCI UART protocol Broadcom registered
Sep 30 20:54:39 desktop kernel: Bluetooth: hci0: BCM: chip id 107
Sep 30 20:54:39 desktop kernel: Bluetooth: hci0: BCM: features 0x2f
Sep 30 20:54:39 desktop kernel: Bluetooth: hci0: BCM4345C0
Sep 30 20:54:39 desktop kernel: Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
Sep 30 20:54:39 desktop kernel: Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.hcd' Patch
Sep 30 20:54:39 desktop systemd[1]: Starting Bluetooth service...
Sep 30 20:54:39 desktop bluetoothd[479]: Bluetooth daemon 5.78
Sep 30 20:54:39 desktop systemd[1]: Started Bluetooth service.
Sep 30 20:54:39 desktop systemd[1]: Reached target Bluetooth Support.
Sep 30 20:54:39 desktop bluetoothd[479]: Starting SDP server
Sep 30 20:54:39 desktop kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Sep 30 20:54:39 desktop kernel: Bluetooth: BNEP filters: protocol multicast
Sep 30 20:54:39 desktop kernel: Bluetooth: BNEP socket layer initialized
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support bap plugin
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support bass plugin
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support mcp plugin
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support vcp plugin
Sep 30 20:54:39 desktop bluetoothd[479]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support micp plugin
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support ccp plugin
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support csip plugin
Sep 30 20:54:39 desktop bluetoothd[479]: src/plugin.c:init_plugin() System does not support asha plugin
Sep 30 20:54:39 desktop bluetoothd[479]: Bluetooth management interface 1.22 initialized
Sep 30 20:54:40 desktop kernel: Bluetooth: hci0: BCM: features 0x2f
Sep 30 20:54:40 desktop kernel: Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190
Sep 30 20:54:40 desktop kernel: Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382
Sep 30 20:54:40 desktop kernel: Bluetooth: hci0: BCM: Using default device address (43:45:c0:00:1f:ac)
Sep 30 20:54:40 desktop bluetoothd[479]: Battery Provider Manager created
Sep 30 20:54:40 desktop kernel: Bluetooth: MGMT ver 1.22
Sep 30 20:54:40 desktop bluetoothd[479]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
Sep 30 20:54:40 desktop NetworkManager[492]: <info>  [1727726080.5460] Loaded device plugin: NMBluezManager (/usr/lib/NetworkManager/1.48.10-1/libnm-device-plugin-bluetooth.so)
Sep 30 20:54:41 desktop CROND[577]: (david) CMD (sleep 5 && /bin/echo -e 'connect F4:73:35:41:C1:EB \n' | bluetoothctl)
Sep 30 20:54:41 desktop CROND[576]: (david) CMD (sleep 5 && /bin/echo -e 'connect FA:3B:19:DE:F7:D2 \n' | bluetoothctl)
Sep 30 20:54:46 desktop CROND[562]: (david) CMDOUT ([bluetooth]# connect F4:73:35:41:C1:EB )
Sep 30 20:54:46 desktop CROND[562]: (david) CMDOUT ([bluetooth]# [bluetooth]# Agent registered)
Sep 30 20:54:46 desktop CROND[563]: (david) CMDOUT ([bluetooth]# connect FA:3B:19:DE:F7:D2 )
Sep 30 20:54:46 desktop CROND[563]: (david) CMDOUT ([bluetooth]# [bluetooth]# Agent registered)
Sep 30 20:54:46 desktop CROND[562]: (david) CMDOUT ([bluetooth]#                         )
Sep 30 20:54:46 desktop CROND[562]: (david) CMDEND (sleep 5 && /bin/echo -e 'connect F4:73:35:41:C1:EB \n' | bluetoothctl)
Sep 30 20:54:46 desktop CROND[563]: (david) CMDOUT ([bluetooth]#                         )
Sep 30 20:54:46 desktop CROND[563]: (david) CMDEND (sleep 5 && /bin/echo -e 'connect FA:3B:19:DE:F7:D2 \n' | bluetoothctl)
Sep 30 20:54:51 desktop bluetoothd[479]: profiles/input/device.c:control_connect_cb() connect to F4:73:35:41:C1:EB: Host is down (112)
Sep 30 20:55:07 desktop kernel: Bluetooth: RFCOMM TTY layer initialized
Sep 30 20:55:07 desktop kernel: Bluetooth: RFCOMM socket layer initialized
Sep 30 20:55:07 desktop kernel: Bluetooth: RFCOMM ver 1.11
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/ldac
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/aptx_hd
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aptx_hd
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/aptx
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aptx
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/aac
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aac
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/opus_g
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/opus_g
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/sbc
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/sbc
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/faststream
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/faststream_duplex
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/opus_05
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/opus_05
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Sep 30 20:55:07 desktop bluetoothd[479]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Sep 30 21:05:59 desktop systemd[690]: Starting Bluetooth Manager...
Sep 30 21:05:59 desktop systemd[690]: Started Bluetooth Manager.
[david@desktop ~]$ 

Thank You.

try
systemctl enable bluetooth-autoconnect

?

Hi, I’ve already tried that and it didn’t work.

Hello, I have fixed this problem. What I did was remove all of the devices from the bluetooth app on the taskbar and then made sure that they had gone with bluetoothctl. Then I deleted everything under /var/lib/bluetooth. I then restarted the bluetooth service and then did a reboot and both the bluetooth keyboard and mouse connected fine. I did a reboot and both of the bluetooth devices reconnected fine again. I then did a shutdown and power on and both of the devices connected again fine. When I looked at journalctl for bluetooth I noticed two new lines, they are

hid-generic 0005:046D:B01F.0001: input,hidraw0: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2] on d8:3a:dd:a4:14:cb

hid-generic 0005:046D:B342.0002: input,hidraw1: BLUETOOTH HID v42.01 Keyboard [Keyboard K380] on d8:3a:dd:a4:14:cb

I don’t know if these two extra lines indicate anything.

I am marking this as SOLVED.

                        vovim.