Wifi works for a while, then stops working

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
icarus4586

Wifi works for a while, then stops working

Post by icarus4586 »

I've been using Mint for <1 week, though I've used Linux in the past. This is a new installation on a new PC. After a reboot, Wi-Fi will work for between a couple hours and maybe a day or so. Even after the computer suspends and comes back, it keeps working. Except that eventually it will stop working. It can still see APs and will try to connect, but time out. The only way I've found to re-connect is to reboot.

mintWifi.py output when wireless is working properly:

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.

lo        no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:"dd-wrt"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:13:10:2C:EF:3E   
          Bit Rate=18 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-26 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:1   Missed beacon:0

-------------------------
* IV. querying ifconfig...
eth0      Link encap:Ethernet  HWaddr d0:50:99:34:6e:db  
          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)
          Interrupt:18 

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:274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:57256 (57.2 KB)  TX bytes:57256 (57.2 KB)

wlan0     Link encap:Ethernet  HWaddr 64:5a:04:8f:6f:1c  
          inet addr:192.168.7.171  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::665a:4ff:fe8f:6f1c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11823 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9363280 (9.3 MB)  TX bytes:2506144 (2.5 MB)

-------------------------
* V. querying DHCP...
RTNETLINK answers: File exists
-------------------------
* VI. querying nslookup google.com...
Server:		192.168.7.1
Address:	192.168.7.1#53

Non-authoritative answer:
Name:	google.com
Address: 74.125.225.1
Name:	google.com
Address: 74.125.225.14
Name:	google.com
Address: 74.125.225.7
Name:	google.com
Address: 74.125.225.4
Name:	google.com
Address: 74.125.225.9
Name:	google.com
Address: 74.125.225.8
Name:	google.com
Address: 74.125.225.2
Name:	google.com
Address: 74.125.225.6
Name:	google.com
Address: 74.125.225.3
Name:	google.com
Address: 74.125.225.0
Name:	google.com
Address: 74.125.225.5
mintWifi.py output when wireless is broken:

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.

lo        no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
-------------------------
* IV. querying ifconfig...
eth0      Link encap:Ethernet  HWaddr d0:50:99:34:6e:db  
          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)
          Interrupt:18 

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:21303 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21303 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2090697 (2.0 MB)  TX bytes:2090697 (2.0 MB)

wlan0     Link encap:Ethernet  HWaddr 64:5a:04:8f:6f:1c  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:118171 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:121997241 (121.9 MB)  TX bytes:22841143 (22.8 MB)
-------------------------
* V. querying DHCP...
-------------------------
* VI. querying nslookup google.com...
;; connection timed out; no servers could be reached
Any ideas?
Thanks!
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.
Kalyk
Level 5
Level 5
Posts: 769
Joined: Wed Mar 12, 2014 5:29 pm
Location: The Netherlands

Re: Wifi works for a while, then stops working

Post by Kalyk »

Hello and welcome to this forum!!

As you are using dd-wrt I suppose you have some experience with computers.
When I google rtl8821ae site:kernel.org I see this driver is quite new (kernel 3.16+).
I would first try installing a new kernel.
I always use the procedure at http://www.upubuntu.com. They also have a good uninstall if it doesn't work.
Add (Solved) to the topic-title of the first post when appropriate so others know they might find a solution here.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi works for a while, then stops working

Post by JeremyB »

Please run this in terminal

Code: Select all

iw list scan
You do not need to post results, but it will show the access points available. Find your ESSID in the list and below it you will see something like this

Code: Select all

IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
If your cipher lists TKIP, change the router settings to WPA2-AES as WEP/TKIP cause issues at times
Locked

Return to “Networking”