Skip to content

Instantly share code, notes, and snippets.

@efraimsutopo
Last active September 20, 2020 14:26
Show Gist options
  • Save efraimsutopo/53df9014ff91f767064074fdee756be0 to your computer and use it in GitHub Desktop.
Save efraimsutopo/53df9014ff91f767064074fdee756be0 to your computer and use it in GitHub Desktop.
Fix Ubuntu Wifi issue with (?) mark, put this file into /etc/pm/sleep.d
#!/bin/bash
case "$1" in
resume|thaw)
nmcli radio wifi off && nmcli radio wifi on
;;
esac
#!/bin/bash
case "$1" in
suspend|hibernate)
/bin/ifconfig wlp2s0 down
/sbin/modprobe -r ath10k_pci
;;
resume|thaw)
/sbin/modprobe ath10k_pci
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment