UPDATE 2018-09-20:
My original solution no longer works reliably for me. I now see one of three cases on resume from suspend:
- Bluetooth and WiFi both disabled (no adapters available)
- Bluetooth only disabled (no adapters available)
- No issues
The only workaround that addresses the problem 100% of the time is restarting to BIOS and manually toggling both Bluetooth and WiFi off then on.
The workaround that I use is unplugging the power source and closing then opening the laptop lid to force a hardware power cycle. This works about half of the time, so I often have to do this two or three times.
Original Answer:
I have been encountering the same problem using Kubuntu on Dell, Asus, and MSI laptops with integrated WiFi/Bluetooth since at least 16.04. It happens intermittently; I cannot reproduce it reliably whatsoever, but it does only happen after resuming from suspend.
Here is my chipset:
$ lspci | grep Network
3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
When the issue occurs on default configuration, the bluetooth service is incapable of being fully restarted. I borrowed heavily from Ossama Nasser's answer, but have had more luck forcing the bluetooth service off on suspend and then up on resume.
My solution below, also written to /lib/systemd/system-sleep/bluetooth
:
#!/bin/bash
if [ "${1}" == "pre" ]; then
service bluetooth stop
elif [ "${1}" == "post" ]; then
sleep 5
service bluetooth start
fi
I will continue to update this answer if I can confirm that it works. Again, this issue seems somewhat difficult to reproduce.