Can I keep bluetooth connected while laptop sleeps?

Another 1st world problem. While my laptop sleeps my bluetooth speaker "searches" for it and makes a noise like it's trying to connect. Slightly annoying. Is there a way to keep bluetooth on and the noise off.

It did not do it with Windows.

Thanks.

I'm not sure. Maybe adding btusb.enable_autosuspend=0
to /etc/default/grub
can help.
Enter

sudo nano /etc/default/grub

Move down with the arrows and change the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash btusb.enable_autosuspend=0"
If you have further kernel parameters in this line, keep them.

Then press ctrl+o to save, press enter to confirm and ctrl+x to exit the editor.
Then run

sudo update-grub

and reboot for testing.
If it doesn't help remove the added term on the same way. I also read that some set the patameter to -1 instead of 0. I'm not sure what is the right and if the command still works.

1 Like

I tried and it didn't work.

You could try it with

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash btusb.enable_autosuspend=n"

or maybe additionally this parameter which also disables suspend functions for all USB devices:

GRUB_CMDLINE_LINUX_DEFAULT="btusb.enable_autosuspend=n usbcore.autosuspend=-1"

1 Like

Thanks - I tried the last option you gave me and that seems to have worked. Lovely!

2 Likes

Hi - recently something happened and I can't get bluetooth to connect at all. I have tried returning to the original settings but that hasn't helped. Blueman advises it is connected then says disconnected and that repeats a few times and then nothing happens. I'm not sure what to do.