Comment 72 for bug 1799988

Revision history for this message
David Rasch (rasch) wrote :

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