Periodic WiFi shutdowns

Hello! I’ve been having problems connecting to my 5G network ever since I got my new PC. Formerly I used an TPLink Archer T9UH, but I changed it for an ANDDEAR - MT761003, since it has native kernel support according to this. However, I’m still getting disconnects and “this device has limited connectivity” warnings when using my 5G network. I’ve tried deleting the network through

sudo nmcli connection add type wifi ifname wlp4s0 con-name wifi-auto ssid "Network_5G"
sudo nmcli connection modify wifi-auto wifi-sec.key-mgmt wpa-psk
sudo nmcli connection modify wifi-auto wifi-sec.psk "password"
sudo systemctl restart NetworkManager

And still no avail. I’ve checked via journalctl -fe and every time I get the warning I get the following output:

journalctl -fe when warning
jun 07 23:52:33 gabriel-gaming NetworkManager[43580]: <info>  [1749354753.6624] manager: NetworkManager state is now CONNECTED_SITE
jun 07 23:52:33 gabriel-gaming NetworkManager[43580]: <info>  [1749354753.6628] manager: NetworkManager state is now CONNECTED_LOCAL
jun 07 23:52:33 gabriel-gaming NetworkManager[43580]: <info>  [1749354753.6629] manager: NetworkManager state is now CONNECTED_SITE
jun 07 23:52:33 gabriel-gaming NetworkManager[43580]: <info>  [1749354753.6629] policy: set 'Meme_5G' (wlan1) as default for IPv4 routing and DNS
jun 07 23:52:33 gabriel-gaming systemd[1]: Starting Network Manager Script Dispatcher Service...
jun 07 23:52:33 gabriel-gaming systemd[1]: Started Network Manager Script Dispatcher Service.
jun 07 23:52:43 gabriel-gaming plasmashell[894]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/delegates/DelegatePopup.qml:147:17: QML Body: Binding loop detected for property "width"
jun 07 23:52:43 gabriel-gaming systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
jun 07 23:52:49 gabriel-gaming wpa_supplicant[50307]: wlan1: CTRL-EVENT-BEACON-LOSS
jun 07 23:53:10 gabriel-gaming NetworkManager[43580]: <info>  [1749354790.2272] manager: NetworkManager state is now CONNECTED_GLOBAL
jun 07 23:53:10 gabriel-gaming NetworkManager[43580]: <info>  [1749354790.2277] policy: set 'Meme' (wlan0) as default for IPv4 routing and DNS
jun 07 23:53:10 gabriel-gaming systemd[1]: Starting Network Manager Script Dispatcher Service...
jun 07 23:53:10 gabriel-gaming systemd[1]: Started Network Manager Script Dispatcher Service.
jun 07 23:53:20 gabriel-gaming systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
jun 07 23:53:38 gabriel-gaming wpa_supplicant[50307]: wlan1: CTRL-EVENT-BEACON-LOSS
jun 07 23:53:46 gabriel-gaming wpa_supplicant[50307]: wlan1: CTRL-EVENT-BEACON-LOSS

Those “CRTL-EVENT-BEACON-LOSS” apparently have something to do with distance optimization as stated here, though I’m not sure how to implement the fix (and I’m not sure that’s the problem I have anyways, since this is a desktop). I’m at a bit of a loss on what to look for or do next, so I’m recurring to you.

inxi -bnNz
System:
  Kernel: 6.12.28-1-MANJARO arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.5 Distro: Manjaro Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME A520M-K v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3607
    date: 03/22/2024
CPU:
  Info: 6-core AMD Ryzen 5 5500 [MT MCP] speed (MHz): avg: 2994
    min/max: 400/4267
Graphics:
  Device-1: NVIDIA GA107 [GeForce RTX 3050 6GB] driver: nvidia v: 570.144
  Display: x11 server: X.Org v: 21.1.16 with: Xwayland v: 24.1.6 driver: X:
    loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 570.144
    renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp4s0 state: down mac: <filter>
  Device-2: Realtek RTL8192EE PCIe Wireless Network Adapter
    driver: rtl8192ee
  IF: wlan0 state: up mac: <filter>
  Device-3: MediaTek WiFi driver: mt76x0u type: USB
  IF: wlan1 state: up mac: <filter>
Drives:
  Local Storage: total: 2.38 TiB used: 1.52 TiB (63.7%)
Info:
  Memory: total: 16 GiB note: est. available: 15.41 GiB used: 7.34 GiB (47.6%)
  Processes: 377 Uptime: 12h 43m Shell: Zsh inxi: 3.3.38

Maybe the PCIe card is running interference with the Anddear dongle? I was thinking on just buying a small router and just plugging it into my PC via ethernet cable as a sort of antenna, but I’d rather exhaust other options before I do that.

Quite often you need to run the latest kernel for get the adapter working properly.

I suggest you switch to Linux 6.15 then retry the adapter.

I just tried that, but it fails to start Plasma and I can’t get it to run through the command line (ctrl+alt+F2). I returned to 6.12.

That is what it looks like to me.
They are both up - and first, wlan1 (Meme_5G) is set as default, then wlan0 (Meme) is also set as default.

To add/use these driver options, create a file in /etc/modprobe.d/ with content:
options driver_name the_options_that_you_want_to_set

(three columns: 1) the keyword “options” 2) the driver name 3) the options
The name of the file is not important, but has to end in .conf)

Try this first, mac randomization and power save use to be the main cause of wifi disconnections:

Hi @TrpBandit ,

Can you tell us why you are using two wifi adapters at the same time?
I wonder whether you could disable the one you do not want and try again.

Regards,

Tried disabling wlan0 by

if=wlan0
sudo ip link set $if down

Still nothing, still get the multiple “CTRL-EVENT-BEACON-LOSS” error.

In part as a backup since I’ve had trouble getting the 5G connection to work so I figured it’d be at least nice to have something to fall back on, though mostly because I’m rather hesitant to disable it via CLI or similar since I’m a bit paranoid.

Tried it, lost connectivity still :confused: . I’ll try a live image to see if it’s because of something I did before getting the dongle.

Oh, I almost forgot: It’s not the wifi itself. I can use my cellphone as an antenna via USB tethering and it works as it should.

Hmm - but according to your log,
wlan1 reports a beacon loss - not wlan0

… you shut down the one which didn’t report a problem … :man_shrugging:

It may be the driver of the card used to connect to that wifi - as you suspected.
The other end of the connection may still work just fine …

wlan0 is the PCIe one, which has no 5G capabilities. I want to fix the dongle since it can connect to the 5G network. I can get a connection just fine with wlan0, but it’s slow as snails (in comparison).