THE PROBLEM:
Upon resuming the system from sleep (s2idle/S3), the Realtek Wi-Fi card is completely dead. NetworkManager cannot see any networks or interfaces. The card fails to wake up from its sleep state. Only a full hard reboot temporarily fixes the issue.
I used to solve this problem by AI made script before for resume but lost it. when I reinstalled fedorra I couldn’t fix.
Please help. I came back for fedora a month ago after having used it for a 3 years but 17 years ago.
Actually I am glad I am back
#!/bin/sh
case "$1" in
pre)
modprobe -r rtw89_8852ce
echo "we are suspending at $(date)..." > /tmp/systemd_suspend_rtw_driver
;;
post)
modprobe rtw89_8852ce
;;
esac
The blog post shows how they have put a bash script in /usr/lib/systemd/system-sleep to unload the kernel module for the card. If you decide to use this please be mindful to change the driver name as indicated in the blog post.