Public bug reported: I own an Asus TUF A15 FA506IV laptop with Ubuntu 21.10. After putting it to sleep it discharged. Turning it back on the Wireless cards doesn't work.
This is what I found in the logs that could help: Nov 24 15:25:56 Zveri2 krunner[16146]: [11/24/21, 15:25:56:311] info: Store: POWER_RESUMED Nov 24 15:25:56 Zveri2 krunner[16146]: [11/24/21, 15:25:56:312] info: Store: SET_SUSPEND_STATUS true Nov 24 15:25:56 Zveri2 krunner[16146]: [11/24/21, 15:25:56:313] info: [DESKTOP-SIDE-EFFECT] Update from desktop for keys ["app"] Nov 24 15:25:56 Zveri2 kernel: [21587.358139] rtw_8822ce 0000:03:00.0: start vif 80:30:49:cc:98:0f on port 0 Nov 24 15:25:56 Zveri2 charon: 01[KNL] interface wlp3s0 activated Nov 24 15:25:56 Zveri2 NetworkManager[1059]: <info> [1637760356.4839] manager: NetworkManager state is now CONNECTED_LOCAL Nov 24 15:25:56 Zveri2 krunner[16146]: [11/24/21, 15:25:56:489] info: NetworkStatus: Network check failed { Nov 24 15:25:56 Zveri2 krunner[16146]: "error": "Failed to fetch" Nov 24 15:25:56 Zveri2 krunner[16146]: } Nov 24 15:25:56 Zveri2 krunner[16146]: [11/24/21, 15:25:56:490] info: Network status check { Nov 24 15:25:56 Zveri2 krunner[16146]: "elapsed_time_ms": 999784, Nov 24 15:25:56 Zveri2 krunner[16146]: "navigator_online": false, Nov 24 15:25:56 Zveri2 krunner[16146]: "api_test": "offline" Nov 24 15:25:56 Zveri2 krunner[16146]: } After this I am getting the following trace: Nov 24 15:26:05 Zveri2 kernel: [21596.291200] rtw_8822ce 0000:03:00.0: timed out to flush pci tx ring[0] Nov 24 15:26:05 Zveri2 kernel: [21596.291287] rtw_8822ce 0000:03:00.0: timed out to flush pci tx ring[1] Nov 24 15:26:05 Zveri2 kernel: [21596.291365] rtw_8822ce 0000:03:00.0: timed out to flush pci tx ring[2] Nov 24 15:26:05 Zveri2 kernel: [21596.291484] rtw_8822ce 0000:03:00.0: timed out to flush pci tx ring[3] Nov 24 15:26:05 Zveri2 kernel: [21596.291570] rtw_8822ce 0000:03:00.0: timed out to flush pci tx ring[5] Nov 24 15:26:05 Zveri2 kernel: [21596.291651] rtw_8822ce 0000:03:00.0: timed out to flush pci tx ring[6] Nov 24 15:26:06 Zveri2 krunner[16146]: [11/24/21, 15:26:06:125] info: [NETWORK-CONNECTIVITY] Failed to establish a connection after 10 attempt(s). Nov 24 15:26:07 Zveri2 kernel: [21598.291806] rtw_8822ce 0000:03:00.0: failed to poll offset=0x5 mask=0x2 value=0x0 Nov 24 15:26:07 Zveri2 kernel: [21598.292047] ------------[ cut here ]------------ Nov 24 15:26:07 Zveri2 kernel: [21598.292049] failed to read DBI register, addr=0x0719 Nov 24 15:26:07 Zveri2 kernel: [21598.292082] WARNING: CPU: 2 PID: 17826 at drivers/net/wireless/realtek/rtw88/pci.c:1310 rtw_dbi_read8.constprop.0+0x aa/0xc0 [rtw88_pci] Nov 24 15:26:07 Zveri2 kernel: [21598.292096] Modules linked in: nf_conntrack_netlink xt_addrtype br_netfilter vboxnetadp(OE) vboxnetflt(OE) xfrm_user xfrm_algo vboxdrv(OE) rfcomm xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_counter nf_tables nfnetlink bridge stp llc cmac algif_hash algif_skcipher overlay af_alg bnep binfmt_misc zfs(PO) zu nicode(PO) zzstd(O) zlua(O) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) intel_rapl_msr intel_rapl_common joydev snd_hda_codec_realtek snd_hda_code c_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel edac_mce_amd snd_intel_dspcfg snd_intel_sdw_acpi uvcvideo snd_hda_codec rtw88_8822ce rtw88_88 22c videobuf2_vmalloc snd_hda_core kvm_amd snd_hwdep rtw88_pci btusb videobuf2_memops snd_pcm btrtl rtw88_core videobuf2_v4l2 btbcm videobuf2_common k vm btintel snd_seq_midi bluetooth videodev snd_seq_midi_event ecdh_generic nls_iso8859_1 mc mac80211 rapl ecc snd_rawmidi input_leds Nov 24 15:26:07 Zveri2 kernel: [21598.292174] serio_raw efi_pstore wmi_bmof hid_multitouch snd_seq k10temp snd_seq_device cfg80211 snd_timer ucsi_ccg snd snd_rn_pci_acp3x libarc4 ccp snd_pci_acp3x soundcore ucsi_acpi typec_ucsi typec asus_wireless mac_hid nvidia_uvm(POE) sch_fq_codel msr parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs blake2b_generic xor zstd_compress raid6_pq libcrc32c dm_crypt hid_logitech_hidpp hid_logitech_dj nvidia_drm(POE) nvidia_modeset(POE) usbhid nvidia(POE) hid_generic amdgpu mfd_aaeon asus_wmi sparse_keymap iommu_v2 gpu_sched i2c_algo_bit drm_ttm_helper ttm drm_kms_helper crct10dif_pclmul crc32_pclmul syscopyarea ghash_clmulni_intel sysfillrect sysimgblt fb_sys_fops cec aesni_intel i2c_hid_acpi r8169 rc_core nvme ahci i2c_hid crypto_simd xhci_pci cryptd drm i2c_piix4 nvme_core libahci realtek xhci_pci_renesas i2c_nvidia_gpu wmi video hid Nov 24 15:26:07 Zveri2 kernel: [21598.292257] CPU: 2 PID: 17826 Comm: kworker/u32:16 Tainted: P OE 5.13.0-21-generic #21-Ubuntu Nov 24 15:26:07 Zveri2 kernel: [21598.292261] Hardware name: ASUSTeK COMPUTER INC. TUF Gaming FA506IV_FA506IV/FA506IV, BIOS FA506IV.309 07/02/2020 Nov 24 15:26:07 Zveri2 kernel: [21598.292265] Workqueue: phy0 ieee80211_scan_work [mac80211] Nov 24 15:26:07 Zveri2 kernel: [21598.292330] RIP: 0010:rtw_dbi_read8.constprop.0+0xaa/0xc0 [rtw88_pci] Nov 24 15:26:07 Zveri2 kernel: [21598.292338] Code: 03 00 00 48 8b 40 58 e8 84 d4 be de 5b 41 5c 41 88 45 00 31 c0 41 5d 5d c3 be 19 07 00 00 48 c7 c7 e8 76 61 c3 e8 c5 93 7b de <0f> 0b b8 fb ff ff ff 5b 41 5c 41 5d 5d c3 0f 1f 84 00 00 00 00 00 Nov 24 15:26:07 Zveri2 kernel: [21598.292341] RSP: 0018:ffffb2a484093ce0 EFLAGS: 00010282 Nov 24 15:26:07 Zveri2 kernel: [21598.292345] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027 Nov 24 15:26:07 Zveri2 kernel: [21598.292348] RDX: ffff8a384f6989c8 RSI: 0000000000000001 RDI: ffff8a384f6989c0 Nov 24 15:26:07 Zveri2 kernel: [21598.292351] RBP: ffffb2a484093cf8 R08: 0000000000000000 R09: ffffb2a484093ad0 Nov 24 15:26:07 Zveri2 kernel: [21598.292353] R10: ffffb2a484093ac8 R11: ffffffffa3155268 R12: ffff8a315b1f1f40 Nov 24 15:26:07 Zveri2 kernel: [21598.292355] R13: ffffb2a484093d17 R14: ffff8a315b1f67d0 R15: 0000000000000000 Nov 24 15:26:07 Zveri2 kernel: [21598.292358] FS: 0000000000000000(0000) GS:ffff8a384f680000(0000) knlGS:0000000000000000 Nov 24 15:26:07 Zveri2 kernel: [21598.292361] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Nov 24 15:26:07 Zveri2 kernel: [21598.292364] CR2: 00007fcbf03bf000 CR3: 00000004be010000 CR4: 0000000000350ee0 Nov 24 15:26:07 Zveri2 kernel: [21598.292368] Call Trace: Nov 24 15:26:07 Zveri2 kernel: [21598.292372] rtw_pci_link_ps+0x53/0x90 [rtw88_pci] Nov 24 15:26:07 Zveri2 kernel: [21598.292379] ? rtw_core_stop+0xda/0xe0 [rtw88_core] Nov 24 15:26:07 Zveri2 kernel: [21598.292395] rtw_enter_ips+0x3e/0x50 [rtw88_core] Nov 24 15:26:07 Zveri2 kernel: [21598.292414] rtw_ops_config+0xd3/0xe0 [rtw88_core] Nov 24 15:26:07 Zveri2 kernel: [21598.292429] ieee80211_hw_config+0x7d/0xf0 [mac80211] Nov 24 15:26:07 Zveri2 kernel: [21598.292488] ieee80211_recalc_idle+0x29/0x30 [mac80211] Nov 24 15:26:07 Zveri2 kernel: [21598.292553] __ieee80211_scan_completed+0x10d/0x350 [mac80211] Nov 24 15:26:07 Zveri2 kernel: [21598.292614] ieee80211_scan_work+0x128/0x570 [mac80211] Nov 24 15:26:07 Zveri2 kernel: [21598.292675] process_one_work+0x220/0x3c0 Nov 24 15:26:07 Zveri2 kernel: [21598.292683] worker_thread+0x53/0x420 Nov 24 15:26:07 Zveri2 kernel: [21598.292688] kthread+0x11f/0x140 Nov 24 15:26:07 Zveri2 kernel: [21598.292693] ? process_one_work+0x3c0/0x3c0 Nov 24 15:26:07 Zveri2 kernel: [21598.292698] ? set_kthread_struct+0x50/0x50 Nov 24 15:26:07 Zveri2 kernel: [21598.292703] ret_from_fork+0x22/0x30 Nov 24 15:26:07 Zveri2 kernel: [21598.292711] ---[ end trace 3849ad4bc3633ed8 ]--- Nov 24 15:26:07 Zveri2 kernel: [21598.293067] failed to read DBI register, addr=0x0719 This bug looks similar to the bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1872984. I tried, following https://github.com/lwfinger/rtw88/issues/33 to add the options `rtw_pci disable_aspm=1` and `rtw_pci disable_aspm=1` but they didn't help. Some times the cards works for around 20-30 minutes after boot and it turns off again. Using https://bbs.archlinux.org/viewtopic.php?id=260589 I tried adding to kernel boot parameters `pcie_aspm.policy=performance`, but this didn't help with waking up the wi-fi adapter. I also tried different kernel combinations (newest mainline kernel as well as kernel versions similar to what were in 20.10 and 21.04), but these didn't help either. ProblemType: Bug DistroRelease: Ubuntu 21.10 Package: linux-image-5.13.0-21-generic 5.13.0-21.21 ProcVersionSignature: Ubuntu 5.13.0-21.21-generic 5.13.18 Uname: Linux 5.13.0-21-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC2: ion 2263 F.... pulseaudio /dev/snd/controlC0: ion 2263 F.... pulseaudio /dev/snd/controlC1: ion 2263 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: KDE Date: Fri Nov 26 11:05:17 2021 InstallationDate: Installed on 2020-11-06 (384 days ago) InstallationMedia: Kubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022) MachineType: ASUSTeK COMPUTER INC. ASUS TUF Gaming A15 FA506IV_FA506IV ProcFB: 0 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.13.0-21-generic root=/dev/mapper/vgkubuntu-root ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-5.13.0-21-generic N/A linux-backports-modules-5.13.0-21-generic N/A linux-firmware 1.201.1 RfKill: 0: hci0: Bluetooth Soft blocked: no Hard blocked: no SourcePackage: linux UpgradeStatus: Upgraded to impish on 2021-10-25 (31 days ago) dmi.bios.date: 03/12/2021 dmi.bios.release: 5.16 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: FA506IV.316 dmi.board.asset.tag: ATN12345678901234567 dmi.board.name: FA506IV dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: 1.0 dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: ASUSTeK COMPUTER INC. dmi.chassis.version: 1.0 dmi.ec.firmware.release: 3.12 dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrFA506IV.316:bd03/12/2021:br5.16:efr3.12:svnASUSTeKCOMPUTERINC.:pnASUSTUFGamingA15FA506IV_FA506IV:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnFA506IV:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku: dmi.product.family: ASUS TUF Gaming A15 dmi.product.name: ASUS TUF Gaming A15 FA506IV_FA506IV dmi.product.version: 1.0 dmi.sys.vendor: ASUSTeK COMPUTER INC. ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug impish -- 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