I recently built a new gaming PC for my wife, but I'm running into some frustrating issues. Every time the computer goes to sleep and then wakes up, it crashes with a Blue Screen of Death (BSOD) showing DRIVER_POWER_STATE_FAILURE (0x9F). I've noticed that neither the mouse nor the keyboard can wake the PC; the only way to get it back is by using the power button. Once it's awake, it starts out fine but then the WiFi drops, and soon after, it bluescreens again. This issue only happens after sleep mode. I've tried disabling features like the network adapters turning off during sleep, but that didn't help. I even swapped out the peripherals for the original MSI ones, and while that stopped the crash from occurring, I still can't wake the PC using the keyboard or mouse. Totally stumped on how to fix the wake issue with the good devices and tackle the BSOD. Any suggestions?
4 Answers
Have you tried using MSI Center to check if all the software and drivers are up-to-date? Sometimes, proprietary software will have updates that Windows Update might miss. It could help resolve your waking issue.
To troubleshoot your BSOD more effectively, you should gather some dump files from the system after it crashes. If you can boot into Windows or Safe Mode, check the C:WindowsMinidump folder for any files. Zip them up and upload them somewhere like MediaFire so others can analyze them better.
BSODs like you described are often related to BIOS settings. Make sure your BIOS is updated to the latest version; you might be a few releases behind. Once that's done, also check that you have the latest chipset drivers installed directly from the manufacturer—Intel or AMD, depending on your CPU. After you update these, see if the issue persists.
Before going further, did you happen to check if there’s a setting on your keyboard or mouse that could be preventing them from waking the PC? Sometimes these settings can be hidden in their software.

Related Questions
Lenovo Thinkpad Stuck In Update Loop Install FilterDriverU2_Reload