rtl8821ce icon indicating copy to clipboard operation
rtl8821ce copied to clipboard

Connection crashes when I start or finish a download

Open mirkobrombin opened this issue 4 years ago • 1 comments

Here we go again.

After the NetworkManager fix (#179), the connection no longer crashes at regular intervals and the ping no longer goes crazy.

Unfortunately I am experiencing another problem: sometimes when a download starts and when it ends, the connection crashes. I keep an eye on the ping and it never increases when I am about to crash. It appears that the connection is simply disconnected and after about a minute it reconnects.

I don't know which log to watch.

Testing OS: Fedora 33 / Pop!_OS 20.10

mirkobrombin avatar Nov 07 '20 12:11 mirkobrombin

After much research, I realized that the bad guy is NetworkManager again.

There are many issues reported online about the method and frequency with which NetworkManager checks and "roam" connections. It seems that forcing the BSSID only works a few times (unfortunately I couldn't figure out which ones).

There are many patches that propose to fix this problem but never been merged.

  • http://blog.cerowrt.org/post/disabling_channel_scans/?_utm_source=1-2-2
  • https://blogs.gnome.org/dcbw/2016/05/16/networkmanager-and-wifi-scans/
  • https://phoronix.com/scan.php?page=news_item&px=NetworkManager-Roam-Aggressive
  • https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/201

There are many people that fixed the problem using wicd. Unfortunately this has not been updated since 2016.

But there is a solution. Just switch to connman and cmst.

Fedora 32+

dnf install connman cmst
systemctl disable NetworkManager
systemctl enable connman
reboot

Ubuntu 19.04+

apt install connman cmst
systemctl disable NetworkManager
systemctl enable connman
reboot

This fixed my problem (this time for real).

mirkobrombin avatar Nov 19 '20 13:11 mirkobrombin