[testing] bluetooth does not work after resuming from hibernation

When I resume from hibernation, bluetooth does not work. The bluetooth service seems "stuck". bluetoothctl timeouts with:

bluetoothctl
Waiting to connect to bluetoothd...[bluetooth]#

Bluetooth service is show as running


● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-03-08 18:24:44 PST; 7min ago
       Docs: man:bluetoothd(8)
   Main PID: 1187 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 47732)
     Memory: 2.8M (peak: 3.5M)
        CPU: 1min 32.389s
     CGroup: /system.slice/bluetooth.service
             └─1187 /usr/lib/bluetooth/bluetoothd

Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support vcp plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support micp plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support ccp plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support csip plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: Bluetooth management interface 1.22 initialized
Mar 08 18:24:44 archlinux systemd[1]: Started Bluetooth service.
Mar 08 18:24:45 archlinux bluetoothd[1187]: Battery Provider Manager created
Mar 08 18:24:45 archlinux bluetoothd[1187]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
Mar 08 18:24:45 archlinux bluetoothd[1187]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters

If I restart it, bluetooth service takes a very long time to stop (like 1 or 2 minutes). But eventually, after a restart, bluetooth works correctly.

I have 3 packages, from bluez sources: bluez, bluez-libs, and bluez-utils. The problem disappears if I rollback the 3 packages to 5.73-2