Loss of Wifi card after wake up from suspend

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
argonaut459
Posts: 527
Joined: Tue Oct 04, 2022 11:49 am

Loss of Wifi card after wake up from suspend

#1 Post by argonaut459 »

Code: Select all

Snapshot created on: 20240307_1525
System:
  Kernel: 6.7.8-1-liquorix-amd64 [6.7-12~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable rcupdate.rcu_expedited=1 BOOT_IMAGE=/boot/vmlinuz-6.7.8-1-liquorix-amd64
    root=UUID=<filter> ro splash resume=UUID=<filter> resume_offset=5447680 quiet
    init=/lib/systemd/systemd
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel, plank wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.2_x64 Libretto February 15  2024 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: THOMSON product: GENEO14C-4WH128 v: N/A serial: <superuser required>
  Mobo: Eii model: G116X1_1 serial: <superuser required> UEFI: American Megatrends
    v: E.G116X1_1_6.S4.E1.039 date: 07/28/2021
Battery:
  ID-1: BAT0 charge: 19.8 Wh (65.1%) condition: 30.4/30.4 Wh (100.0%) volts: 7.6 min: N/A
    model: GLK MRD Li-ion Battery type: Li-ion serial: <filter> status: discharging
CPU:
  Info: model: Intel Celeron N4020 bits: 64 type: MCP arch: Goldmont Plus level: v2 built: 2017
    process: Intel 14nm family: 6 model-id: 0x7A (122) stepping: 8 microcode: 0x22
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 112 KiB desc: d-2x24 KiB; i-2x32 KiB
    L2: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 895 min/max: 800/1101 boost: enabled scaling: driver: acpi-cpufreq
    governor: ondemand cores: 1: 895 2: 895 bogomips: 4377
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 600] driver: i915 v: kernel arch: Gen-9
    process: Intel 14n built: 2015-16 ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:3185 class-ID: 0300
  Device-2: icSpring camera type: USB driver: uvcvideo bus-ID: 1-7:3 chip-ID: 32e6:9005
    class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99") s-diag: 414mm (16.31")
  Monitor-1: eDP-1 model-id: CS_ 0x5211 serial: <filter> built: 2013 res: 1366x768 hz: 60 dpi: 67
    gamma: 1.2 size: 518x333mm (20.39x13.11") diag: 519mm (20.4") ratio: 3:2 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 600 (GLK 2) direct-render: Yes
Audio:
  Device-1: Intel Celeron/Pentium Silver Processor High Definition Audio
    driver: sof-audio-pci-intel-apl alternate: snd_hda_intel, snd_soc_skl, snd_soc_avs,
    snd_sof_pci_intel_apl bus-ID: 00:0e.0 chip-ID: 8086:3198 class-ID: 0401
  API: ALSA v: k6.7.8-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Message: No PCI device data found.
  IF-ID-1: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek 802.11ac NIC type: USB driver: btusb,rtw_8821cu bus-ID: 1-4:2
    chip-ID: 0bda:c820 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block:
    hardware: no software: yes address: <filter>
  Info: acl-mtu: 1021:8 sco-mtu: 255:12 link-policy: rswitch hold sniff park
    link-mode: peripheral accept
Drives:
  Local Storage: total: 234.48 GiB used: 36.71 GiB (15.7%)
  ID-1: /dev/mmcblk1 maj-min: 179:0 type: Removable vendor: Generic model: SLD128
    size: 115.23 GiB block-size: physical: 512 B logical: 512 B type: SSD serial: <filter> rev: 0x8
    scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-2: /dev/sda maj-min: 8:0 vendor: Intenso model: N/A size: 119.24 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 9A0 scheme: GPT
Partition:
  ID-1: / raw-size: 29.75 GiB size: 29.11 GiB (97.87%) used: 14.21 GiB (48.8%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 89.24 GiB size: 87.29 GiB (97.81%) used: 22.5 GiB (25.8%) fs: ext4
    dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 5.65 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
  ID-2: swap-2 type: zram size: 256 MiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 56.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2150 libs: 1111 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://nl.mxrepo.com/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
    1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 303 Uptime: 2m wakeups: 1 Memory: 3.66 GiB used: 1.61 GiB (43.9%) Init: systemd v: 252
  target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Due to another issue and correlating thread I was switching between suspend and wake up rather often. BUT I let the laptop go to suspend by itself and went for lunch, waking up the laptop I found that I don't have any form of wifi.
Checking dmesg, I found these red entries:

Code: Select all

[ 3042.260563] Restarting tasks ... 
[ 3042.261861] rtw_8821cu 1-4:1.2: Firmware version 24.11.0, H2C version 12
[ 3042.270195] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 3042.272073] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 3042.272097] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 3042.272267] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 3042.272372] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 3042.274476] done.
[ 3042.274495] random: crng reseeded on system resumption

Code: Select all

[ 3050.142580] systemd-journald[352]: Data hash table of /run/log/journal/8dcf203c553c682a8112af2565e1d7b8/system.journal has a fill level at 75.0 (6396 of 8526 items, 4911104 file size, 767 bytes per hash table item), suggesting rotation.
[ 3050.142592] systemd-journald[352]: /run/log/journal/8dcf203c553c682a8112af2565e1d7b8/system.journal: Journal header limits reached or header out-of-date, rotating.
[ 3050.850927] rtw_8821cu 1-4:1.2: failed to download firmware
[ 3050.852733] rtw_8821cu 1-4:1.2: leave idle state failed
[ 3050.859134] rtw_8821cu 1-4:1.2: failed to send h2c command
[ 3050.862991] rtw_8821cu 1-4:1.2: failed to send h2c command
[ 3050.865858] rtw_8821cu 1-4:1.2: failed to leave ips state
[ 3050.865879] rtw_8821cu 1-4:1.2: failed to leave idle state
[ 3050.869691] wlan0: authenticate with 90:9a:4a:8f:a7:61 (local address=34:20:03:e8:f7:fd)
[ 3057.476524] wlan0: send auth to 90:9a:4a:8f:a7:61 (try 1/3)
[ 3058.767844] wlan0: send auth to 90:9a:4a:8f:a7:61 (try 2/3)
[ 3059.792010] wlan0: send auth to 90:9a:4a:8f:a7:61 (try 3/3)
[ 3060.750218] wlan0: authentication with 90:9a:4a:8f:a7:61 timed out
[ 3066.098404] wlan0: authenticate with 90:9a:4a:8f:a7:61 (local address=34:20:03:e8:f7:fd)
[ 3066.144782] wlan0: send auth to 90:9a:4a:8f:a7:61 (try 1/3)
[ 3066.156768] wlan0: authenticated
[ 3066.156999] wlan0: associate with 90:9a:4a:8f:a7:61 (try 1/3)
[ 3066.159503] wlan0: RX AssocResp from 90:9a:4a:8f:a7:61 (capab=0x1011 status=0 aid=2)
[ 3066.169359] wlan0: associated

Code: Select all

[ 5219.211139] PM: suspend entry (deep)
[ 5219.254597] Filesystems sync: 0.043 seconds
[ 5219.259667] Freezing user space processes
[ 5219.261796] Freezing user space processes completed (elapsed 0.002 seconds)
[ 5219.261802] OOM killer disabled.
[ 5219.261803] Freezing remaining freezable tasks
[ 5219.262876] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 5219.262921] printk: Suspending console(s) (use no_console_suspend to debug)
[ 5219.365258] sd 1:0:0:0: [sda] Synchronizing SCSI cache
[ 5219.368200] ata2.00: Entering standby power mode
[ 5219.481586] usb 1-4: reset high-speed USB device number 2 using xhci_hcd
[ 5219.765927] ACPI: EC: interrupt blocked
[ 5219.782286] ACPI: PM: Preparing to enter system sleep state S3
[ 5219.784397] ACPI: EC: event blocked
[ 5219.784401] ACPI: EC: EC stopped
[ 5219.784404] ACPI: PM: Saving platform NVS memory
[ 5219.784478] Disabling non-boot CPUs ...
[ 5219.786402] smpboot: CPU 1 is now offline
[ 5219.794599] ACPI: PM: Low-level resume complete
[ 5219.794672] ACPI: EC: EC started
[ 5219.794673] ACPI: PM: Restoring platform NVS memory
[ 5219.795746] Enabling non-boot CPUs ...
[ 5219.795909] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ 5219.798960] ACPI: \_SB_.CPU1: Found 3 idle states
[ 5219.799709] CPU1 is up
[ 5219.799905] ACPI: PM: Waking up from system sleep state S3
[ 5219.808818] ACPI: EC: interrupt unblocked
[ 5219.818523] ACPI: EC: event unblocked
[ 5220.280399] mei_hdcp 0000:00:0f.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
[ 5220.281430] OOM killer enabled.
[ 5220.281434] Restarting tasks ... done.
[ 5220.293168] random: crng reseeded on system resumption
[ 5220.299211] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 5220.304277] ata2.00: configured for UDMA/133
[ 5220.361463] PM: suspend exit
[ 5220.361748] rtw_8821cu 1-4:1.2: Firmware version 24.11.0, H2C version 12
[ 5220.367509] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 5220.368505] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 5220.368515] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 5220.368561] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 5220.368624] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 5220.637462] rtw_8821cu 1-4:1.2: failed to download firmware
[ 5220.639779] rtw_8821cu 1-4:1.2: failed to setup chip efuse info
[ 5220.639787] rtw_8821cu 1-4:1.2: failed to setup chip information
[ 5220.640934] rtw_8821cu: probe of 1-4:1.2 failed with error -22
[ 5220.833505] Bluetooth: hci0: RTL: fw version 0x75b8f098
[ 5220.908989] Bluetooth: MGMT ver 1.22
Just to make sure it ain't an issue with a tlp setting:

Code: Select all

--- TLP 1.5.0 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_WARN_LEVEL="3"
defaults.conf L0006: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0008: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0010: MAX_LOST_WORK_SECS_ON_BAT="60"
/etc/tlp.conf L0116: CPU_ENERGY_PERF_POLICY_ON_AC="performance"
defaults.conf L0012: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0013: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0014: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
defaults.conf L0028: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
defaults.conf L0041: RUNTIME_PM_ON_AC="on"
defaults.conf L0042: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0051: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0052: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0053: NATACPI_ENABLE="1"
defaults.conf L0054: TPACPI_ENABLE="1"
defaults.conf L0055: TPSMAPI_ENABLE="1"
I read that realtek wifi cards rather often got issues with Linux, however these reports are years old.
I'm happy for suggestions and ideas on how to improve on that.

Cheers, and a fresh mug of coffee :coffee:
Julian
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

Charlie Brown

Re: Loss of Wifi card after wake up from suspend

#2 Post by Charlie Brown »

argonaut459 wrote: Tue Mar 12, 2024 9:09 am... to make sure it ain't an issue with a tlp ...
To eliminate that try the same when plugged in and when on battery. If it changes, then (only) tlp.

Post Reply

Return to “MX Help”