Thank you for your reply.

To clarify what  "laptop discharge in sleep" means - the day before I
put the laptop to sleep, with around 20% of battery remaining. On the
second day in the morning the laptop was off, fully discharged. When I
plugged it in and turned it on, there was no wireless conectivity, the
load on the CPU was increased with lots of messages like below in
syslog:

```
Dec  8 13:30:10 Zveri2 kernel: [   57.005777] rtw_8822ce 0000:03:00.0: failed 
to poll offset=0x5 mask=0x2 value=0x0
Dec  8 13:30:10 Zveri2 kernel: [   57.005789] rtw_8822ce 0000:03:00.0: mac 
power on failed
Dec  8 13:30:10 Zveri2 kernel: [   57.005793] rtw_8822ce 0000:03:00.0: failed 
to power on mac
Dec  8 13:30:10 Zveri2 kernel: [   57.005795] rtw_8822ce 0000:03:00.0: leave 
idle state failed
Dec  8 13:30:10 Zveri2 kernel: [   57.005956] rtw_8822ce 0000:03:00.0: failed 
to leave ips state
Dec  8 13:30:10 Zveri2 kernel: [   57.005962] rtw_8822ce 0000:03:00.0: failed 
to leave idle state
Dec  8 13:30:10 Zveri2 kernel: [   57.006050] rtw_8822ce 0000:03:00.0: timed 
out to flush pci tx ring[0]
Dec  8 13:30:10 Zveri2 kernel: [   57.006122] rtw_8822ce 0000:03:00.0: timed 
out to flush pci tx ring[1]
Dec  8 13:30:10 Zveri2 kernel: [   57.006193] rtw_8822ce 0000:03:00.0: timed 
out to flush pci tx ring[2]
Dec  8 13:30:10 Zveri2 kernel: [   57.006264] rtw_8822ce 0000:03:00.0: timed 
out to flush pci tx ring[3]
Dec  8 13:30:10 Zveri2 kernel: [   57.006335] rtw_8822ce 0000:03:00.0: timed 
out to flush pci tx ring[5]
Dec  8 13:30:10 Zveri2 kernel: [   57.006406] rtw_8822ce 0000:03:00.0: timed 
out to flush pci tx ring[6]
```

Now I have to add that with `options rtw88_pci disable_msi=1`, sometimes
the wifi starts on boot. It works for around 20-30 minutes, and after
that I get the following in the logs:

```
Dec  8 12:52:53 Zveri2 krunner[23639]: [12/08/21, 12:52:53:939] info: Store: 
SET_SYSTEM_IDLE idle
Dec  8 12:53:18 Zveri2 krunner[23954]: Qt: Session management error: 
networkIdsList argument is NULL
Dec  8 12:53:35 Zveri2 wpa_supplicant[1074]: wlp3s0: CTRL-EVENT-BEACON-LOSS  
Dec  8 12:53:35 Zveri2 kernel: [ 4589.882099] rtw_8822ce 0000:03:00.0: failed 
to send h2c command
Dec  8 12:53:35 Zveri2 kernel: [ 4589.885182] rtw_8822ce 0000:03:00.0: failed 
to send h2c command
```


> please check /proc/cmdline to see the setting take effect.
```
BOOT_IMAGE=/vmlinuz-5.13.0-22-generic root=/dev/mapper/vgkubuntu-root ro quiet 
splash pcie_aspm.policy=performance amd_iommu=off vt.handoff=7

```

> Please confirm the module parameters by
/sys/module/rtw88_pci/parameters/ if they are set properly

```

root@Zveri2:~# cat /sys/module/rtw88_pci/parameters/disable_aspm  
Y
root@Zveri2:~# cat /sys/module/rtw88_pci/parameters/disable_msi  
Y

```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1952403

Title:
  Realtek 8822CE wireless card fails to work after laptop discharge in
  sleep

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1952403/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to