Skip to content

Instantly share code, notes, and snippets.

@nsmith5
Created July 20, 2017 20:27
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 nsmith5/10a28c31bc869c76d3a1c4072b2c5558 to your computer and use it in GitHub Desktop.
Save nsmith5/10a28c31bc869c76d3a1c4072b2c5558 to your computer and use it in GitHub Desktop.
Surface Pro 3 Wifi Fix
#!/bin/sh
# Write to /etc/NetworkManager/dispatcher.d/no-power-save
# Fixes wifi stability issues associated with marvell driver
# and kernel power management
# source: https://bugzilla.kernel.org/show_bug.cgi?id=109681#c66
# MDJ
IFACE=$1
ACTION=$2
IW=/sbin/iw
test -x $IW || exit 0
[ "$IFACE" = "wlp2s0" ] || exit 0
case "$ACTION" in
up)
$IW dev $IFACE set power_save off
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment