bluetooth ubuntu 20.04 does not work after suspend code example
Example 1: bluetooth does not work after lock ubuntu
#!/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
Example 2: 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