Generate System Sleep Diagnostics Report in Windows 10  

    Generate System Sleep Diagnostics Report in Windows 10

    Generate System Sleep Diagnostics Report in Windows 10

    How to Generate a System Sleep Diagnostics Report in Windows 10
    Published by Category: Performance & Maintenance
    19 Apr 2018
    Designer Media Ltd



    How to Generate a System Sleep Diagnostics Report in Windows 10


    A System Sleep Diagnostics generates a report of intervals when the user was not present (idle) over the last three or specified days on the system, and if the system went to sleep.

    This tutorial will sow you how to generate a System Sleep Diagnostics report to show intervals when a user went idle, idle duration, and sleep state entered in Windows 10.

    You must be signed in as an administrator to be able to run a System Sleep Diagnostics report.


    EXAMPLE: "powercfg /SystemSleepDiagnostics" usage
    Generate System Sleep Diagnostics Report in Windows 10-system_sleep_diagnostics.png



    Here's How:

    1. Open an elevated command prompt.

    2. Type the command you want to use below into the elevated command prompt, and press Enter. (see screenshot below)

    It's recommended to save the report as a .html file to be able to easily use and read it.

    (For .html file with default 3 day duration)
    powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.html

    (For .html file with specified duration)
    powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.html /Duration days

    (For .xml file with default 3 day duration)
    powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.xml /XML

    (For .xml file with specified duration)
    powercfg /SystemSleepDiagnostics /output %USERPROFILE%\Desktop\System-Sleep-Diagnostics.xml /XML /Duration days

    Substitute days in the commands above with a number 1 to 14 to specify the number of days you want to analyze for the report.

    Generate System Sleep Diagnostics Report in Windows 10-system_sleep_diagnostics_command.png


    3. Open the System-Sleep-Diagnostics.html or System-Sleep-Diagnostics.xml file saved to your desktop to see the report in your default web browser (ex: Internet Explorer).

    4. This is a copy of my laptop's System Sleep Diagnostics report from a System-Sleep-Diagnostics.html file viewed in Internet Explorer as an example of what is reported. (see screenshots below)

    Each interval is numbered. You can click on an interval (ex: 1) to jump straight to its analysis results.

    Generate System Sleep Diagnostics Report in Windows 10-system_sleep_diagnostics-1.png

    This is an example analysis result for interval 1. Each interval will have its own separate analysis result to review.

    Generate System Sleep Diagnostics Report in Windows 10-system_sleep_diagnostics-2.png


    That's it,
    Shawn






  1. Posts : 353
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       #1

    The S0 Working state is new to me, is it a new sleep state in Win 10 ?
    What does it really mean when it shows Sleep State Entered as Working ?
    Does Win 10 enter this state because it is running some Windows maintenance task(s) ?

    Here is a quote from MSDN that to me sounds like it really isn't sleeping (i hi-lighted in red)
    Working state (S0)

    During the working state, the system is awake and running. In simple terms, the device is "on." Whether the screen is on or off, the device is in a full running state. To conserve energy, especially on battery powered devices, we highly recommend powering-down hardware components when they're not being used.
    Source: System Power States (Windows)

    tyia
      My Computer


  2. Posts : 67,282
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello David, :)

    The S0 state basically is the normal fully on and running state. The computer is on and running, and not asleep or hibernate.
      My Computers


  3. Posts : 353
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       #3

    Hi Shawn,

    I was hoping to find out why the PC did not sleep when it should have.
    Now i know this WORKING (running) state can happen when Win 10 should be sleeping.
    Here's a snip of a report that shows some info not in the tutorial report.

    Generate System Sleep Diagnostics Report in Windows 10-w10sleep.png

    Thanks for the tutorial and help
      My Computer


  4. Posts : 67,282
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    Anytime David. :)
      My Computers


  5. Posts : 46
    Win 10 Pro x64
       #5

    Thank you for this. I've recently restarted participating in PrimeGrid. I have EVERY setting in BIOS and Windows set to High Performance and the sleep to 'NEVER' eveywhere yet every day I get back from work, the damn thing's sleeping. I will test this out this afternoon .
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:08.
Find Us




Windows 10 Forums