Workaround for the suspension bug: HP Victus 15 with RTX 3050, Mediatek MT7921, Fedora 42

If when you suspend your HP Victus laptop, the screen stays black and backlit, and also, the system does not respond or wake up, you can try the following: You can have the system remove the wifi/bluetooth card driver during suspend and reload on resume. For example: Create /usr/lib/systemd/system-sleep/unload-mt7921.sh (using sudo), with these contents,

#!/bin/sh
# /usr/lib/systemd/system-sleep/unload-mt7921.sh
case "$1" in
  pre)
    # block networking to speed up unload
    /usr/bin/rfkill block wifi
    /usr/bin/rfkill block bluetooth

    # unload modules
    /usr/sbin/modprobe -r mt7921e btusb
    ;;
  post)
    # reload modules
    /usr/sbin/modprobe mt7921e
    /usr/sbin/modprobe btusb

    # give the driver a second to settle
    sleep 2

    # unblock radios
    /usr/bin/rfkill unblock bluetooth
    /usr/bin/rfkill unblock wifi

    # restart NetworkManager so it re-scans the card
    /usr/bin/systemctl restart NetworkManager.service
    ;;
esac

This will cut power to the MT7921 and MediaTek Bluetooth before the system sleeps.
Make it executable: sudo chmod +x /usr/lib/systemd/system-sleep/unload-mt7921.sh
(and then reboot the system)

Psdtt: I am not the author of the script. I used multiple options suggested by ChatGPT until the suspension was achieved. It probably took the answer from someone on Fedora Discussion.

This sounds similar to what a lot of us experienced a few kernel versions back. Wonder if they re-introduced the same or similar bug. You might want to read this thread for history:

I read the thread you shared with me.
Actually, I’m not sure it’s been resolved. With each new Fedora release I install a fresh copy. I’m currently on Fedora 42 running kernel 6.14.5-300.fc42.x86_64. Since Fedora 40 I’ve seen numerous discussions about this issue, but none have worked for me. The only way to get suspend to function is to completely disconnect the network card during the suspension.

I believe the MediaTek MT7921 network card is factory-defective (even under Windows 11), and MediaTek’s support is poor.