ubuntu cannot turn on bluetooth after suspend code example
Example 1: bluetooth does not work after lock ubuntu
cd /etc/pm/sleep.d
sudo touch 10_bluetooth
sudo chmod 0755 10_bluetooth
sudo kate 10_bluetooth
Example 2: ubuntu bluetooth not working after suspend
#!/bin/sh
# sudo nano /lib/systemd/system-sleep/bt
# Paste in this script:
case $1 in
post)
modprobe -r btusb
sleep 1
service bluetooth restart
sleep 1
modprobe btusb
;;
esac
# An finally make it executable
chmod +x /lib/systemd/system-sleep/bt