wifi randomly disconnects: realtek RTL8821AE

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Deadux

wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

Here is the output of sudo /usr/lib/linuxmint/mintWifi/mintWifi.py

Code: Select all

-------------------------
* I. scanning WIFI PCI devices...
  -- Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter
      ==> PCI ID = 10ec:8821
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
eth0      no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:"TALKTALK-FE68A4"  
          Mode:Managed  Frequency:2.457 GHz  Access Point: C0:A0:BB:FE:68:A4   
          Bit Rate=65 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-40 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:15   Missed beacon:0

lo        no wireless extensions.

-------------------------
* IV. querying ifconfig...
eth0      Link encap:Ethernet  HWaddr e0:3f:49:be:57:2a  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:9170 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9170 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:994822 (994.8 KB)  TX bytes:994822 (994.8 KB)

wlan0     Link encap:Ethernet  HWaddr 24:0a:64:b9:8a:4f  
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::260a:64ff:feb9:8a4f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:674607 errors:0 dropped:0 overruns:0 frame:0
          TX packets:427213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:856785959 (856.7 MB)  TX bytes:47878903 (47.8 MB)

-------------------------
* V. querying DHCP...

My problem is that my Laptop randomly disconnects on WiFi. I have had to turn WiFi on and off again for it to work, sometimes I have to restart the computer for it to work.
Running Linux Mint 17.1 64bit

inxi -N

Code: Select all

Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169 
           Card-2: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter driv
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

come on guys..my netbook/laptop is pretty much unusable right now
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: wifi randomly disconnects: realtek RTL8821AE

Post by JeremyB »

First try

Code: Select all

echo "options rtl8821ae  fwlps=N swlps=Y" | sudo tee /etc/modprobe.d/rtl8821.conf
Reboot
spacemadness

Re: wifi randomly disconnects: realtek RTL8821AE

Post by spacemadness »

My problem is that my Laptop randomly disconnects on WiFi. I have had to turn WiFi on and off again for it to work, sometimes I have to restart the computer for it to work.
Running Linux Mint 17.1 64bit
I have the exact same problem. The computer is brand new, I just bought it. I also have a RealTek 8821ae using rtl8821ae driver. The wireless card connects to the internet, but it will randomly disconnect. Sometimes after 5 minutes, sometimes after 20 minutes, but it does disconnect sporadically. This interrupts file downloads quite frequently.

I can get the internet connection to come back up by using:

Code: Select all

rmmod rtl8821ae; modprobe rtl8821ae
This will get it back working again, but it's not permanent.

I've tried messing around with the modprobe.d options, but I haven't found the magic yet. Also, when the computer first boots, the wireless connection will come up fine most of the time, but not always. The ON/OFF switch for the Wireless option in the system tray doesn't work 100% of the time, either.

Also using Linux Mint 17.1 64-bit (Cinnamon).

Is it possible to try exchanging rtl8821ae driver for an older driver, like rtlwifi for example, to use with wlan0? Just a thought.
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

None of those solutions work. I still get frequent disconnects. Perhaps there's another way?
spacemadness

Re: wifi randomly disconnects: realtek RTL8821AE

Post by spacemadness »

Deadux wrote:None of those solutions work. I still get frequent disconnects. Perhaps there's another way?
I found that it helps if my wired ethernet connection is physically unplugged.

The time between my disconnects has increased over the past day. I'm not sure why, probably something that I changed. I'll let you know later if it goes away completely.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: wifi randomly disconnects: realtek RTL8821AE

Post by JeremyB »

We could try the newest module available through backports

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/backports-20150313.tar.gz

Code: Select all

tar -zxvf backports-20150314.tar.gz

Code: Select all

make defconfig rtlwifi

Code: Select all

make

Code: Select all

sudo make install
Reboot
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

JeremyB wrote:We could try the newest module available through backports

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/backports-20150313.tar.gz

Code: Select all

tar -zxvf backports-20150314.tar.gz

Code: Select all

make defconfig rtlwifi

Code: Select all

make

Code: Select all

sudo make install
Reboot
Make doesn't work
make: *** No rule to make target defconfig. Stop.
and it happens with every make command with some variation
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

WiFi doesn't work at all, although it says I'm connected, it just doesn't work. Now restarting doesn't work to fix it.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: wifi randomly disconnects: realtek RTL8821AE

Post by JeremyB »

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/backports-20150313.tar.gz

Code: Select all

tar -zxvf backports-20150314.tar.gz

Code: Select all

cd backports-20150314

Code: Select all

make defconfig-rtlwifi

Code: Select all

make

Code: Select all

sudo make install
Missed the dash between defconfig and rtlwifi
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

JeremyB wrote:

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/backports-20150313.tar.gz

Code: Select all

tar -zxvf backports-20150314.tar.gz

Code: Select all

cd backports-20150314

Code: Select all

make defconfig-rtlwifi

Code: Select all

make

Code: Select all

sudo make install
Missed the dash between defconfig and rtlwifi
I'm connected to my internet but it doesn't work and I can't connect to any websites.
Maybe something went wrong after: sudo make install

Code: Select all

 Building modules, stage 2.
  MODPOST 18 modules
  INSTALL /home/admin/backports-20150313/compat/compat.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/btcoexist/btcoexist.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8188ee/rtl8188ee.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192de/rtl8192de.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192ee/rtl8192ee.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723com/rtl8723-common.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8821ae/rtl8821ae.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl_pci.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl_usb.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtlwifi.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/net/mac80211/mac80211.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/net/wireless/cfg80211.ko
Can't read private key
  DEPMOD  3.13.0-37-generic
depmod will prefer updates/ over kernel/ -- OK!
Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.
it's possible this could be an entirely different problem. It says I am connected but I can't load any websites
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: wifi randomly disconnects: realtek RTL8821AE

Post by JeremyB »

Deadux wrote:
JeremyB wrote:

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/backports-20150313.tar.gz

Code: Select all

tar -zxvf backports-20150314.tar.gz

Code: Select all

cd backports-20150314

Code: Select all

make defconfig-rtlwifi

Code: Select all

make

Code: Select all

sudo make install
Missed the dash between defconfig and rtlwifi
I'm connected to my internet but it doesn't work and I can't connect to any websites.
Maybe something went wrong after: sudo make install

Code: Select all

 Building modules, stage 2.
  MODPOST 18 modules
  INSTALL /home/admin/backports-20150313/compat/compat.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/btcoexist/btcoexist.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8188ee/rtl8188ee.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192de/rtl8192de.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192ee/rtl8192ee.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723com/rtl8723-common.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8821ae/rtl8821ae.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl_pci.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl_usb.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtlwifi.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/net/mac80211/mac80211.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/net/wireless/cfg80211.ko
Can't read private key
  DEPMOD  3.13.0-37-generic
depmod will prefer updates/ over kernel/ -- OK!
Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.
it's possible this could be an entirely different problem. It says I am connected but I can't load any websites
The can't read private key is normal. Can you ping IP addresses?

Code: Select all

ping -c5 8.8.8.8
but not ping

Code: Select all

ping -c5 www.google.com
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

JeremyB wrote:
Deadux wrote:
JeremyB wrote:

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/backports-20150313.tar.gz

Code: Select all

tar -zxvf backports-20150314.tar.gz

Code: Select all

cd backports-20150314

Code: Select all

make defconfig-rtlwifi

Code: Select all

make

Code: Select all

sudo make install
Missed the dash between defconfig and rtlwifi
I'm connected to my internet but it doesn't work and I can't connect to any websites.
Maybe something went wrong after: sudo make install

Code: Select all

 Building modules, stage 2.
  MODPOST 18 modules
  INSTALL /home/admin/backports-20150313/compat/compat.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/btcoexist/btcoexist.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8188ee/rtl8188ee.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192de/rtl8192de.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192ee/rtl8192ee.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8723com/rtl8723-common.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl8821ae/rtl8821ae.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl_pci.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtl_usb.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/drivers/net/wireless/rtlwifi/rtlwifi.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/net/mac80211/mac80211.ko
Can't read private key
  INSTALL /home/admin/backports-20150313/net/wireless/cfg80211.ko
Can't read private key
  DEPMOD  3.13.0-37-generic
depmod will prefer updates/ over kernel/ -- OK!
Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.
it's possible this could be an entirely different problem. It says I am connected but I can't load any websites
The can't read private key is normal. Can you ping IP addresses?

Code: Select all

ping -c5 8.8.8.8
but not ping

Code: Select all

ping -c5 www.google.com
Output of ping -c5 8.8.8.8:

Code: Select all

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 
64 bytes from 8.8.8.8: icmp_seq=1 ttl=53 time=20.8 ms 
64 bytes from 8.8.8.8: icmp_seq=2 ttl=53 time=23.3 ms 
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=27.3 ms 
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=21.4 ms 
64 bytes from 8.8.8.8: icmp_seq=5 ttl=54 time=25.1 ms 

--- 8.8.8.8 ping statistics --- 
5 packets transmitted, 5 received, 0% packet loss, time 4006ms 
rtt min/avg/max/mdev = 20.887/23.641/27.395/2.406 ms 


Output of ping -c5 http://www.google.co.uk

Code: Select all

ping: unknown host www.google.co.uk
Edit: I found out that it has something to do with my static IP so when I make my ip not static, it works and I can ping addresses. But I run little servers so I need that static ip.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: wifi randomly disconnects: realtek RTL8821AE

Post by JeremyB »

Add a DNS of 8.8.8.8 and see if everything works
Deadux

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Deadux »

Thanks so much for your help :) Will notify if I get any disconnects but haven't got any so far :D
Abiel

Re: wifi randomly disconnects: realtek RTL8821AE

Post by Abiel »

I have the same problem, please help me by step what do i have to do to fix it... Thank You!
Locked

Return to “Networking”