14

First I had this issue described here 16.04 LTS wifi connection issues but nobody was able to provide a valid answer.

Recently this wifi connection issue gets even worse. I would lose wifi connection randomly about every 5 minutes on my computer(Dell XPS 8900 with skylake i7-6700 CPU and Samsung 950PRO SSD). The wifi icon would remain connected state while connection is lost. It looks like it would be reconnected automatically after a while or I will have to reconnect manually.

Can somebody plz tell me what is going on here? Is it something wrong with my computer or just another bug with this version?

aaa
  • 2,624

1 Answers1

12

Finally, I was able to fix the issue.

  1. Get details of your PCI wireless card by running the following

    sudo lshw -class network
    
  2. Get your card model info according to the product line of the wireless interface. For instance, as you can see in the question description it says product: RTL8723BE PCIe Wireless Network Adapter so the model of my card is RTL8723BE

  3. Open or create /etc/pm/config.d/config and add SUSPEND_MODULES="rtl8723be"(replace rtl8723be with your own model number) Then run

    echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
    

    and reboot.

Now your system should be able to reconnect automatically after sleep, and wifi connection never got lost once for me after doing this.

aaa
  • 2,624
  • 1
    This fix is only for the specific adapter. It will not work for other models. – Pilot6 Jun 21 '16 at 22:12
  • Does this work for RTL8723AE? – ericmjl Mar 25 '17 at 21:53
  • 1
    Didn't work for me as I have a different wifi card. However disabling ipv6 did the trick for me as described here https://askubuntu.com/questions/529347/how-do-i-keep-my-wifi-from-dropping-out - although the posting is for 14.04 it works with 16.04 too. – David Bosschaert Jun 09 '17 at 19:45
  • Didn't work for rtl8192cu - Ubuntu 17.10. It looked better but after 20 minutes it was disconnected again. – ROMANIA_engineer Dec 25 '17 at 23:42
  • as you can see in the question description it says product: RTL8723BE - where is that question description? - I do no see Realtek mentioned in your question (the very reason it was marked as duplicate). If your issue was with Realtek post that in title. –  Mar 02 '18 at 14:42
  • worked for me on RTL8101/2/6E – Kalanka Aug 13 '18 at 12:50
  • @ericmjl I have tried with RTL8723AE and so far it seems to work. I will edit if it stops working, so if you're reading this, it works. – Haggra Oct 30 '18 at 09:34