Cannot connect to wifi after sleep Fedora 42

Hi, I’m new to Fedora and new to the community but not entirely new to Linux (I used Linux Mint off and on for several years but it’s been a while). I recently bought a new HP Laptop with the full intention of having a Linux distro be my primary OS for many reasons. A friend recommended Fedora / KDE so I installed it, and I am LOVING it. I have two problems though. One I can put up with but the other seems tough to accept. When I put the laptop to sleep, there are two problems when waking. First, and less importantly, it takes a long time to wake. After pressing a key I see my power LED change from flashing to solid which suggests it’s gotten the message to wake, but it takes over 30 seconds (screeen black in the meantime) to load the screen where I can unlock. If I am running Windows 11 which came with the laptop, it’s alomst instantaneous with no black screen wait. I’m less interested in fixing that at the moment though because there is a worse problem I want to deal with first as I could live with that if it were the only problem. What I can’t live with is that after the system wakes, I have no wifi connection. I need a hard reboot to get it back. In fact, when I click on the Networks icon in the tray, it never finds any no matter how many are nearby. I have searched forums and Google and tried AI but nothing has led to a fix. Here is what I know.

Before I sleep, if I run ip link, I see:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether e6:20:4f:6c:8b:00 brd ff:ff:ff:ff:ff:ff permaddr b8:82:f2:76:62:6b
    altname wlp1s0
    altname wlxb882f276626b

After wake, wlo1 seems to be “DOWN”:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:82:f2:76:62:6b brd ff:ff:ff:ff:ff:ff
    altname wlp1s0
    altname wlxb882f276626b

But sudo ip link set dev wlo1 up does not work. It just gives me an error message that it cannot connect.

Before sleep, if I run lspci | grep Network, I see:

01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE-VT PCIe 802.11ax Wireless Network Controller

After wake this remains unchanged.

Before sleep, if I run nmcli d status, I see:

DEVICE        TYPE      STATE                   CONNECTION
wlo1          wifi      connected               My Connection 5 GHz
lo            loopback  connected (externally)  lo
p2p-dev-wlo1  wifi-p2p  disconnected

After wake wlo1 seems “unavailable”":

DEVICE        TYPE      STATE                   CONNECTION
lo            loopback  connected (externally)  lo
wlo1          wifi      unavailable             --
p2p-dev-wlo1  wifi-p2p  unavailable             --

Before sleep, if I run ifconfig, I see:

o: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 266  bytes 31316 (30.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 266  bytes 31316 (30.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.50.203  netmask 255.255.255.0  broadcast 192.168.50.255
        inet6 fe80::82e9:1015:6f34:4276  prefixlen 64  scopeid 0x20<link>
        ether e6:20:4f:6c:8b:00  txqueuelen 1000  (Ethernet)
        RX packets 16924  bytes 13669820 (13.0 MiB)
        RX errors 0  dropped 136  overruns 0  frame 0
        TX packets 9108  bytes 1759466 (1.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

After wake, wlo1 is completely gone.

Here is what I have tried that has not worked.

  1. Problem seemed similar to Wifi stops working after sleep, after F41 upgrade so I tried sudo modprobe -r iwlmvm iwlwifi && sudo modprobe iwlmvm iwlwifi after wake but that doesn’t help.

I realized this command might be for a specific brand of network adapter I didn’t have. I then found a suggestion to run inxi -N to see what adapter I actually had and to try to stop and start those drivers. That command yielded:

Network:
  Device-1: Realtek RTL8852BE-VT PCIe 802.11ax Wireless Network
    driver: rtw89_8852bte

So I tried:

sudo modprobe -rv rtw89_8852bte
sudo modprobe -v rtw89_8852bte

Neither of these changes anything.

  1. I looked at Reddit - The heart of the internet and followed the advice to add the following to /etc/NetworkManager/NetworkManager.conf :
[device]

wifi.scan-rand-mac-address=0

Also does not help.

  1. I also found No wifi after sleep and tried adding acpi_osi=! acpi_osi='Windows 2009' parameters to my kernel boot. When I do that, and issue the command for the laptop to sleep, it looks like its about to sleep (screen goes black) for a second but then comes back on. Everything still works, but it’s impossible to keep it asleep so not a viable solution.

Other information that may be relevant:

  • I am running Fedora 42
  • I also installed Kubuntu thinking it was to do with Fedora and that an Ubuntu based system would work, but exact same problem on Kubuntu.
  • Kernel according to uname -a is: Linux fedora 6.15.10-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 15 15:57:06 UTC 2025 x86_64 GNU/Linux
  • My BIOS settings don’t have anything obvious related to sleep / wake
  • Restarting NetworkManager.service also doesn’t help

Any advice on what to check/try next would be greatly appreciated! Thanks!

Coming back here to post the solution that worked for me. I finally stumbled across the answer that worked for me. Apparently there are two different kinds of “sleep”: s2idle and deep. By default, the system is set up to use s2idle. When I changed to deep, everything works perfectly! Both of my OP problems solved: it takes only a few seconds to wake from sleep (rather than almost a minute like before) and my wifi works properly on wake as well.

I discovered the solution here: Changing laptop suspend from s2idle to deep sleep #blog · GitHub

To summarize what you do on Fedora:

  1. Edit /etc/default/grub using your favourite editor.
  2. Find the line beginning with GRUB_CMDLINE_LINUX_DEFAULT
  3. Add mem_sleep_default=deep within the quotes. For me, the line would now read: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"
  4. Save and exit the editor
  5. Run sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Hopefully this helps someone else out there.