Skip to content

Instantly share code, notes, and snippets.

@XaviTorello
Created April 11, 2018 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XaviTorello/3a0bd9be2c98e141b9206efae39f3c6d to your computer and use it in GitHub Desktop.
Save XaviTorello/3a0bd9be2c98e141b9206efae39f3c6d to your computer and use it in GitHub Desktop.
Surface Pro wireless network hibernation patch (place at /usr/lib/systemd/system-sleep/)
#!/bin/sh
## Patch network hibernation issues
## Save it in /usr/lib/systemd/system-sleep
## Thanks to nivenly.com/surface-hib.sh
case $1/$2 in
pre/hibernate)
netctl stop $(netctl list |grep "wlp1s0-[a-zA-Z0-9]\+" -o)
echo "Going to $2..."
;;
post/hibernate)
echo "Waking up from $2..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment