1

My wifi connection doesnt work properly; it stays connected only for around 5 minutes after I turn on the PC. I'm using Ubuntu 16.04.

Here you can find all the actions that i've tried and a temporary solution that worked for a week: Wifi drops after ~ 5 minutes with RTL8821AE

The strange thing is that in the last 4 days I never turned off my notebook; I only suspended it when I was going to sleep. Last night I turned it off and this morning the wifi issue came back...

Do you think that there are other possible solutions?

Zanna
  • 70,465
Zeno Raiser
  • 485
  • 1
  • 6
  • 18
  • 1
    Haver you installed the drivers mentioned in the linked question? If so, you need to repeat the process whenever there's a kernel update. –  Aug 04 '17 at 09:43
  • If you mean rtlfwifi_new and the commands sudo make, make clean, male install, modprobe rtl8821ae yes I've done them all when i was adjusting the issue – Zeno Raiser Aug 04 '17 at 09:49
  • Thanks @MichaelBay It seems that you were right, to install the drivers should i run a command like sudo apt-get install rtlwifi-new ?? – Zeno Raiser Aug 04 '17 at 10:23
  • 2
    No, you should make clean and follow the same instructions. APT installs software from repositories, already packaged for Debian/Ubuntu. This drivers needs compiling. –  Aug 04 '17 at 10:26
  • Thanks so anytime there is a kernel update i must execute those commands to compile the drivers – Zeno Raiser Aug 04 '17 at 10:29
  • 1
    @ZenoRaiser until such a time when someone packages it or makes a akmod or similar, yes – Wilf Aug 04 '17 at 11:08

1 Answers1

1

Solution: everytime there is a kernel update execute the commands of the given link in the question

Zeno Raiser
  • 485
  • 1
  • 6
  • 18
  • 1
    Why not just add it to dkms? Should be able to sudo dkms add ./rtlwifi_new or sudo dkms add ./rtlwifi_new-master depending on what the directory is named – Jeremy31 Aug 04 '17 at 11:35
  • I don't know if It would work and i can't try It now because the wifi works, the next time it drops i Will try it. So with that command i should never again repeat the sequence of the solution? – Zeno Raiser Aug 04 '17 at 11:40
  • Dkms will build the module for a new kernel when the kernel is being installed. When you reboot into the new kernel the module is already there. I think Pilot6 added the commit that gave rtlwifi-new dkms support – Jeremy31 Aug 04 '17 at 14:17
  • @Jeremy31 that's a worthy answer in my opinion – Zanna Aug 05 '17 at 20:16
  • @Jeremy31 i did what you said now just before a new update i've 1- executed your commands 2-update the system 3-reboot and it didnt work so i had ti execute again all the procedure. Also It displayed on the screen something like "there is an error with the software rtlwifi_new-master is an external package please remove It" (i've added the module in usr/src) – Zeno Raiser Aug 07 '17 at 11:29