Modern Standby basic test scenarios

Stabilize basic Modern Standby functionality before progressing to more advanced test scenarios, such as those that have an active Wi-Fi connection. First, validate entry to and exit from Modern Standby. Then validate airplane mode and audio playback.

Required system configuration

These must be configured correctly before performing any of the tests below.

  • Factory image is installed on the system
  • All drivers are loaded in Device Manager
  • Factory Microsoft Store apps are installed
  • System is running on battery power
  • All Windows updates are installed

Basic entry and exit testing

Begin all testing by making sure that the system can reliably enter Modern Standby, and then exit Modern Standby after some interval of variable duration. To initiate entry to Modern Standby, press the power button, close the lid, or select Sleep from the power button in the Settings flyout. These actions should instantly power off the display. To wake up the system, simply press the power button or open the lid of the system. These actions should instantly power on the display.

If the system is connected to a USB mouse or keyboard, move the mouse or press any key to generate a wake event to the system and turn the display on.

The Modern Standby entry and exit scenarios are enumerated in the following table. All Modern Standby systems should be tested for expected behavior in each scenario.

  • Test area: Entry to and exit from Modern Standby.
  • Purpose: Ensure system can reliably and quickly enter and exit Modern Standby.
  • Additional system configuration requirements:
    • None
Test scenario Expected result Troubleshooting notes

The system can enter Modern Standby using the following methods:

  • Press the power button.
  • Select Sleep from the operating system settings.
  • Close the lid (if applicable).

The system instantly transitions into Modern Standby (display powers off).

No audio noises are generated.

If the system does not enter Modern Standby, a trace should be taken to diagnose the problem. See Capture and View a WPA Trace for Modern Standby Diagnostics for instructions on how to capture a trace and analyze the information.

The system can exit Modern Standby using the following methods:

  • Idle out

The system gradually transitions into Modern Standby (display powers off). The time this takes is the sleep timeout minus the display timeout settings.

Audio may still play.

If the system does not enter Modern Standby, a trace should be taken to diagnose the problem. See Capture and View a WPA Trace for Modern Standby Diagnostics for instructions on how to capture a trace and analyze the information.

The system can exit Modern Standby using the following methods:

  • Press the power button.
  • Open the lid (if applicable).
  • Use a USB mouse or keyboard.
  • Plugging in AC

The system instantly transitions out of Modern Standby (display powers on).

No audio noises are generated.

Most failure cases in this category are the result of the system being unable to resume from Modern Standby.

To debug, enable both the kernel debugger and the hardware debugger on the system to catch software crashes and hardware hard hangs, which can prevent the system from resuming.

The Windows Hardware Lab Kit (HLK) includes Modern Standby tests that exercise entering and exiting Modern Standby on a system. Running the following tests will further validate the readiness of the system:

  • Modern Standby basic verification test on AC-power
  • Modern Standby basic verification test on DC-power

Basic airplane mode testing

After verifying that the system can reliably enter and exit Modern Standby, validate system behavior during Modern Standby.

Modern Standby battery life is directly impacted by hardware and software activity. The goal of basic airplane mode testing is to identify activities that should not be happening during Modern Standby and resolve them. These activities might be a result of software in the OEM pre-installation or unexpected hardware interrupts.

Start airplane mode testing with a one-hour Modern Standby session with airplane mode enabled. After resuming the system from Modern Standby, use SleepStudy to review the activities during the session and the amount of time that the system was in a low-power state.

  • Test area: Airplane mode low-power state time.
  • Purpose: Ensure that the basic activity level of the system is minimal (less than three percent of active time) with factory image and apps installed.
  • Additional system configuration requirements:
    • System is put into airplane mode.
Test scenario Expected result Troubleshooting notes

Stay in Modern Standby in airplane mode for at least one hour.

Using SleepStudy, observe that the system is in the lowest power state equal to or greater than 80 percent of the time.

SleepStudy helps identify which software or device component(s) is active, which prevents the system from entering the lowest power state. Contact the owner of the offending component for debugging tips and next steps.

To eliminate noise from system resource loading on boot, wait at least 5 minutes after system boot before testing. As a general guideline, all Modern Standby testing should be performed on a system that is running on DC power to so that the power impact can be measured.

Basic audio playback testing

Audio playback during Modern Standby enables the system to play music while the display is powered off. The system is expected to consume less power when playing music in Modern Standby than playing music when the display is powered on. The goal of audio playback testing is to verify the system can play sound through the internal speakers and headphones, and that the user can adjust the volume by using the volume buttons during Modern Standby in a low-power state.

Start with a system that is un-muted and use the inbox Music app to play a 256-kilobits/second .mp3 track. Put the system into Modern Standby. Make sure that the sound continues to play through the speakers and that the volume can be adjusted through the volume buttons while the screen is powered off. Also try to plug in headphones to make sure that the sound gets transferred from the internal speakers to the headphones.

Not all USB, Bluetooth, HDMI and other external devices are supported for low-power audio. Low-power audio playback is dependent on the HW and driver stack support of the audio device.

For audio devices that do not support lower power playback, audio playback will continue after the power button is pressed, but at an increased power consumption, when compared to output through audio devices that support low-power playback.

The OS added support low-power audio for USB audio beginning in Version 1903 of Windows. Bluetooth A2DP low-power audio is available beginning in Windows 11 version 21H2.

All audio devices are expected to be able to play during Modern Standby using supported apps. The hardware and drivers support will determine power consumption.

  • Test area: Screen-off audio playback operation and power.
  • Purpose: Ensure that audio playback continues without interruption when the power button is pressed during low-power consumption.
  • Additional system configuration requirements:
    • Headphones are available to test output from headphone jack.
    • Bluetooth (If the HW and drivers support low-power audio playback)
    • USB (If the HW and drivers support low-power audio playback)
Test scenario Expected result Troubleshooting notes

The system can play audio during Modern Standby, and sound plays from:

  • Internal speakers
  • Headphones
  • Bluetooth (If the HW and drivers support low-power audio playback)
  • USB (If the HW and drivers support low-power audio playback)

The system continues to play sound through the speakers/headphones and the volume can be adjusted by using the volume buttons while the screen is powered off.

Ensure that system is consuming the power expected for low-power audio. Consult with the System on a Chip (SoC) vendor for the expected power consumption for low-power audio.

If the system fails to enter a low-power state, a trace is needed to diagnose the problem. For information about how to capture a trace and analyze the information, see Capture and view a WPA trace for Modern Standby diagnostics.

If the audio stops when the screen is powered off, this usually means the music app does not have the background transfer API implemented correctly.

Testing for low-power audio playback must be done on a system that is running on battery power so that the power impact can be accurately measured.