Somewhere, I mentioned the fact that my new, cheap but premium-finished Lenovo IdeaPad Slim 5 had a single issue under Kubuntu 26.04 LTS: resuming after sleep would break Bluetooth.

I asked Gemini to help me fix it, I tried the first suggested option, and it worked! This should work on all similar laptops that use a RTL8852BE Wi-Fi/BT combo. It should also work on all flavors of Ubuntu 26.04 LTS.

① Run this in a terminal:

sudo nano /lib/systemd/system-sleep/rtl_bt_fix

② Paste this and save the file:

#!/bin/sh

case $1 in
  pre)
    echo "Suspending: Unloading Bluetooth"
    modprobe -r btusb
    modprobe -r btrtl
    ;;

  post)
    echo "Resuming: Reloading Bluetooth"
    modprobe btrtl
    modprobe btusb
    systemctl restart bluetooth
    ;;
esac

③ Make it executable:

sudo chmod +x /lib/systemd/system-sleep/rtl_bt_fix

That’s all!

It’s a classic fix, actually. If it didn’t work, I’d have needed to resort to usbreset.