WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

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.
Locked
holwes
Level 1
Level 1
Posts: 2
Joined: Mon Jun 21, 2021 1:25 pm

WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by holwes »

I experience the same issue. When downloading a file or I heavily stress the network, the transfer stops. After some seconds, the download resumes, stops again and so on. Switch off the power management does not work.

Code: Select all

$ inxi -n
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  driver: rtw_8822ce 
  IF: wlp1s0 state: up mac: 80:30:xx:xx:xx:xx
The system logs:

Code: Select all

19:06:32 dbus-daemon: [session uid=1000 pid=1172] Successfully activated service 'org.gnome.Logs'
19:06:28 systemd: Finished Ubuntu Advantage APT and MOTD Messages.
19:06:21 wpa_supplicant: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-52 noise=9999 txrate=351000
19:06:20 NetworkManager: <info>  [1624295180.9113] device (wlp1s0): supplicant interface state: 4-way handshake -> completed
19:06:20 wpa_supplicant: wlp1s0: CTRL-EVENT-CONNECTED - Connection to 30:b1:xx:xx:xx:xx completed [id=0 id_str=]
19:06:20 NetworkManager: <info>  [1624295180.8814] device (wlp1s0): supplicant interface state: associated -> 4-way handshake
19:06:20 kernel: wlp1s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 30:b1:xx:xx:xx:xx
19:06:20 NetworkManager: <info>  [1624295180.7610] device (wlp1s0): supplicant interface state: associating -> associated
19:06:20 kernel: wlp1s0: associated
19:06:20 kernel: rtw_8822ce 0000:01:00.0: sta 30:b1:xx:xx:xx:xx joined with macid 0
19:06:20 kernel: wlp1s0: RX AssocResp from 30:b1:xx:xx:xx:xx (capab=0x1511 status=0 aid=17)
19:06:20 NetworkManager: <info>  [1624295180.7552] device (wlp1s0): supplicant interface state: authenticating -> associating
19:06:20 wpa_supplicant: wlp1s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
19:06:20 NetworkManager: <info>  [1624295180.7456] device (wlp1s0): supplicant interface state: scanning -> authenticating
19:06:20 kernel: wlp1s0: authenticate with 30:b1:xx:xx:xx:xx
19:06:20 NetworkManager: <info>  [1624295180.2677] device (wlp1s0): supplicant interface state: disconnected -> scanning
19:06:19 wpa_supplicant: wlp1s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
19:06:19 NetworkManager: <warn>  [1624295179.9413] sup-iface[0x55ab8017f900,wlp1s0]: connection disconnected (reason -4)
19:06:19 wpa_supplicant: wlp1s0: CTRL-EVENT-DISCONNECTED bssid=30:b2:xx:xx:xx:xx reason=4 locally_generated=1
19:06:19 kernel: rtw_8822ce 0000:01:00.0: sta 30:b2:xx:xx:xx:xx with macid 0 left
19:06:19 sudo: pam_unix(sudo:session): session closed for user root
19:06:19 wpa_supplicant: wlp1s0: CTRL-EVENT-BEACON-LOSS
19:06:16 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
19:06:14 wpa_supplicant: wlp1s0: CTRL-EVENT-BEACON-LOSS
19:06:03 systemd-resolve: Using degraded feature set (TCP) for DNS server fe80::1%2.
19:06:03 wpa_supplicant: wlp1s0: CTRL-EVENT-BEACON-LOSS
19:05:52 systemd-resolve: Using degraded feature set (UDP) for DNS server fe80::1%2.
19:05:51 wpa_supplicant: wlp1s0: CTRL-EVENT-BEACON-LOSS
19:05:11 NetworkManager: <info>  [1624295111.3518] device (wlp1s0): supplicant interface state: 4-way handshake -> completed
19:05:11 wpa_supplicant: wlp1s0: CTRL-EVENT-CONNECTED - Connection to 30:b2:xx:xx:xx:xx completed [id=0 id_str=]
19:05:11 NetworkManager: <info>  [1624295111.3209] device (wlp1s0): supplicant interface state: associated -> 4-way handshake
19:05:11 kernel: wlp1s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 30:b2:xx:xx:xx:xx
19:05:11 NetworkManager: <info>  [1624295111.1765] device (wlp1s0): supplicant interface state: associating -> associated
19:05:11 wpa_supplicant: wlp1s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=DE
19:05:11 kernel: rtw_8822ce 0000:01:00.0: sta 30:b2:xx:xx:xx:xx joined with macid 0
19:05:11 kernel: wlp1s0: RX AssocResp from 30:b2:xx:xx:xx:xx (capab=0x1511 status=0 aid=10)
19:05:11 NetworkManager: <info>  [1624295111.1696] device (wlp1s0): supplicant interface state: authenticating -> associating
19:05:11 kernel: wlp1s0: associate with 30:b2:xx:xx:xx:xx (try 1/3)
19:05:11 NetworkManager: <info>  [1624295111.1609] device (wlp1s0): supplicant interface state: scanning -> authenticating
19:05:10 kernel: wlp1s0: authenticate with 30:b2:xx:xx:xx:xx
19:05:10 NetworkManager: <info>  [1624295110.7363] device (wlp1s0): supplicant interface state: disconnected -> scanning
19:05:10 wpa_supplicant: wlp1s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
19:05:10 NetworkManager: <info>  [1624295110.4308] device (wlp1s0): supplicant interface state: completed -> disconnected
19:05:10 wpa_supplicant: wlp1s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
19:05:10 NetworkManager: <warn>  [1624295110.4091] sup-iface[0x55ab8017f900,wlp1s0]: connection disconnected (reason -4)
19:05:10 wpa_supplicant: wlp1s0: CTRL-EVENT-DISCONNECTED bssid=30:b1:xx:xx:xx:xx reason=4 locally_generated=1
19:05:10 kernel: rtw_8822ce 0000:01:00.0: sta 30:b1:xx:xx:xx:xx with macid 0 left
19:05:09 wpa_supplicant: wlp1s0: CTRL-EVENT-BEACON-LOSS
19:05:09 systemd-resolve: Using degraded feature set (UDP) for DNS server fe80::1%2.
19:05:07 wpa_supplicant: wlp1s0: CTRL-EVENT-BEACON-LOSS
19:04:54 systemd-resolve: Failed to send hostname reply: Invalid argument
System is LM 20.2 (beta)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by kelebek333 »

Run following command.

Code: Select all

iw dev wlp1s0 get power_save
If output of command as following,

Code: Select all

Power save: on
Run following commands for disabling network manager's power management.

Code: Select all

echo -e '[connection]\nwifi.powersave = 2' | sudo tee /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Code: Select all

sudo systemctl restart NetworkManager
User avatar
Pjotr
Level 24
Level 24
Posts: 20140
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by Pjotr »

An alternative for kelebek333's approach (there are multiple ways):

1. Check whether WiFi Power Management is "on" with:

Code: Select all

iwconfig
2. If "on", do this for turning it off (use copy/paste for transferring this complicated command to the terminal):

Code: Select all

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
You can use copy/paste like this:
https://easylinuxtipsproject.blogspot.c ... paste.html


3. Reboot.
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.
holwes
Level 1
Level 1
Posts: 2
Joined: Mon Jun 21, 2021 1:25 pm

Re: WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by holwes »

As I already wrote, turning off the power saving doesn't work.
gittiest personITW
Level 12
Level 12
Posts: 4286
Joined: Tue May 28, 2019 4:27 pm

Re: WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by gittiest personITW »

As a quick troubleshooting step till someone else replies, boot up into Live Mint and see if the same thing happens.
Post back with the result.
User avatar
Pjotr
Level 24
Level 24
Posts: 20140
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by Pjotr »

holwes wrote: Tue Jun 22, 2021 2:12 pm As I already wrote, turning off the power saving doesn't work.
You should be more precise in your information.

"Switch off the power management does not work" can also apply to general power management for the entire system. In fact, that was what I presumed that it meant.

You should have stated that "Switch off the power management for the WiFi chipset does not work". Which would have saved kelebek333 and me some time and effort.
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.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: WiFi disconnecting every few minutes on Linux Mint 20.1 RTL8822CE

Post by kelebek333 »

@holwes, If you install rtw88 module from this source , uninstall it with following command.

Code: Select all

sudo dkms remove rtlwifi-new/0.6 --all
Then, You can try to install HWE kernel 5.11 with following command and reboot. This kernel has rtw88_8822ce driver by built-in.

Code: Select all

sudo apt update ; sudo apt install --install-recommends linux-generic-hwe-20.04-edge

If the issue is not solved with newer kernel, You can try to install the rtl8822ce-dkms package with the following commands from PPA repository. Then reboot.

Code: Select all

sudo add-apt-repository ppa:kelebek333/kablosuz
sudo apt-get update
sudo apt install rtl8822ce-dkms
Locked

Return to “Networking”