Another day, another mysterious Linux issue in the middle of the
workday. I woke my laptop up from sleep to find I had no Bluetooth.
After restarting the service “successfully”, I still had no controllers
(i.e., my speakers) in bluetoothctl
. After a lot of digging, I found
this ArchLinux post that blocked and unblocked bluetooth, and sure
enough, it worked! Turning it on and off again is still a valid
solution.
Here is the shell script with the last line modified for Ubuntu 18.04:
rfkill block bluetooh
rfkill unblock bluetooth
sudo service bluetooth restart
The next problem with sleep/wake that I haven’t figured out is how to get my virtual boxes to stop eating all my CPU on wake. Some day, I will have a sane, “normal” laptop.