WiFi extremely slow randomly

Hey all, I’m facing a really weird issue with my WiFi where it randomly becomes very very slow, usually happens when I start my laptop and lasts for a few hours, then fixes itself automatically.

I have a 500Mbps connection and when facing this issue, the speed drops to about 60Mbps. I know it’s the WiFi because I tried connecting with ethernet, and I get the advertised speed. I know it’s not a timing issue, as at the same time when my laptop is struggles with speed, my phone, connected to the same router, gets full speed. I don’t have many devices connected to my router, usually 2 and sometimes 3.

Here are the things I’ve tried, that do not work

Restarting Network Manager
Logging out and logging back in
Restarting my laptop (this sometimes will randomly work, I have no clue why)
Updating my system

I thought the browser was the culprit, but I’m getting bad speed even when running speedtest cli. I don’t believe it’s Linux doing this, as I have another laptop with Fedora and that works fantastic. Also, I tried plugging in a Live USB and I get great speed there. I feel like I’ve messed up some networking config, but I don’t remember touching the config in forever.

Does anyone know what the issue might be? It’s been driving me crazy. I’d understand if I was always getting bad speed, then it could be something with the WiFi module, but the fact that after a few hours (sometimes ~30 mins or so) of using, the speed stabilizes

I’m really not sure what info will be helpful in debugging this… I have firewall turned off

Also, very very weird, I think Bluetooth has something to do with it as sometimes just disconnecting and reconnecting Bluetooth headphones will solve this issue. But again, only sometimes, not everytime

Output of inxi -F

System:
  Host: pragyan Kernel: 7.0.10-1-MANJARO arch: x86_64 bits: 64
  Desktop: GNOME v: 50.1 Distro: Manjaro Linux
Machine:
  Type: Laptop System: LENOVO product: 82JQ v: Legion 5 Pro 16ACH6H
    serial: PF3Y4K24
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76485 WIN serial: PF3Y4K24
    Firmware: UEFI vendor: LENOVO v: GKCN65WW date: 01/16/2024
Battery:
  ID-1: BAT0 charge: 55.6 Wh (86%) condition: 64.6/80 Wh (80.8%)
CPU:
  Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 3251 min/max: 403/4465 cores: 1: 3251 2: 3251 3: 3251
    4: 3251 5: 3251 6: 3251 7: 3251 8: 3251 9: 3251 10: 3251 11: 3251 12: 3251
    13: 3251 14: 3251 15: 3251 16: 3251
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: nvidia
    v: 595.71.05
  Display: unspecified server: X.org v: 1.21.1.22 with: Xwayland v: 24.1.11
    driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution:
    1: 2560x1440~60Hz 2: 2560x1600~60Hz
  API: EGL v: 1.5 drivers: nvidia,nvidia-drm,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: nvidia mesa v: 595.71.05
    renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
  Info: Tools: api: eglinfo,glxinfo gpu: nvidia-settings,nvidia-smi
    wl: wlr-randr x11: xprop,xrandr
Audio:
  Device-1: NVIDIA GA106 High Definition Audio driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor driver: N/A
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
    driver: snd_hda_intel
  API: ALSA v: k7.0.10-1-MANJARO status: kernel-api
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: eno1 state: down mac: 6c:24:08:fb:e1:69
  Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
    driver: rtw89_8852ae
  IF: wlp4s0 state: up mac: e0:0a:f6:ac:d5:3b
  IF-ID-1: br-11eddf558044 state: down mac: 66:bc:3f:71:88:ac
  IF-ID-2: br-15faef307010 state: down mac: 16:a8:cf:d8:0a:af
  IF-ID-3: br-1e6e90c5ce5e state: down mac: e2:fd:e2:b7:55:ca
  IF-ID-4: br-42507aecfd0d state: down mac: 26:8f:9a:b7:96:fa
  IF-ID-5: br-5a1c857b506d state: down mac: 0e:f0:ff:ad:92:b3
  IF-ID-6: br-c3cdfed3c816 state: down mac: 6a:8d:72:fe:85:75
  IF-ID-7: docker0 state: down mac: 56:14:9a:29:08:28
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb type: USB
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 1.84 TiB used: 815.66 GiB (43.3%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD Blue SN570 1TB SSD
    size: 931.51 GiB
  ID-2: /dev/nvme1n1 vendor: SK Hynix model: HFS001TDE9X084N
    size: 953.87 GiB
Partition:
  ID-1: / size: 239.25 GiB used: 64.13 GiB (26.8%) fs: ext4
    dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 1022 MiB used: 300 KiB (0.0%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 666.74 GiB used: 508.58 GiB (76.3%) fs: ext4
    dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: partition size: 7.91 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p2
Sensors:
  System Temperatures: cpu: 62.9 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 40 GiB available: 39.02 GiB used: 3.14 GiB (8.1%)
  Processes: 384 Uptime: 22m Shell: Sudo inxi: 3.3.40

The Bluetooth clue is worth following. The RTL8852AE and Bluetooth share the same radio area, so I would first test with Bluetooth fully disabled, not only disconnected: rfkill block bluetooth, then reconnect Wi-Fi and run the same speedtest. Also compare iw dev wlp4s0 link when it is slow versus normal; if the tx bitrate drops to a very low value, try switching the router between 2.4 GHz and 5 GHz or disabling power save with sudo iw dev wlp4s0 set power_save off for a test.

2 Likes

I’d be checking the system logs before, during and after these events to see if there is any difference, errors, warnings, load order, etc.