X670 Board Failing To Resume - Wake FIX!

A year ago I built a computer for a friend using a Asus X670 motherboard and everything worked great. Since it’s not mine I don’t know when the issue started but it would not resume after sleep. This could affect any brand of motherboard or even your machine if you’re using these Wi-fi cards. See below. He has a 4070 Nvidia card and I’ve had issues with Nvidia before, so I thought it was the 4070.

The keyboard was dead and it seemed completely froze. One symptom was that it appeared to be totally locked up after resuming but if you wait 3 or 4 minutes it would reboot on its own. I hadn’t noticed that, I was too impatient.

It’s the MT7921 Wi-fi 6E card.

The other post I’m linking says they had a problem with a MT7922 wi-fi card. I don’t have a clue how many cards are affected or if other brands have a problem. I know I spent way too long looking at the Nvidia card. I do believe it start on Kernel 6.11 but I can’t prove it, I wasn’t there.

I hate going to a post and it’s deleted or whatever, so I pasted it here.
Also, here’s the link to the original.

https://www.reddit.com/r/Fedora/comments/1g7ke8e/workaround_sleep_issues_with_kernel_611/

This Wi-fi card (mt7922) has notoriously buggy drivers. To work around this put the script below in /usr/lib/systemd/system-sleep/. It will disable Bluetooth and WiFi before sleep and re-enable them after resuming.

#!/usr/bin/env bash
case ${1} in
    pre)
    rfkill block all
    echo "Killed wifi/bluetooth"
    ;;
    post)
    rfkill unblock all
    echo "Started wifi/bluetooth"
    ;;
esac
3 Likes