Fixing Crash on Resume from Sleep in Bluefin 42
My Bluefin Linux crashed on resume from Suspend/sleep.
The cause seems to have been the bluetooth adapter, as disabling the bluetooth before sleeping avoided the issue. You should test if disabling bluetooth manually fixes sleep resume for you. If disabling bluetooth actually fixes sleep this guide should help!
The guide was used on Bluefin 42.20250928.1
with the kernel version Linux 6.15.10-200.fc42.x86_64
. I believe the guide should be compatible with all universal-blue variants if needed.
A fix on the net was suggested to disable the bluetooth on sleep, and re-enable on resume. As I’m not that familiar with the systemd services I have documented the exact steps to follow below. (Suggested here https://www.reddit.com/r/Fedora/comments/1g7ke8e/comment/ly84xrf/)
The commands and paths needed for me were:
sudo nano /etc/systemd/system/bt-sleep-fix.service
This opens the nano text editor.
In there paste this file:
[Unit]
Description=Disable Bluetooth before going to sleep
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/rfkill block bluetooth
ExecStop=/usr/sbin/rfkill unblock bluetooth
[Install]
WantedBy=sleep.target
Save the file as bt-sleep-fix.service
Apply chmod 644
to it (makes the file readable by all users on the system)
sudo chmod 644 /etc/systemd/system/bt-sleep-fix.service
Now we need to register the service with systemd:
systemctl start bt-sleep-fix.service
systemctl enable bt-sleep-fix.service
This should now enable and disable the bluetooth adapter automatically on sleep and resume. This avoids the crash on resume for me! Nice!
End
Thats it! I hope this guide helps you get your system resuming from sleep, while keeping bluetooth capabilities!
// Nils Henrik