Created
July 20, 2017 20:27
-
-
Save nsmith5/10a28c31bc869c76d3a1c4072b2c5558 to your computer and use it in GitHub Desktop.
Surface Pro 3 Wifi Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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