Q:

ubuntu bluetooth not working after suspend

#turn bluetooth on:
sudo /etc/init.d/bluetooth restart

# make it automatic on boot
sudo systemctl enable bluetooth
2
sudo rfkill unblock bluetooth
1
#!/bin/bash
#Code from http://ubuntuforums.org/showthread.php?t=1387211

. /usr/lib/pm-utils/functions

case "$1" in
    hibernate|suspend)
    rfkill block bluetooth
    ;;
    thaw|resume)
    rfkill unblock bluetooth
    ;;
    *)
    ;;
esac

exit
1
cd /etc/pm/sleep.d
sudo touch 10_bluetooth
sudo chmod 0755 10_bluetooth
sudo kate 10_bluetooth
0
#!/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
0

New to Communities?

Join the community