RTL8822CE WiFi problems (Asus TUF Gaming A15)

Hello, I just a bought a new laptop (the one mentioned in the title) and I have two really weird issues.

  • 2 WiFi cards are recognized (wlan0 and wlp3s0) and my connectivity is unstable as a result. After suspsension WiFI works but can't connect to any network and after a while all the networks disappear.

  • My Firefox logins are resetted every time I shut the PC down.

Otherwise the machine works flawlessly but I would really like to make this my main driver so any help is appreciated, Thank you for this amazing distro! :smiley: \o/

EDIT: The second issue is resolved. Firefox for some reason had the "Delete browsing history when Firefox closes" option enabled.

I wonder if your connection is skipping between the two cards. Try disabling one and see what happens.

How can I disable the wlan0 card?

From what I understand the Bluetooth Adapter is recognized as a second WiFi Adapter. Can I fix that?

Please post the output of the following command:

inxi -SMa; hwinfo --netcard --bluetooth | grep -Ei "(hotplug|speed|model|status|cmd|file|detected|driver:)" | grep -v "Config S" && echo "System install date $(head -n1 /var/log/pacman.log | cut -d " " -f1 | cut -c 2-11)" 

Please post only text outputs, no pictures please.

3 Likes

I have resolved the two wireless adapters problem. It was just the proprietary drivers. The WiFi still can't find any networks after suspend though. Here is the output:

  System:
  Host: qushy-A15 Kernel: 5.9.13-98-tkg-bmq x86_64 bits: 64 compiler: gcc 
  v: 10.2.0 
  parameters: intel_pstate=passive 
  BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-bmq 
  root=UUID=b0d456ef-0c78-4f1e-aaa6-8f7f4b0b3dce rw [email protected] 
  quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 
  systemd.unified_cgroup_hierarchy=1 
  resume=UUID=8a1ad434-2f08-42d3-8832-7491e52881bf loglevel=3 
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 
  dm: SDDM Distro: Garuda Linux 
Machine:
  Type: Laptop System: ASUSTeK product: TUF Gaming FA506IV_FA506IV v: 1.0 
  serial: <superuser/root required> 
  Mobo: ASUSTeK model: FA506IV v: 1.0 serial: <superuser/root required> 
  UEFI: American Megatrends v: FA506IV.309 date: 07/02/2020 
  Model: "Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter"
  Driver: "rtw_8822ce"
  Device File: wlp3s0
  Link detected: yes
    Driver Status: rtw88_8822ce is active
    Driver Activation Cmd: "modprobe rtw88_8822ce"
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  Driver: "r8169"
  Device File: enp2s0
  Link detected: no
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Model: "Lite-On Bluetooth Radio"
  Hotplug: USB
  Driver: "btusb"
  Speed: 12 Mbps
    Driver Status: btusb is active
    Driver Activation Cmd: "modprobe btusb"
System install date 2020-12-10

Generally if your WiFi isn't working after suspension then you can correct this by writing a service. The service unloads your network components prior to suspension, and then reloads them after resuming.

Create the service file:

/etc/systemd/system/network-restart.service

With the following contents:

# cat /etc/systemd/system/network-restart.service
# systemctl enable --now network-restart.service
# systemctl start network-restart.service
# systemctl stop network-restart.service
# systemctl disable --now network-restart.service
# systemctl status network-restart.service
# systemctl daemon-reload

[Unit]
Description=Network Suspend/Resume Service 
Before=sleep.target
StopWhenUnneeded=yes

[Service]
User=root
Type=oneshot
RemainAfterExit=yes
ExecStartPre=-/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli networking off'
ExecStart=/usr/bin/sleep 1
ExecStart=-/usr/bin/systemctl stop NetworkManager
ExecStart=/usr/bin/sleep 1
ExecStart=-/usr/bin/ip link set wlp3s0 down
ExecStart=/usr/bin/sleep 1
ExecStart=-/usr/bin/modprobe -r rtw88_8822ce
ExecStop=/usr/bin/sleep 5
ExecStop=-/usr/bin/modprobe rtw88_8822ce
ExecStop=/usr/bin/sleep 2
ExecStop=-/usr/bin/ip link set wlp3s0 up
ExecStop=/usr/bin/sleep 2
ExecStop=-/usr/bin/systemctl start NetworkManager
ExecStop=/usr/bin/sleep 2
ExecStop=-/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli networking on'
ExecStop=/usr/bin/sleep 1
ExecStop=-/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli r wifi off'
ExecStop=/usr/bin/sleep 1
ExecStop=-/usr/bin/sudo -u $USER /bin/bash -lc 'nmcli r wifi on'

[Install]
WantedBy=sleep.target

Save the service file, then enable the service.

If you have any further questions, see:

5 Likes

Thank you so much! Works like a charm! :smiley:

Your welcome, no trouble at all.

It took me all of 30 seconds to write that service from a template of many other suspend services I've written in the past.

Glad to be of assistance, and welcome to Garuda.

3 Likes

8 posts were split to a new topic: Asus TUF Gaming A15 laptop pros/cons

It's totally irrelevant to the topic.
Start new.

3 Likes