Losing internet connection intermittently

Hello people! How are you?
Sorry for the inconvenience, but I have a problem and it’s giving me a headache.

I have lost internet connection intermittently. It started happening to me a few months ago, at that time I had kernel 5.10, I decided to go back to version 4.19 and seeing that it was unsuccessful I reinstalled everything with version 5.15.

I have searched the forums for similar problems, but I can’t find an answer that helps.
I leave you the commands I have executed and if you need any more, do not hesitate to let me know. I appreciate any help provided.

Regards!

$ sudo inxi --verbosity=7 

System:
  Host: dell-manjaro Kernel: 5.15.60-1-MANJARO arch: x86_64 bits: 64
    compiler: gcc v: 12.1.1 Desktop: GNOME v: 42.4 tk: GTK v: 3.24.34
    wm: gnome-shell dm: GDM v: 42.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Inspiron 15-3567 v: N/A serial: 2XL4DT2
    Chassis: type: 9 serial: 2XL4DT2
  Mobo: Dell model: 0P3WF2 v: A00 serial: /2XL4DT2/CNWSC0092P001S/
    UEFI: Dell v: 2.9.0 date: 01/17/2019
Battery:
  ID-1: BAT0 charge: 1.5 Wh (100.0%) condition: 1.5/41.4 Wh (3.6%)
    volts: 16.2 min: 14.8 model: SMP DELL GR43778 type: Li-ion serial: 8289
    status: N/A
Memory:
  RAM: total: 15.49 GiB used: 2.43 GiB (15.7%)
  Array-1: capacity: 32 GiB slots: 2 EC: None max-module-size: 16 GiB
    note: est.
  Device-1: DIMM A type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 8 GiB speed: spec: 2400 MT/s actual: 2133 MT/s volts: 1.2
    width (bits): data: 64 total: 64 manufacturer: 0198000080AD
    part-no: 9905700-011.A00G serial: D450AE4E
  Device-2: DIMM B type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 8 GiB speed: spec: 2400 MT/s actual: 2133 MT/s volts: 1.2
    width (bits): data: 64 total: 64 manufacturer: 01980000830B
    part-no: 9905624-058.A00G serial: C1A842A2
CPU:
  Info: dual core model: Intel Core i3-7020U bits: 64 type: MT MCP
    smt: enabled arch: Amber/Kaby Lake note: check level: v3 rev: 9 cache:
    L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 2300 min/max: 400/2300 volts: 0.7 V ext-clock: 100 MHz
    cores: 1: 2300 2: 2300 3: 2300 4: 2300 bogomips: 18406
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs intel_pt
    invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx
    msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs
    pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg
    sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
Graphics:
  Device-1: Intel vendor: Dell driver: i915 v: kernel arch: Gen-9.5 ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5921
    class-ID: 0300
  Device-2: Sunplus Innovation Integrated_Webcam_HD type: USB
    driver: uvcvideo bus-ID: 1-5:3 chip-ID: 1bcf:28c0 class-ID: 0e02
  Display: server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: modesetting
    alternate: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-size: <missing: xdpyinfo>
  Monitor-1: eDP-1 model: BOE Display 0x0808 res: 1366x768 hz: 60 dpi: 101
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") modes: 1366x768
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2F) v: 4.6 Mesa
    22.1.6 direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d71
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.60-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Dell driver: ath10k_pci v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 01:00.0 chip-ID: 168c:0042 class-ID: 0280
  IF: wlp1s0 state: up mac: 48:5f:99:55:62:af
  IP v4: 192.168.0.122/24 type: noprefixroute scope: global
    broadcast: 192.168.0.255
  IP v6: fe80::26a:9568:14ab:7d8b/64 type: noprefixroute scope: link
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000
    bus-ID: 02:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: enp2s0 state: down mac: 6c:2b:59:55:5a:68
  IF-ID-1: enp0s20f0u3 state: unknown speed: -1 duplex: half
    mac: 2e:71:f6:82:a7:ef
  IP v4: 192.168.186.173/24 type: dynamic noprefixroute scope: global
    broadcast: 192.168.186.255
  IP v6: fe80::2520:88de:d800:31de/64 type: noprefixroute scope: link
  WAN IP: 179.40.67.123
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-8:5
    chip-ID: 0cf3:e009 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.13 TiB used: 13.32 GiB (1.2%)
  ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 5400 serial: ZDEEZ2PB rev: SDM3 scheme: GPT
  ID-2: /dev/sdb vendor: Western Digital model: WDS240G2G0A-00JH30
    size: 223.58 GiB speed: 6.0 Gb/s type: SSD serial: 19222E804835 rev: 0000
    scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / size: 108.49 GiB used: 13.29 GiB (12.3%) fs: ext4 dev: /dev/sdb6
    label: N/A uuid: b7081c0a-e3dd-4563-959b-d7cd2f816c72
  ID-2: /boot/efi size: 96 MiB used: 25.3 MiB (26.4%) fs: vfat
    dev: /dev/sdb1 label: N/A uuid: 3EE8-BD4C
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda1 size: 127 MiB fs: N/A label: N/A uuid: N/A
  ID-2: /dev/sda2 size: 638.42 GiB fs: ntfs label: data
    uuid: 01D547126D8D0700
  ID-3: /dev/sda3 size: 292.97 GiB fs: ext4 label: N/A
    uuid: 40913f7f-c095-4d1f-b921-639ad18ca3a2
  ID-4: /dev/sdb2 size: 16 MiB fs: N/A label: N/A uuid: N/A
  ID-5: /dev/sdb3 size: 111.17 GiB fs: ntfs label: N/A
    uuid: 64727460727438BE
  ID-6: /dev/sdb4 size: 521 MiB fs: ntfs label: N/A uuid: 4022691F22691AE4
  ID-7: /dev/sdb5 size: 1024 MiB fs: swap label: N/A
    uuid: f807d92a-e0a9-4f67-a4ad-e46ac7258f33
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: SHARKOON GmbH 2.4GHz Wireless rechargeable vertical
    mouse [More&Better] type: Mouse driver: hid-generic,usbhid interfaces: 1
    rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 1ea7:0064 class-ID: 0301
  Device-2: 1-3:7 info: Motorola PCS one fusion type: CDC-Data
    driver: rndis_host interfaces: 2 rev: 2.1 speed: 480 Mb/s power: 500mA
    chip-ID: 22b8:2e24 class-ID: 0a00 serial: ZE222JBNDV
  Device-3: 1-5:3 info: Sunplus Innovation Integrated_Webcam_HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 1bcf:28c0 class-ID: 0e02
  Device-4: 1-6:4 info: Realtek RTS5129 Card Reader Controller
    type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc
    interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129
    class-ID: ff00 serial: 20100201396000000
  Device-5: 1-8:5 info: Qualcomm Atheros type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0cf3:e009
    class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 42.0 C pch: 42.0 C mobo: 41.0 C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 246 Uptime: 19m wakeups: 2 Init: systemd v: 251
  default: graphical Compilers: gcc: 12.1.1 clang: 14.0.6 Packages: 1228
  pm: pacman pkgs: 1221 pm: snap pkgs: 7 Shell: Zsh (sudo) v: 5.9
  default: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.21

$ hwinfo --netcard --wlan --bluetooth | grep -Ei "model:|driver:|status:|cmd:|file:|detected:" | grep -v "Config Status"
  Model: "Realtek RTL810xE PCI Express Fast Ethernet controller"
  Driver: "r8169"
  Device File: enp2s0
  Link detected: no
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Model: "Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter"
  Driver: "ath10k_pci"
  Device File: wlp1s0
  Link detected: yes
    Driver Status: ath10k_pci is active
    Driver Activation Cmd: "modprobe ath10k_pci"
  Model: "Qualcomm Atheros Bluetooth Device"
  Driver: "btusb"
    Driver Status: btusb is active
    Driver Activation Cmd: "modprobe btusb"
  Model: "Motorola PCS motorola one fusion"
  Driver: "rndis_host"
  Device File: enp0s20f0u3
  Link detected: yes
    Driver Status: rndis_host is active
    Driver Activation Cmd: "modprobe rndis_host"

$ sudo dmesg | grep ath10k 

[    7.646890] ath10k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[    7.649301] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    7.933720] ath10k_pci 0000:01:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 1028:1810
[    7.933729] ath10k_pci 0000:01:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
[    7.934349] ath10k_pci 0000:01:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[    8.015100] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[    8.108458] 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.193500] ath10k_pci 0000:01:00.0 wlp1s0: renamed from wlan0

Oh, that little bugger. I used to have similar issues on my spare laptop. I see you’re currently using 5.15 LTS, have you tried 5.18 stable (EOL as of 5.18.19) or 5.19 stable?

Either way, when internet magically disappears, does restarting NetworkManager help? It did for me:

systemctl restart NetworkManager.service

Hi @Yochanan ! Thanks for your reply! :slight_smile:

No, I didn’t try a newer version of kernel. I’ll do it this afternoon.

And the command yes, it works but, I have a stable connection for a less of 10 minutes and again, I lost packages. No ping, no connection… nothing.
It’s hard restart the NetworkManager.service every 10 minutes :frowning_face:

Does this help?

https://bbs.archlinux.org/viewtopic.php?id=266280

Also see:

https://unix.stackexchange.com/questions/526512/unstable-wifi-connection-drops-with-qualcomm-qca9377-on-ubuntu-18-04/606511#606511

hm… maybe try pinging a website or your router to keep the connection alive? Maybe it helps?

Example:

ping 192.168.178.1