This is a workaround to make sure Wifi works on each and every resume, not just every other one (obviously this disables wake from Bluetooth) - after "sudo -s".
tee /lib/systemd/systemd-sleep/rfkill-bluetooth-workaround <<EOF
#!/bin/sh
set -e
if [ "${1}" = "pre" ]; then
rfkill block bluetooth
elif [ "${1}" = "post" ]; then
rfkill unblock bluetooth
fi
EOF
chmod 755 /lib/systemd/systemd-sleep/rfkill-bluetooth-workaround
This is a workaround to make sure Wifi works on each and every resume, not just every other one (obviously this disables wake from Bluetooth) - after "sudo -s".
tee /lib/systemd/ systemd- sleep/rfkill- bluetooth- workaround <<EOF
#!/bin/sh
set -e
if [ "${1}" = "pre" ]; then systemd- sleep/rfkill- bluetooth- workaround
rfkill block bluetooth
elif [ "${1}" = "post" ]; then
rfkill unblock bluetooth
fi
EOF
chmod 755 /lib/systemd/