Wifi intermittently loses connection on Mint 20

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
tb_

Wifi intermittently loses connection on Mint 20

Post by tb_ »

Code: Select all

System:
  Kernel: 5.4.0-58-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.6.7 wm: muffin 4.6.3 dm: LightDM 1.30.0 
  Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASRock model: Z370 Pro4 serial: <filter> 
  UEFI [Legacy]: American Megatrends v: P1.50 date: 11/28/2017 
CPU:
  Topology: 6-Core model: Intel Core i7-8700 bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 12.0 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 76799 
  Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 801 6: 800 7: 801 8: 800 9: 800 10: 800 11: 800 12: 800 
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: eVga.com. driver: nvidia 
  v: 450.80.02 bus ID: 01:00.0 chip ID: 10de:1b81 
  Display: x11 server: X.Org 1.20.8 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 450.80.02 
  direct render: Yes 
Audio:
  Device-1: NVIDIA GP104 High Definition Audio vendor: eVga.com. 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10f0 
  Device-2: Creative Labs CA0108/CA10300 [Sound Blaster Audigy Series] 
  driver: snd_emu10k1 v: kernel bus ID: 07:00.0 chip ID: 1102:0008 
  Device-3: Razer USA Razer Kraken 7.1 V2 type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-3:4 chip ID: 1532:0510 
  serial: <filter> 
  Sound Server: ALSA v: k5.4.0-58-generic 
Network:
  Device-1: Intel Ethernet I219-V vendor: ASRock driver: e1000e v: 3.2.6-k 
  port: f000 bus ID: 00:1f.6 chip ID: 8086:15b8 
  IF: enp0s31f6 state: down mac: <filter> 
  Device-2: Qualcomm Atheros AR9271 802.11n type: USB driver: ath9k_htc 
  bus ID: 1-1:2 chip ID: 0cf3:9271 serial: <filter> 
  IF: wlx2824ff44bb3c state: up mac: <filter> 
Drives:
  Local Storage: total: 2.04 TiB used: 179.96 GiB (8.6%) 
  ID-1: /dev/sda vendor: A-Data model: SU650 size: 223.57 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 6.8E scheme: MBR 
  ID-2: /dev/sdb vendor: Toshiba model: DT01ACA200 size: 1.82 TiB 
  speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: ABB0 scheme: GPT 
Partition:
  ID-1: / size: 218.07 GiB used: 179.96 GiB (82.5%) fs: ext4 dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 32.0 C mobo: N/A gpu: nvidia temp: 32 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
  1: deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
  1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/libretro-stable-focal.list 
  1: deb http://ppa.launchpad.net/libretro/stable/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/mono-official-vs.list 
  1: deb https://download.mono-project.com/repo/ubuntu vs-bionic main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com ulyana main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
  Processes: 308 Uptime: 2m Memory: 15.57 GiB used: 1.66 GiB (10.7%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
I have been having issues with WiFi connectivity in Linux Mint 20. Every hour or so, my internet goes down. WiFi signal strength shows 0%. In the majority of these cases, simply turning WiFi off and back on will resolve the issue and it reconnects (at least for the next 30 to 60 minutes until it happens again). However, occasionally it will get stuck in a loop where it repeatedly asks me to re-enter my credentials (the WiFi password). I enter the password and press Okay, and it goes about trying to connect. It refuses to do so, and simply throws up the same window asking for the password again ~10 seconds later. This is only resolved by restarted the PC, at which point the WiFi reconnects, only to have the issues return in another 30-60 minutes of uptime. I have read through posts here and elsewhere by others having similar issues, and have tried to follow along with the help provided in those threads, but to no avail. The issues seem to be too specific to each user's hardware/software/etc, and thus the solutions provided therein have not worked for me. Thus, here I am. I would appreciate any help because I've been dealing with this for a few weeks and I'm at a loss!
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.
User avatar
Larry78723
Level 14
Level 14
Posts: 5476
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Wifi intermittently loses connection on Mint 20

Post by Larry78723 »

This should help. Open a terminal and copy and paste the following command:

Code: Select all

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf 
Reboot
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
tb_

Re: Wifi intermittently loses connection on Mint 20

Post by tb_ »

Ah, I thought it might have worked (bought me a couple of hours problem free somehow), but alas, the issue has returned.

EDIT: I should note that I have tried switching USB ports and the problem seems to persist no matter which port I plug the adapter into. I purchased the adapter through ThinkPenguin, who advertised it as working out-of-box on Mint 20. I mean it technically does work, just with constant disconnects.
sleeper12
Level 21
Level 21
Posts: 14514
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi intermittently loses connection on Mint 20

Post by sleeper12 »

See if this helps any:

Code: Select all

 echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k.conf 
Reboot
tb_

Re: Wifi intermittently loses connection on Mint 20

Post by tb_ »

No dice :(
sleeper12
Level 21
Level 21
Posts: 14514
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi intermittently loses connection on Mint 20

Post by sleeper12 »

Try reloading the driver:

Code: Select all

 sudo modprobe -r ath9k_htc && sudo modprobe ath9k_htc 
You can also try:

Code: Select all

 sudo service network-manager restart 
tb_

Re: Wifi intermittently loses connection on Mint 20

Post by tb_ »

The problem still persists
User avatar
Larry78723
Level 14
Level 14
Posts: 5476
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Wifi intermittently loses connection on Mint 20

Post by Larry78723 »

Please post the results for each of the following commands. Here is how:

Open a terminal window (Ctrl-Alt-t). Make it fullscreen to avoid unneeded linebreaks or chopped lines. Execute the following commands, one at a time.

Code: Select all

 iwconfig

Code: Select all

lsusb

Code: Select all

 lspci 
Mark the complete text output which each command will display with your mouse.
Press the keyboard shortcut <Shift><Ctrl>C to copy the marked text into the clipboard.
Enclose the results for each command between the code markers by selecting </> from the mini toolbar above the textbox where you type your reply then paste <Ctrl>V them in your reply between the code markers [code]Results [/code].
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
tb_

Re: Wifi intermittently loses connection on Mint 20

Post by tb_ »

iwconfig

Code: Select all

wlx2824ff44bb3c  IEEE 802.11  ESSID:"*********"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: BC:3E:07:93:5C:28   
          Bit Rate=57.8 Mb/s   Tx-Power=30 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=41/70  Signal level=-69 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:64   Missed beacon:0

lo        no wireless extensions.

enp0s31f6  no wireless extensions.
lsusb

Code: Select all

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 046d:c24a Logitech, Inc. G600 Gaming Mouse
Bus 001 Device 004: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
Bus 001 Device 003: ID 045e:02ea Microsoft Corp. Xbox One S Controller
Bus 001 Device 006: ID 0c45:7603 Microdia USB Keyboard
Bus 001 Device 002: ID 1532:0510 Razer USA, Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lspci

Code: Select all

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
00:14.2 Signal processing controller: Intel Corporation 200 Series PCH Thermal Subsystem
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.6 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #7 (rev f0)
00:1c.7 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #8 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Z370 Chipset LPC/eSPI Controller
00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)
06:00.0 PCI bridge: Tundra Semiconductor Corp. Tsi381 PCIe to PCI Bridge (rev 02)
07:00.0 Multimedia audio controller: Creative Labs CA0108/CA10300 [Sound Blaster Audigy Series]
sleeper12
Level 21
Level 21
Posts: 14514
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi intermittently loses connection on Mint 20

Post by sleeper12 »

Have you tried restarting your router/modem & machine?
tb_

Re: Wifi intermittently loses connection on Mint 20

Post by tb_ »

Yeah, a bunch of times
dabaker79
Level 1
Level 1
Posts: 1
Joined: Wed Jun 02, 2021 10:26 am

Re: Wifi intermittently loses connection on Mint 20

Post by dabaker79 »

I'm having this same issue, and have been for about a year. I have followed every instruction suggested here, with the same results. Any update on this issue would be greatly appreciated.

iwconfig

Code: Select all

wlp0s20f3  IEEE 802.11  ESSID:"********"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: [ROUTER ADDRESS]   
          Bit Rate=144.4 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-30 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:1479   Missed beacon:0
lspci

Code: Select all

00:00.0 Host bridge: Intel Corporation Device 9b61 (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake Thermal Subsytem
00:14.0 USB controller: Intel Corporation Device 02ed
00:14.2 RAM memory: Intel Corporation Device 02ef
00:14.3 Network controller: Intel Corporation Wireless-AC 9462
00:15.0 Serial bus controller [0c80]: Intel Corporation Serial IO I2C Host Controller
00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake Serial IO I2C Host Controller
00:16.0 Communication controller: Intel Corporation Comet Lake Management Engine Interface
00:17.0 SATA controller: Intel Corporation Comet Lake SATA AHCI Controller
00:1d.0 PCI bridge: Intel Corporation Device 02b0 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Device 02b4 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device 0284
00:1f.3 Audio device: Intel Corporation Device 02c8
00:1f.4 SMBus: Intel Corporation Device 02a3
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake SPI (flash) Controller
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
02:00.0 Non-Volatile memory controller: SK hynix BC501 NVMe Solid State Drive 512GB
sleeper12
Level 21
Level 21
Posts: 14514
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi intermittently loses connection on Mint 20

Post by sleeper12 »

tb_ wrote: Sun Dec 27, 2020 3:57 pm Yeah, a bunch of times
Try Disable IPv6:
https://easylinuxtipsproject.blogspot.c ... html#ID2.2
mroca2005
Level 1
Level 1
Posts: 1
Joined: Thu Jun 17, 2021 5:53 am

Re: Wifi intermittently loses connection on Mint 20

Post by mroca2005 »

I have the same issue. I also have a Atheros chip adapter with driver ath10k_pci.
Tried everything suggested and still the internet drops and wi-fi signal drops to 0.
Changed my router, just reinstalled Linux Mint 20.1 and still the same problem.
Changed the router channel from automatic to manual and tried different channels and still the same.
Disabled IPv6, same.
Only thing that makes the internet work for a couple of hours is to unplug and plug the router again.
After using only Linux Mint on my computer for almost 10 years, I think my only solution is to go back to Windows.
sleeper12
Level 21
Level 21
Posts: 14514
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi intermittently loses connection on Mint 20

Post by sleeper12 »

Not sure if it will help, but you all can have a look at #2.3 here:
https://easylinuxtipsproject.blogspot.c ... html#ID2.3
Locked

Return to “Networking”