Post · 4 min read· pp. 1715–1717

POP_SLEEP_CHECKPOINT

The defined values of the POP_SLEEP_CHECKPOINT enumeration (formally _POP_SLEEP_CHECKPOINT) mark the kernel’s progress at putting the system in and out of sleep. This diagnostic aid was introduced for the 1607 release of Windows 10.

The essential work at each new checkpoint is to record the latest value in the firmware. Then, if the transition to or from sleep does not complete, the last recorded checkpoint should be retrievable when Windows next starts. This record is kept as the one-byte value of the SystemSleepCheckpoint variable in the {F4B5FD1A-2F14-451D-9AA9-D8F5E7117101} namespace. The checkpoint’s retrieval when Windows next starts shows as a parameter, named Checkpoint, in the event, numbered 41, that the Microsoft-Windows-Kernel-Power event provider writes to the System log to report that the “system has rebooted without cleanly shutting down first.”

In what surely must be a rare circumstance, the kernel may judge that it cannot safely try setting a new checkpoint into the firmware variable. This then is fatal to Windows. It shows as the bug check INTERNAL_POWER_ERROR (0x000000A0) with the first parameter set to 0x0000010F. The proposed new value of the checkpoint is then the second parameter.

The 1903 release brought the elaboration that the kernel may itself stop a power transition for taking too long. Expiry of a watchdog timer shows as the bug check INTERNAL_POWER_ERROR but now with the first parameter as 0x0000000F, 0x000000F0 or 0x000000F1 (depending on the WatchdogState member of the POP_POWER_ACTION). In these cases, the mostly recently set value of the checkpoint becomes the third bug-check parameter. So that this can be done, the checkpoint is written not only to the firmware but is also kept by the kernel as internal variable. Thus is the POP_SLEEP_CHECKPOINT enumeration also the type of the internal variable PopSleepCheckpoint. As with other internal variables concerned with power management, this can be useful to know when debugging.

Documentation Status

The POP_SLEEP_CHECKPOINT enumeration is not documented.

Not only is the POP_SLEEP_CHECKPOINT not documented as a type, but its possible values are not documented even for their possibly useful interpretation as a parameter for either the power event or the bug check. Perhaps the argument is that the parameter can be useful, else why trouble to code for saving and retrieving it, but its one intended interpreter is Microsoft.

Online documentation of the INTERNAL_POWER_ERROR bug check, as observed today, 16th September 2022, goes no further than noting cases in which the second or third parameter is the “sleep checkpoint most recently reached.” These cases aren’t yet listed on the corresponding page in the offline Bug Check Reference from the Debugging Tools for Windows as distributed with the Software Development Kit even as recently as for the 2004 edition of Windows 10.

Values

The values and names below are from type information in public symbol files for the kernel, starting with the 1607 release of Windows 10.

ValueNameVersions
0x00PopSleepCheckpointInvalid1607 and higher
0x01PopSleepCheckpointPowerTransitionStart1607 and higher
0x02PopSleepCheckpointSuspendAppsBefore1607 and higher
0x03PopSleepCheckpointSuspendAppsAfter1607 and higher
0x04PopSleepCheckpointSuspendServicesBefore1607 and higher
0x05PopSleepCheckpointSuspendServicesAfter1607 and higher
0x06PopSleepCheckpointNotifySuperfetchBefore1607 and higher
0x07PopSleepCheckpointNotifySuperfetchAfter1607 and higher
0x08PopSleepCheckpointNotifyCallbacksBefore1607 and higher
0x09PopSleepCheckpointNotifyCallbacksAfter1607 and higher
0x0APopSleepCheckpointSleepTransactionCommitted1607 and higher
0x0BPopSleepCheckpointQueryDriversBefore1607 and higher
0x0CPopSleepCheckpointQueryDriversAfter1607 and higher
0x0DPopSleepCheckpointAllocatingHiberContext1607 and higher
0x0EPopSleepCheckpointSuspendDriversBefore1607 and higher
0x0Fnot defined
0x10PopSleepCheckpointPreSleepNotification1607 and higher
0x11PopSleepCheckpointInterruptsDisabledBegin1607 and higher
0x12PopSleepCheckpointInvokeHandlerBefore1607 and higher
0x13PopSleepCheckpointSaveHiberContextBegin1607 and higher
0x14PopSleepCheckpointInitializeDumpStackFailed1607 and higher
0x15PopSleepCheckpointHiberWriteFailed1607 and higher
0x16PopSleepCheckpointHiberFileTooSmall1607 and higher
0x17PopSleepCheckpointSaveHiberContextFailed1607 and higher
0x18PopSleepCheckpointSaveHiberContextEnd1607 and higher
0x19PopSleepCheckpointHiberKernelHandoff1607 and higher
0x1APopSleepCheckpointInvokeHandlerAfter1607 and higher
0x1BPopSleepCheckpointReadHiberfileBefore1607 and higher
0x1CPopSleepCheckpointInitializeDumpStackForReadFailed1607 and higher
0x1DPopSleepCheckpointHiberReadFailed1607 and higher
0x1EPopSleepCheckpointChecksumFailure1607 and higher
0x1FPopSleepCheckpointDecompressionFailed1607 and higher
0x20PopSleepCheckpointReadHiberfileAfter1607 and higher
0x21PopSleepCheckpointInterruptsDisabledEnd1607 and higher
0x22not defined
0x23not defined
0x24PopSleepCheckpointWakeDriversAfter1607 and higher
0x25PopSleepCheckpointResumeAppsBefore1607 and higher
0x26PopSleepCheckpointResumeAppsAfter1607 and higher
0x27PopSleepCheckpointResumeServicesBefore1607 and higher
0x28PopSleepCheckpointResumeServicesAfter1607 and higher
0x29PopSleepCheckpointPowerTransitionEnd1607 and higher
0x2APopSleepCheckpointAllocatingHiberContextNoFileObject1809 and higher
0x2BPopSleepCheckpointAllocatingHiberContextGetDumpStackFailed1809 and higher
0x2CPopSleepCheckpointAllocatingHiberContextLoadResumeContextFailed1809 and higher
0x2DPopSleepCheckpointAllocatingHiberContextBcdOpenFailed1809 and higher
0x2EPopSleepCheckpointAllocatingHiberContextEstablishResumeObjectFailed1809 and higher
0x2FPopSleepCheckpointAllocatingHiberContextSetPendingResumeFailed1809 and higher
0x30PopSleepCheckpointAllocatingHiberContextAllocateIoPagesPagesFailed1809 and higher
0x31PopSleepCheckpointAllocatingHiberContextAdapterBuffersInvalid11809 and higher
0x32PopSleepCheckpointAllocatingHiberContextAllocateDumpPagesFailed1809 and higher
0x33PopSleepCheckpointAllocatingHiberContextAdapterBuffersInvalid21809 and higher
0x34PopSleepCheckpointAllocatingHiberContextUnHibernatedMdlFailed1809 and higher
0x35PopSleepCheckpointAllocatingHiberContextSecureResourcesFailed1809 and higher
0x36PopSleepCheckpointPrepareSleepBefore2004 and higher
0x37PopSleepCheckpointPrepareSleepAfter2004 and higher
0x38PopSleepCheckpointBootstatAvailable2004 and higher
0x2A (1607 to 1803); 0x36 (1809 to 1903); 0x39PopSleepCheckpointMaximum1607 and higher