Wifi disconnecting after sleep

Hi,

This is my first post here. I just installed Manjaro yesterday and I really like it. Unfortunately I am having a problem where my wifi connection is lost after awaking my laptop from sleep mode. It comes back after a restart. Not sure if its my network adapter or something else. I upgraded to the newest kernel after reading other posts here. It did not work. I actually had the exact same problem with Mint and Pop_OS. I kept reading that this is a Debian issue so I tried Manjaro because its Arch based (now I actually like it in spite of reading that it’s not ideal for beginners).
I tried turning off power management on the Debian based operating systems with no luck, but have not tried with Manjaro because the instructions I found were on an Arch forum and looked complicated…

system info:

    ~  inxi --admin --verbosity=7 --filter --width                                                    ✔ 
System:
  Kernel: 5.18.0-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.18-x86_64
    root=UUID=a4520f22-567c-421c-878a-3501c7683c62 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 15t-dy100 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 86C9 v: 56.33 serial: <superuser required> UEFI: AMI
    v: F.25 date: 03/09/2022
Battery:
  ID-1: BAT0 charge: 39.6 Wh (100.5%) condition: 39.4/39.4 Wh (100.0%)
    volts: 12.8 min: 11.3 model: HP Primary type: Li-ion serial: N/A
    status: full
Memory:
  RAM: total: 11.38 GiB used: 1.94 GiB (17.0%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-1035G1 bits: 64 type: MT MCP arch: Ice Lake
    family: 6 model-id: 0x7E (126) stepping: 5 microcode: 0xB0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 1158 high: 1201 min/max: 400/3600 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1101 2: 1113 3: 1127
    4: 1151 5: 1200 6: 1201 7: 1194 8: 1177 bogomips: 19048
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 avx512_bitalg avx512_vbmi2
    avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma
    avx512vbmi avx512vl bmi1 bmi2 bts clflush clflushopt cmov constant_tsc
    cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms
    est f16c flexpriority flush_l1d fma fpu fsgsbase fsrm fxsr gfni ht hwp
    hwp_act_window hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed
    rdtscp rep_good sdbg sep sha_ni smap smep split_lock_detect ss ssbd sse
    sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer tsc_known_freq umip vaes vme vmx vnmi vpclmulqdq vpid
    x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown 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 IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Iris Plus Graphics G1 vendor: Hewlett-Packard driver: i915
    v: kernel ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:8a56 class-ID: 0300
  Device-2: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-3:3 chip-ID: 0408:5365 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :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: AU Optronics 0x80ec built: 2018 res: 1366x768
    hz: 60 dpi: 101 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1366x768
  OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 22.0.4
    direct render: Yes
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_icl
    bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.0-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8723DE 802.11b/g/n PCIe Adapter vendor: Hewlett-Packard
    driver: rtw_8723de v: N/A modules: rtw88_8723de pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:d723 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth 4.2 Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-10:4 chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 4060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A class-ID: 0104
  Device-1: md127 maj-min: 9:127 type: mdraid level: N/A status: inactive
    size: N/A
  Info: report: N/A blocks: 2944 chunk-size: N/A
  Components: Online: N/A Spare:
  0: nvme1n1 maj-min: 259:0 size: 13.41 GiB state: S
Drives:
  Local Storage: total: 251.89 GiB used: 22.58 GiB (9.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Intel model: HBRPEKNX0101AH
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: HPS1 temp: 31.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Intel model: HBRPEKNX0101AHO
    size: 13.41 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: HPS2 temp: 35.9 C
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 238.17 GiB size: 233.38 GiB (97.99%)
    used: 22.58 GiB (9.7%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:3
    label: N/A uuid: a4520f22-567c-421c-878a-3501c7683c62
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:2
    label: NO_LABEL uuid: 0248-E327
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2
    info: SHARKOON GmbH 2.4GHz Wireless rechargeable vertical mouse [More&Better]
    type: Mouse driver: hid-generic,usbhid interfaces: 1 rev: 1.1
    speed: 12 Mb/s power: 100mA chip-ID: 1ea7:0064 class-ID: 0301
  Device-2: 1-3:3 info: Quanta HP TrueVision HD Camera type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0408:5365 class-ID: 0e02
  Device-3: 1-10:4 info: Realtek Bluetooth 4.2 Adapter type: Bluetooth
    driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 500mA
    chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 210 Uptime: 8m wakeups: 1 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1202 lib: 334
  flatpak: 0 Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.16
    ~                                                                                                 ✔ 

What’s my next move?

Hello @roomdance and welcome :wink:

  1. Open a terminal.
  2. Run this command:
journalctl --boot 0 --unit NetworkManager.service --follow --no-hostname
  1. Suspend the laptop and wake it up.
  2. Have look what is happening at this service.

You can also activate the debug mode like this:

sudo nmcli general logging level debug
sudo nmcli general logging level info

Good morning,

I used that command and here is the output after suspending (with MAC address edited out by me):

   ~  journalctl --boot --unit NetworkManager.service --follow --no-hostname
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.2783] device (wlo1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.2786] device (wlo1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.2789] manager: NetworkManager state is now CONNECTED_LOCAL
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.2793] manager: NetworkManager state is now CONNECTED_SITE
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.2794] policy: set 'Charles' (wlo1) as default for IPv4 routing and DNS
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.2828] device (wlo1): Activation: successful, device activated.
Jun 06 22:03:04 NetworkManager[440]: <info>  [1654567384.5801] manager: NetworkManager state is now CONNECTED_GLOBAL
Jun 06 22:03:05 NetworkManager[440]: <info>  [1654567385.3141] dhcp6 (wlo1): activation: beginning transaction (timeout in 45 seconds)
Jun 06 22:03:05 NetworkManager[440]: <info>  [1654567385.3150] policy: set 'Charles' (wlo1) as default for IPv6 routing and DNS
Jun 06 22:03:05 NetworkManager[440]: <info>  [1654567385.3177] dhcp6 (wlo1): state changed new lease
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.3921] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.3922] manager: NetworkManager state is now ASLEEP
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.3925] device (wlo1): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5411] device (wlo1): supplicant interface state: completed -> disconnected
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5412] device (wlo1): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5671] dhcp4 (wlo1): canceled DHCP transaction
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5671] dhcp4 (wlo1): activation: beginning transaction (timeout in 45 seconds)
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5672] dhcp4 (wlo1): state changed no lease
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5673] dhcp6 (wlo1): canceled DHCP transaction
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5673] dhcp6 (wlo1): activation: beginning transaction (timeout in 45 seconds)
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5674] dhcp6 (wlo1): state changed no lease
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.5682] device (wlo1): set-hw-addr: set MAC address to {omitted by user} (scanning)
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.7208] device (wlo1): supplicant interface state: disconnected -> interface_disabled
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.7214] device (wlo1): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Jun 07 07:54:07 NetworkManager[440]: <info>  [1654602847.7219] device (wlo1): set-hw-addr: reset MAC address to {omitted by user} (unmanage)
Jun 07 07:54:19 NetworkManager[440]: <info>  [1654602859.0015] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Jun 07 07:54:19 NetworkManager[440]: <info>  [1654602859.0015] device (wlo1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jun 07 07:54:19 NetworkManager[440]: <info>  [1654602859.0022] manager: NetworkManager state is now DISCONNECTED
Jun 07 07:54:19 NetworkManager[440]: <info>  [1654602859.0249] device (wlo1): supplicant interface state: internal-starting -> disconnected
Jun 07 07:54:19 NetworkManager[440]: <info>  [1654602859.0249] device (wlo1): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Jun 07 07:59:09 NetworkManager[440]: <info>  [1654603149.7633] device (wlo1): set-hw-addr: set MAC address to {omitted by user} (scanning)
Jun 07 07:59:09 NetworkManager[440]: <info>  [1654603149.8585] device (wlo1): supplicant interface state: disconnected -> interface_disabled
Jun 07 07:59:09 NetworkManager[440]: <info>  [1654603149.8734] device (wlo1): supplicant interface state: interface_disabled -> inactive

Is the network manager state change - reason ‘managed’, sys-iface-state: ‘external’ - the cause of my issue? I’m leagues away from really understanding what I’m looking at, but I would like to test my instincts here so I can better understand. Let me know what I should do next, and thank you for the assistance!

Hi @roomdance ,
Welcome to the forum, the output shows that the ipv4 connection for the wifi was successfull but the ipv6 one failed. Maybe, you could try to disable the ipv6 under your wifi connection.

Hope this help, regards

I’ll give it a try. I’ve actually bought a different wifi adapter using ax 200 chip-set as I have read that my realtek 8723de is a problem child. If the card does not work I’ll give it a shot. Would turning off the IPv6 now affect the new card? I’d like to use v6 if possible.