Bluetooth was working fine on my laptop (Acer Aspire V17 Nitro) running Ubuntu 18.04, until I used Suspend for the first time and woke it up again. It doesn't detect any devices anymore.
Things I've tried:
Rebooting
Disabling & enabling bluetooth
Restarting the bluetooth service
Re-installing these packages:
bluez
gnome-bluetooth
pulseaudio-module-bluetooth
Running
rfkill list
:0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: acer-wireless: Wireless LAN Soft blocked: no Hard blocked: no 2: phy0: Wireless LAN Soft blocked: no Hard blocked: no
Booting into a live USB and enabling bluetooth there (it doesn't detect any devices there either)
Does anyone have any other ideas? The fact that it failed while suspending or while waking up from a suspend might be a clue.
UPDATE 2019-10-31:
I am no longer experiencing this issue, might be the result of a kernel update or something else in 19.10. If anyone knows more, please comment and I'll include it here!
UPDATE 2018-09-20:
My original solution no longer works reliably for me. I now see one of three cases on resume from suspend:
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:
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
:I will continue to update this answer if I can confirm that it works. Again, this issue seems somewhat difficult to reproduce.
I have the same problem, borrowing a fix for similar problem I encountered with Ubuntu 14.04, After further investigation I found that restarting the bluetooth fixes the problem. this is a solution that is currently working for me:
1- In folder
/lib/systemd/system-sleep/
create a script calledbluetooth
with the following content:this will restart the bluetooth service after 5 seconds from system resume (This way is the only one worked for me for now it might change it's mind in the future)
2- Mark the script as executable:
I would like to point out that I use Kubuntu 18.04
Alright, it starting working again while writing the question.
It worked again after booting into the live USB and disabling bluetooth there (instead of enabling it which I tried before). I then booted back into my normal installation and it detects devices again.
I'm not going to suspend again until I can find a proper solution.
It was quite a mystical experience. I have no idea if what I did actually fixed it. If anyone knows what exactly happened, I would like to know :-)
On Ubuntu 18.04, I used the following systemd script to fix the issue:
I named placed the file under
/lib/systemd/system-sleep
. You can name ittouchpad
or something similar. Remember to add executable permissions.