Network disconnects on linux mint when using wi-fi

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.
Post Reply
Holmes85
Level 1
Level 1
Posts: 5
Joined: Sun Mar 10, 2024 11:28 am

Network disconnects on linux mint when using wi-fi

Post by Holmes85 »

[SOLVED] My network disconnects several times a day. After a reboot it usual happens less often for a period. It can often occur after the laptop was in sleep mode. Usually I can just turn the network off and on again and it usually works again.

I've tried the fixes I could find on the forum including replacing the firmware folder for Qualcomm Atheros QCA6174 802.11a wireless network adapter.

Code: Select all

  
Operating System: Linux Mint 20.3
Kernel: Linux 5.4.0-174-generic 
And here is my System info (command inxi -Fxxxz):

Code: Select all

System:    Kernel: 5.4.0-174-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: LENOVO product: 81F4 v: Lenovo ideapad 330S-14IKB serial: <filter> Chassis: type: 10 
           v: Lenovo ideapad 330S-14IKB serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN serial: <filter> UEFI [Legacy]: LENOVO v: 7SCN23WW 
           date: 08/21/2018 
Battery:   ID-1: BAT0 charge: 19.5 Wh condition: 19.8/30.0 Wh (66%) volts: 8.1/7.4 model: LENOVO BASE-BAT type: Li-poly 
           serial: <filter> status: Unknown 
CPU:       Topology: Dual Core model: Intel Pentium 4415U bits: 64 type: MT MCP arch: Amber Lake rev: 9 L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18399 
           Speed: 700 MHz min/max: 400/2300 MHz Core speeds (MHz): 1: 700 2: 700 3: 701 4: 706 
Graphics:  Device-1: Intel vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5906 
           Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1366x768~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 610 (KBL GT1) v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:9d71 
           Sound Server: ALSA v: k5.4.0-174-generic 
Network:   Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Lenovo driver: ath10k_pci v: kernel 
           port: 3040 bus ID: 01:00.0 chip ID: 168c:0042 
           IF: wlp1s0 state: up mac: <filter> 
           Device-2: Qualcomm Atheros type: USB driver: btusb bus ID: 1-4:2 chip ID: 0cf3:e500 
Drives:    Local Storage: total: 119.24 GiB used: 56.31 GiB (47.2%) 
           ID-1: /dev/sda vendor: SK Hynix model: HFS128G32TNF-N3A0A size: 119.24 GiB speed: 6.0 Gb/s serial: <filter> 
           rev: 0P10 temp: 25 C scheme: MBR 
Partition: ID-1: / size: 116.32 GiB used: 56.31 GiB (48.4%) fs: ext4 dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 30.0 C mobo: 0.0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 247 Uptime: 11h 12m Memory: 3.74 GiB used: 1.47 GiB (39.2%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.4.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Here is the result from command rfkill list && iwconfig && mokutil --sb-state

Code: Select all

0: ideapad_wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: ideapad_bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: ideapad_3g: Wireless WAN
	Soft blocked: no
	Hard blocked: no
3: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
4: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
wlp1s0    IEEE 802.11  ESSID:"WLAN-223649"  
          Mode:Managed  Frequency:5.18 GHz  Access Point: 44:FE:3B:E4:E0:9A   
          Bit Rate=6 Mb/s   Tx-Power=23 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:161   Missed beacon:0

lo        no wireless extensions.

EFI variables are not supported on this system

Last edited by Holmes85 on Wed Apr 10, 2024 2:27 am, edited 2 times in total.
User avatar
stevengarland
Level 5
Level 5
Posts: 844
Joined: Tue Mar 05, 2019 4:04 pm
Location: Michigan

Re: Network disconnects on linux mint when using wi-fi

Post by stevengarland »

Your computer is reasonably new. Why not move up, via a clean install, to Mint 21.3, with the latest kernel and see what happens. Things are intended to improve.
Keep It Simple Sweetheart
Holmes85
Level 1
Level 1
Posts: 5
Joined: Sun Mar 10, 2024 11:28 am

Re: Network disconnects on linux mint when using wi-fi

Post by Holmes85 »

I've upgraded to linux mint 21.3 and the problem still persists.
Now the kernel I have is 5.15.0-101-generic
Any ideas how I could even find the problem? I've been trying to search the logs with command: journalctl -u NetworkManager -n 100
or searching in /var/log/syslog but I can't find the cause. Then after a while I use command: sudo modprobe -r ath10k_pci && sudo modprobe ath10k_pci and it works again thereafter.
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Network disconnects on linux mint when using wi-fi

Post by Pjotr »

Try an even newer driver:
Update Manager - panel: View - Linux kernels
Install the latest kernel of the 6.5 series. Then reboot and test.

If that doesn't help: sleep mode, especially suspend-to-disk, is sometimes problematic. suspend-to-ram does a little better. It might help if you make sure that your BIOS is of the latest version.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11186
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Network disconnects on linux mint when using wi-fi

Post by AZgl1800 »

a previous laptop had the same exact problem, JeremyB fixed it for me.


You could make sure Network Manager isn't turning on wifi power management with

CODE:

Code: Select all

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf && systemctl restart network-manager.service

Code: Select all

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf


Jeremy told another to use

Code: Select all

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

viewtopic.php?f=53&t=298372
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Network disconnects on linux mint when using wi-fi

Post by sleeper12 »

His power management is already off:

wlp1s0 IEEE 802.11 ESSID:"WLAN-223649"
Mode:Managed Frequency:5.18 GHz Access Point: 44:FE:3B:E4:E0:9A
Bit Rate=6 Mb/s Tx-Power=23 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
User avatar
AZgl1800
Level 20
Level 20
Posts: 11186
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Network disconnects on linux mint when using wi-fi

Post by AZgl1800 »

sleeper12 wrote: Sat Mar 30, 2024 8:22 pm His power management is already off:

wlp1s0 IEEE 802.11 ESSID:"WLAN-223649"
Mode:Managed Frequency:5.18 GHz Access Point: 44:FE:3B:E4:E0:9A
Bit Rate=6 Mb/s Tx-Power=23 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
I scrolled thru the codes, and missed that, oh well, I tried.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Network disconnects on linux mint when using wi-fi

Post by sleeper12 »

AZgl1800 wrote: Sat Mar 30, 2024 8:36 pm
sleeper12 wrote: Sat Mar 30, 2024 8:22 pm His power management is already off:

wlp1s0 IEEE 802.11 ESSID:"WLAN-223649"
Mode:Managed Frequency:5.18 GHz Access Point: 44:FE:3B:E4:E0:9A
Bit Rate=6 Mb/s Tx-Power=23 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
I scrolled thru the codes, and missed that, oh well, I tried.
I know, been there, done that. :lol:
Holmes85
Level 1
Level 1
Posts: 5
Joined: Sun Mar 10, 2024 11:28 am

Re: Network disconnects on linux mint when using wi-fi

Post by Holmes85 »

Pjotr wrote: Sat Mar 30, 2024 6:32 pm Try an even newer driver:
Update Manager - panel: View - Linux kernels
Install the latest kernel of the 6.5 series. Then reboot and test.

If that doesn't help: sleep mode, especially suspend-to-disk, is sometimes problematic. suspend-to-ram does a little better. It might help if you make sure that your BIOS is of the latest version.
I have update the BIOS and the kernel to the 6.5 series.
The problem persists. Power management is off and in file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf wifi.powersave =2.

I tried to change suspend-to-disk to suspend-to-ram but I don't really know how to do this.
I tried doing is with
sudo nano /etc/systemd/sleep.conf
and changing the line
#SuspendMode =
to
SuspendMode = ram
But after this I no longer have suspend mode option in power management so I would have to shut down the laptop instead of suspending.
Is there a better way to suspend to ram?
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Network disconnects on linux mint when using wi-fi

Post by Pjotr »

I'm afraid this is a misunderstanding. My suspend comment was simply a sideline, meant to indicate that using either sleep mode (both ram and disk) might cause problems like this on some hardware combinations (yours probably included). Leaving only full shutdown as a good option.

Whatever you try next: undo that change in /etc/systemd/sleep.conf.

One thing you might still try, is this:
1. Make a Timeshift snapshot for easy reversal;
2. In the terminal:

Code: Select all

echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k.conf
3. Then reboot and test.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Holmes85
Level 1
Level 1
Posts: 5
Joined: Sun Mar 10, 2024 11:28 am

Re: Network disconnects on linux mint when using wi-fi

Post by Holmes85 »

Pjotr wrote: Tue Apr 02, 2024 4:45 am I'm afraid this is a misunderstanding. My suspend comment was simply a sideline, meant to indicate that using either sleep mode (both ram and disk) might cause problems like this on some hardware combinations (yours probably included). Leaving only full shutdown as a good option.

Whatever you try next: undo that change in /etc/systemd/sleep.conf.

One thing you might still try, is this:
1. Make a Timeshift snapshot for easy reversal;
2. In the terminal:

Code: Select all

echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k.conf
3. Then reboot and test.
I just tried this and the problem is still there!

Maybe something else worth noting is shortly after reboot the result of command dmesg | grep ath10k shows an error
[ 6.525385] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 6.525660] ath10k_pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 6.525663] ath10k_pci 0000:01:00.0: device [168c:0042] error status/mask=00001181/00006000
[ 6.525667] ath10k_pci 0000:01:00.0: [ 0] RxErr (First)
[ 6.525670] ath10k_pci 0000:01:00.0: [ 7] BadDLLP
[ 6.525673] ath10k_pci 0000:01:00.0: [ 8] Rollover
[ 6.525676] ath10k_pci 0000:01:00.0: [12] Timeout
[ 6.559131] ath10k_pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 6.559135] ath10k_pci 0000:01:00.0: device [168c:0042] error status/mask=00001101/00006000
[ 6.559139] ath10k_pci 0000:01:00.0: [ 0] RxErr (First)
[ 6.559143] ath10k_pci 0000:01:00.0: [ 8] Rollover
[ 6.559146] ath10k_pci 0000:01:00.0: [12] Timeout
[ 6.662054] ath10k_pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 6.662058] ath10k_pci 0000:01:00.0: device [168c:0042] error status/mask=00001181/00006000
[ 6.662062] ath10k_pci 0000:01:00.0: [ 0] RxErr (First)
[ 6.662066] ath10k_pci 0000:01:00.0: [ 7] BadDLLP
[ 6.662069] ath10k_pci 0000:01:00.0: [ 8] Rollover
[ 6.662072] ath10k_pci 0000:01:00.0: [12] Timeout
[ 6.695233] ath10k_pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 6.695236] ath10k_pci 0000:01:00.0: device [168c:0042] error status/mask=00001001/00006000
[ 6.695241] ath10k_pci 0000:01:00.0: [ 0] RxErr (First)
[ 6.695244] ath10k_pci 0000:01:00.0: [12] Timeout
[ 6.805973] ath10k_pci 0000:01:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[ 6.805981] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 6.806600] ath10k_pci 0000:01:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[ 6.874854] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[ 6.968170] ath10k_pci 0000:01:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 8.206831] ath10k_pci 0000:01:00.0 wlp1s0: renamed from wlan0
[ 10.542325] ath10k_pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 10.542328] ath10k_pci 0000:01:00.0: device [168c:0042] error status/mask=00001081/00006000
[ 10.542332] ath10k_pci 0000:01:00.0: [ 0] RxErr (First)
[ 10.542334] ath10k_pci 0000:01:00.0: [ 7] BadDLLP
[ 10.542337] ath10k_pci 0000:01:00.0: [12] Timeout
[ 10.576635] ath10k_pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 10.576638] ath10k_pci 0000:01:00.0: device [168c:0042] error status/mask=00001101/00006000
[ 10.576642] ath10k_pci 0000:01:00.0: [ 0] RxErr (First)
[ 10.576645] ath10k_pci 0000:01:00.0: [ 8] Rollover
[ 10.576648] ath10k_pci 0000:01:00.0: [12] Timeout
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Network disconnects on linux mint when using wi-fi

Post by Pjotr »

That's a pity. Restore the Timeshift snapshot in order to reverse the change.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Holmes85
Level 1
Level 1
Posts: 5
Joined: Sun Mar 10, 2024 11:28 am

Re: Network disconnects on linux mint when using wi-fi

Post by Holmes85 »

I think I found a solution, with the help of ChatGPT.

I reinstalled the linux firmware for a start and then used
sudo nano /etc/default/grub
and change the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"
So far so good. I'll mark as solved if I haven't had issues in the next few days.
Post Reply

Return to “Networking”