PC and Mac Error CodesWindows PC and Mac errors explained

Home › All codes › 0x0000009F

Blue screen

0x0000009F - DRIVER_POWER_STATE_FAILURE: a driver would not wake or sleep

0x0000009F   Microsoft name: ERROR_BAD_THREADID_ADDR

What it means

A driver was in a power state that does not match what Windows asked, often when going to sleep or waking.

This number is listed more than once in Microsoft's tables (see the source box). Use the entry that matches where you saw it.

Where you see it

A blue screen (Windows 11 shows a black or blue screen with a sad face and a stop code name) followed by a restart.

Likely causes

Back up first. Before anything that resets, reinstalls or repairs the disk, copy your photos and documents to another drive or to the cloud. Back up your Windows PC. Do not reset, reinstall or format until your files are safe.

Three safe steps, in order

Try them one at a time and test after each. No registry edits, no repair tools to buy, and no switching off your security. If a step needs a driver, firmware or Windows installation media, get it only from Microsoft or your device maker.

  1. Disconnect USB and Bluetooth devices and try sleep again.Related Microsoft page: Resolving blue screen errors in Windows
  2. Install Windows updates and driver updates from the PC maker.Related Microsoft page: Troubleshoot problems updating Windows
  3. Do a clean start to find software that interferes.Related Microsoft page: How to perform a clean boot in Windows

Stop and get help when…

it only occurs on a laptop after a BIOS update. Ask the maker.

Source and date

Official Microsoft reference
System Error Codes (WinError.h)
More Microsoft help
Resolving blue screen errors in Windows
Date checked
24 November 2026. Microsoft changes its pages; if a step no longer matches, trust the Microsoft page.

Windows system error (Win32) 159

ERROR_BAD_THREADID_ADDR

Microsoft describes it as: “The address for the thread ID is not correct.”

Source: System Error Codes (WinError.h) (Microsoft Learn content, CC BY 4.0)

Blue screen stop code (bug check)

DRIVER_POWER_STATE_FAILURE

Source: Bug check code reference (Microsoft Learn content, CC BY 4.0)

The wording above is ours. Where a box quotes Microsoft's description, it comes from Microsoft Learn documentation published under CC BY 4.0 and is credited to the page linked.

All blue screen stop codes

Related codes