Prerequisites and compatibility
This guide applies to supported 64-bit editions of Windows 10 and Windows 11 on desktops, laptops, tablets, and docked devices.
You need:
Quick walkthrough
- An administrator account.
- Internet access for Windows Update and the PC or motherboard manufacturer’s support site.
- At least one restart window.
- A stable AC connection for laptops and for any firmware update.
- The exact PC model or motherboard model, found in Settings > System > About.
Do not use driver-updater utilities. Obtain chipset, graphics, network, storage, audio, Bluetooth, dock, and BIOS/UEFI updates only from the PC manufacturer, motherboard manufacturer, or the component vendor when the system maker specifically directs you there.
Primary procedure
1. Record the stop code and create usable crash evidence
Before changing drivers or power settings, capture information from the next crash. The stop code and any named .sys driver can narrow the fault substantially.
- When the blue screen appears, photograph or write down:
- The Stop code.
- Any What failed driver filename, such as
rtwlane.sys,nvlddmkm.sys, or another.sysfile. - Whether the crash occurred while entering sleep, immediately on wake, or several minutes after wake.
- Configure Windows to retain a small crash dump:
Windows 11 - Open Settings > System > About.
- Select Advanced system settings.
- On the Advanced tab, under Startup and Recovery, select Settings.
Windows 10
- Open Settings > System > About.
- Under Related settings, select Advanced system settings.
- On the Advanced tab, under Startup and Recovery, select Settings.
- Under Write debugging information, select Small memory dump (256 KB).
- Confirm that Small dump directory is
%SystemRoot%\Minidump. - Clear Automatically restart temporarily if you need time to read the blue screen, then select OK twice.
Expected result: after a blue screen, Windows should save a dated .dmp file in C:\Windows\Minidump.
Warning: Do not disable the paging file while configuring dumps. Windows may be unable to create a crash dump without an appropriately configured page file. Leave the paging file set to System managed size unless you have a documented reason to use another configuration.
2. Determine the sleep mode and generate a power report
Windows 10 and 11 devices may use traditional S3 sleep or Modern Standby. The available diagnostic report depends on the hardware sleep model.
- Right-click Start and select:
- Windows Terminal (Admin) in Windows 11, or
- Windows PowerShell (Admin) / Command Prompt (Admin) in Windows 10.
- Run:
powercfg /a
Note the sleep states reported as available. Do not attempt registry changes intended to force S3 or Modern Standby; whether a sleep state is available is primarily controlled by firmware and hardware design. - Run the following commands:
Code:powercfg /lastwake powercfg /requests powercfg /systemsleepdiagnostics /output "%USERPROFILE%\Desktop\SystemSleepDiagnostics.html" - If
powercfg /ashows Standby (S0 Low Power Idle), also run:
powercfg /sleepstudy /output "%USERPROFILE%\Desktop\SleepStudy.html" - Open the reports from the desktop. Look at the time corresponding to the failure, especially for:
- Repeated failed sleep transitions.
- Devices or drivers listed during active time.
- Unusually high activity during Modern Standby.
- A wake source that identifies a dock, network adapter, USB device, or other peripheral.
Expected result: you have a baseline report before changing drivers and settings. If SleepStudy reports that it is unsupported, that is normal on many S3-based systems; use SystemSleepDiagnostics.html instead.
3. Install Windows updates, including optional driver updates
Install Windows updates first, then restart before installing vendor-specific updates.
Windows 11
- Open Settings > Windows Update.
- Select Check for updates.
- Install available quality and security updates.
- Select Advanced options > Optional updates.
- Expand Driver updates and install only updates relevant to installed hardware.
- Restart when prompted.
Windows 10
- Open Settings > Update & Security > Windows Update.
- Select Check for updates.
- Install available updates.
- Select View optional updates, if it appears.
- Expand Driver updates and install applicable updates.
- Restart when prompted.
Expected result: the PC is fully patched and any Microsoft-provided driver updates have been applied.
4. Update the drivers most involved in sleep and wake
A generic “all drivers are current” message in Device Manager is not enough. For sleep-related blue screens, prioritize the drivers that manage power, buses, displays, and connected devices.
- Visit the support page for the exact PC model, or the exact motherboard model for a custom desktop.
- Download and install, in this order where available:
- Chipset or platform drivers.
- Storage controller, NVMe, SATA/RAID, or Intel Rapid Storage drivers.
- Graphics driver.
- Wi‑Fi, Ethernet, and Bluetooth drivers.
- Thunderbolt, USB4, dock, card reader, and USB controller drivers.
- Audio and other device-specific drivers.
- Restart after the chipset and graphics installations, even if the installer does not require it.
- If the problem started immediately after a particular driver update, roll it back instead:
- Right-click Start and select Device Manager.
- Expand the relevant category, such as Display adapters, Network adapters, or Bluetooth.
- Right-click the device and select Properties.
- Open the Driver tab.
- Select Roll Back Driver, if available.
- Select the reason and restart.
Expected result: device drivers are matched to the PC’s firmware and hardware platform, and a known-bad recent driver can be reversed.
Warning: Do not uninstall a storage-controller, chipset, or boot-critical driver merely to “test” it. Doing so can make Windows unbootable. Use the manufacturer’s installer to repair or replace those packages.
5. Test power-management settings without forcing unsupported sleep modes
The goal is to remove common transition conflicts, not to disable every power-saving feature permanently.
- Open Control Panel > Hardware and Sound > Power Options.
- Next to the active plan, select Change plan settings > Change advanced power settings.
- Expand Sleep:
- Set Allow hybrid sleep to Off for both On battery and Plugged in, if the option is present.
- Set Allow wake timers to Disable temporarily.
- Expand PCI Express > Link State Power Management:
- Set it to Off temporarily for both battery and AC power.
- Select Apply > OK.
- Restart the PC.
These are diagnostic settings. If the blue screens stop, restore one setting at a time later to determine which power feature or device path is sensitive.
6. Disable Fast Startup for a controlled test
Fast Startup affects shutdown/startup rather than a normal sleep cycle, but it can complicate systems that alternate among shutdown, hibernation, hybrid sleep, and wake failures.
- Open Control Panel > Hardware and Sound > Power Options.
- Select Choose what the power buttons do.
- Select Change settings that are currently unavailable.
- Clear Turn on fast startup (recommended).
- Select Save changes.
- Perform a full restart.
To restore it, repeat the steps and reselect Turn on fast startup.
7. Isolate external devices and device wake permissions
Docks and USB-attached network, storage, audio, display, and input devices frequently introduce their own drivers and power behavior.
- Shut down the PC.
- Disconnect nonessential peripherals:
- Docking station.
- USB hubs.
- External drives.
- Printers.
- Webcams.
- USB audio devices.
- Controllers and wireless dongles.
- Leave only the display, a basic keyboard, and a basic mouse connected.
- Start Windows, then test sleep and wake three times.
If the PC is stable, reconnect one device at a time and repeat the test. Install the latest dock or peripheral firmware and driver before returning that device to daily use.
For a network adapter that is strongly associated with the crash:
- Open Device Manager > Network adapters.
- Right-click the Ethernet or Wi‑Fi adapter and select Properties.
- On the Power Management tab, clear Allow the computer to turn off this device to save power as a temporary test.
- Restart and retest.
If the tab is absent, do not force a substitute registry tweak; not all drivers expose this control.
Verification of success
After completing the driver and power changes:
- Restart Windows.
- Save all open work.
- Put the PC to sleep using:
- Start > Power > Sleep, or
- the device’s normal lid-close/power-button action.
- Leave it asleep for at least 10 minutes.
- Wake it and use the PC for 15 minutes.
- Repeat the cycle at least three times, including once while connected to your normal network and normal display configuration.
- Run:
powercfg /lastwake - Check Event Viewer:
- Right-click Start > Event Viewer.
- Open Windows Logs > System.
- Select Filter Current Log.
- Check Critical and Error, then select OK.
- Review entries at the time of each sleep and wake test.
Success means the system resumes normally through repeated sleep cycles, no new blue screen occurs, and no new dump is added to C:\Windows\Minidump.
Alternate method: use hibernation while isolating a persistent sleep failure
If sleep remains unstable but the PC must remain usable, use hibernation temporarily. Hibernation saves the session to disk and powers down more completely than sleep.
- Open Control Panel > Hardware and Sound > Power Options > Choose what the power buttons do.
- Select Change settings that are currently unavailable.
- Under Shutdown settings, select Hibernate.
- Select Save changes.
- Use Start > Power > Hibernate instead of Sleep while you continue driver or firmware troubleshooting.
To remove the hibernation option later, return to the same page and clear Hibernate.
Troubleshooting and rollback/escalation
A blue screen names a specific .sys file
Treat the named file as a lead, not automatic proof. Identify its vendor and device category, then:
- Update that device driver from the system manufacturer.
- If the issue began after an update, use Device Manager > device Properties > Driver > Roll Back Driver.
- If it belongs to third-party VPN, endpoint security, RGB/control software, virtual-machine networking, overclocking, or hardware-monitoring software, uninstall that product temporarily from Settings > Apps > Installed apps in Windows 11 or Settings > Apps > Apps & features in Windows 10.
- Restart and retest sleep.
The crash is DRIVER_POWER_STATE_FAILURE or stop code 0x9F
This usually points to a driver or device that did not complete a power request. Re-check graphics, Wi‑Fi/Ethernet, Bluetooth, storage, USB/dock, and chipset drivers. Test with external devices disconnected, and leave PCI Express > Link State Power Management set to Off during testing.
The PC crashes only with a dock, external monitor, or USB device attached
Update the dock firmware and graphics/USB4/Thunderbolt driver package from the PC manufacturer. Test with a different cable and port. If the dock is the trigger, use the system without it until its firmware/driver update resolves the issue; do not repeatedly force power-off during a dock-related blue screen.
Windows reports no supported SleepStudy data
Use powercfg /systemsleepdiagnostics instead. SleepStudy is intended for Modern Standby systems and is not available on every PC.
Driver Verifier is necessary
Use this only after the earlier steps fail and preferably only against a short list of suspected third-party drivers. Driver Verifier intentionally stresses drivers and can make a system crash more often.
Warning: Driver Verifier can cause repeated boot failures. Create a restore point and ensure you know how to enter Safe Mode before enabling it. Do not select every driver at once.
- Create a restore point:
- Search for Create a restore point.
- Select the system drive.
- Select Create, name it, and complete the process.
- Open Windows Terminal (Admin) or Command Prompt (Admin).
- Run the following command, replacing the sample driver with the suspected file:
verifier /standard /driver suspectdriver.sys - Restart.
- Reproduce the sleep/wake failure once or twice.
- After the test, disable Driver Verifier immediately:
verifier /reset - Restart again.
- Preserve any new files from
C:\Windows\Minidumpbefore changing more drivers.
If Windows cannot boot after enabling Driver Verifier:
- Enter the Windows Recovery Environment by interrupting startup twice; on the third start, Windows should show recovery options.
- Select Troubleshoot > Advanced options > Startup Settings > Restart.
- Press 4 for Safe Mode.
- Open an elevated Command Prompt and run:
verifier /reset - Restart normally.
If the same sleep-related blue screen persists after a clean driver refresh, BIOS/UEFI update from the system manufacturer, peripheral isolation, and memory diagnostics, return firmware settings to defaults and run the manufacturer’s hardware diagnostics. Repeated crashes that survive a clean Windows installation or occur with minimal peripherals connected warrant hardware service for memory, storage, motherboard, power, or graphics hardware.