Skip to content

Instantly share code, notes, and snippets.

@nikhan
Last active May 9, 2017 05:25
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 nikhan/48ecc1102d44c4551c7980da79255d5c to your computer and use it in GitHub Desktop.
Save nikhan/48ecc1102d44c4551c7980da79255d5c to your computer and use it in GitHub Desktop.
fix wifi on ubuntu 17/macbook pro 13 2015

Ubuntu 17.04 on 2015 macbook pro 13 - fix for slow wifi

sudo gedit /etc/modprobe.d/brcmfmac.conf

enter:

options brcmfmac qos=0
options brcmfmac nohwcrypt=1

then:

sudo modprobe -r brcmfmac
sudo modprobe brcmfmac
@nikhan
Copy link
Author

nikhan commented May 9, 2017

appears to work for a while and then becomes slow again over time.
the module reloading may be the thing that makes it fast again. (and maybe suspend is messing up the module?)
restart the network upon resume

sudo vi /etc/systemd/system/restartnetwork.service

[Unit]
Description=restart networking on resume
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/bash -c "modprobe -r brcmfmac; modprobe brcmfmac";
RemainAfterExit=true
ExecStop=

[Install]
WantedBy=multi-user.target sleep.target
systemctl daemon-reload
systemctl enable restartnetwork.service
systemctl start restartnetwork.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment