System Generate Sleep Study Report in Windows 11


  • Staff
Sleep_banner.png

This tutorial will show you how to generate a Sleep Study report to diagnose battery drain issues on Modern Standby systems in Windows 10 and Windows 11.

Starting with Windows 8.1, a software tool, SleepStudy, became available as an inbox component in all Windows PCs that support the Modern Standby (S0 low power idle) sleep state. SleepStudy can measure modern standby performance with minimal impact.

The SleepStudy tool provides overview information about each modern standby session. This information includes the active time, the idle time, and the power consumed. A session starts when the system enters the modern standby state, and ends when it exits this state.

SleepStudy also provides first-level information about the causes of activities that occur during each modern standby session. This feature allows for easy investigation of long-running activities.

Battery Information: Each SleepStudy report concludes with information about the system battery configuration. In addition to name and manufacturer, this information includes battery size and design capacity. The battery size and design capacity are particularly important for SleepStudy because they are taken into account when estimating modern standby battery life.

By default, the SleepStudy report covers the last three days of system operation. Starting with Windows 11 build 25179, Microsoft updated the default duration captured by powercfg -sleepstudy from 3 to 7 days.

References:


You must be signed in as an administrator to generate a Sleep Study report.






Here's How:

1 Open Windows Terminal (Admin), and select Command Prompt.

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

(Output to .html file with default 3 or 7 day duration)​
powercfg /systempowerreport /output %USERPROFILE%\Desktop\sleepstudy-report.html

OR​

(Output to .html file with specified duration)​
powercfg /systempowerreport /output %USERPROFILE%\Desktop\sleepstudy-report.html /Duration days

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


SleepStudy.png

3 Open the sleepstudy-report.html file saved to your desktop to see the report in your default web browser. (see screenshot below)

The SleepStudy report is organized as a series of state changes -- primarily Active, Screen Off, and Sleep states. Therefore, while an overall modern standby session is defined as one instance of the screen turning off and back on again, the SleepStudy report will break this down into the time spent quiescing the system (the Screen Off state), and the time spent in its long term low power state (the Sleep state). Prior releases will just show details for the overall Modern Standby session.

For each state, an overview is provided at the top of the report with a hyperlink to its detailed section in the HTML report.

The SleepStudy report also contains:
  • Static configuration information about the hardware platform, its operating system installation, and firmware version.
  • A graphical view of the usage trend over the last 72 hours.
  • A summary table of each state segment, which includes:
    • Start time, end time, and duration.
    • Power source (AC or battery power).
    • Battery power consumed and average power consumption.
  • Each Screen Off session includes additional detailed information:
    • The information contained in the summary table.
    • Any blockers that prevented the system from quiescing immediately to enter sleep.
  • Each Sleep session includes additional detailed information:
    • The information contained in the summary table
    • The five most active components ("top offenders") in the modern standby session. The information shown for each component includes the component type, name, and device path (if applicable).
    • A histogram chart of idle time.
  • Information about the system battery configuration, including design capacity and cycle count.
Read more:

System_Power_Report.png



That's it,
Shawn Brink


 

Attachments

  • Sleep.png
    Sleep.png
    9.3 KB · Views: 78
Last edited:
With as many problems as modern standby is causing everyone, this ought to be a big bold sticky in bright red capital letters equipped with an audible warning to get attention. ;-)
It's ridiculous that such a feature causes so many issues for the unsuspecting buyers of these new laptops and many have no way of disabling it.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Trying to diagnose why Sleep randomly turns off PC...

these commands are broken (don't produce html, don't produce error)
  • powercfg /sleepstudy
  • powercfg /systempowerreport

this one works (produces html)
  • powercfg /energy

Help would be appreciated!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    I did it my way
    CPU
    AMD Ryzen Threadripper 1950X 16-Core Processor 3.40
    Motherboard
    ROG Zenith Extreme
    Memory
    G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Desktop Memory Model F4-3200C16D-32GVK
    Graphics Card(s)
    GIGABYTE GeForce GTX 1050 Ti 4GB GDDR5 PCI Express 3.0 x16 ATX Video Card GV-N105TWF2OC-4GD
    Monitor(s) Displays
    AOC U3277PWQU 32" 4K UHD 3840x2160 Monitor, and LG 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    too many. Seagate and WD
    PSU
    Thermaltake Toughpower Grand RGB 850W
    Case
    Thermaltake Suppressor F51 E-ATX Mid Tower
    Cooling
    Enermax Liqtech TR4 240 AIO Liquid CPU Cooler
    Keyboard
    an old dell
    Mouse
    logitech wireless
    Internet Speed
    300 mbps ATT Fiber
    Browser
    Mostly Chrome, sometimes Firefox
    Antivirus
    Microsoft
Trying to diagnose why Sleep randomly turns off PC...

these commands are broken (don't produce html, don't produce error)
  • powercfg /sleepstudy
  • powercfg /systempowerreport

this one works (produces html)
  • powercfg /energy

Help would be appreciated!

Hello, and welcome. :alien:

Just to confirm, did you run the exact command below from step 2 in an elevated command prompt (not in PowerShell)?

powercfg /SleepStudy /output %USERPROFILE%\Desktop\sleepstudy-report.html
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Thank you for your response!

when I do that, I get "Invalid Parameters -- try "/?" for help"
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    I did it my way
    CPU
    AMD Ryzen Threadripper 1950X 16-Core Processor 3.40
    Motherboard
    ROG Zenith Extreme
    Memory
    G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Desktop Memory Model F4-3200C16D-32GVK
    Graphics Card(s)
    GIGABYTE GeForce GTX 1050 Ti 4GB GDDR5 PCI Express 3.0 x16 ATX Video Card GV-N105TWF2OC-4GD
    Monitor(s) Displays
    AOC U3277PWQU 32" 4K UHD 3840x2160 Monitor, and LG 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    too many. Seagate and WD
    PSU
    Thermaltake Toughpower Grand RGB 850W
    Case
    Thermaltake Suppressor F51 E-ATX Mid Tower
    Cooling
    Enermax Liqtech TR4 240 AIO Liquid CPU Cooler
    Keyboard
    an old dell
    Mouse
    logitech wireless
    Internet Speed
    300 mbps ATT Fiber
    Browser
    Mostly Chrome, sometimes Firefox
    Antivirus
    Microsoft
Thank you for your response!

when I do that, I get "Invalid Parameters -- try "/?" for help"

It sounds like you may have used PowerShell instead of Command Prompt.

Please go ahead and post a screenshot of the Windows Terminal window with the error message to see if anything may stand out as a cause.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
In Powershell, nothing happens except the cursor blinks quietly at me. My apologies if I'm doing something dense, I hope not.
 

Attachments

  • Powershell Screenshot 2023-10-16 20.46.28.png
    Powershell Screenshot 2023-10-16 20.46.28.png
    16.5 KB · Views: 23
  • CMD Screenshot 2023-10-16 20.46.17.png
    CMD Screenshot 2023-10-16 20.46.17.png
    15.4 KB · Views: 24

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    I did it my way
    CPU
    AMD Ryzen Threadripper 1950X 16-Core Processor 3.40
    Motherboard
    ROG Zenith Extreme
    Memory
    G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Desktop Memory Model F4-3200C16D-32GVK
    Graphics Card(s)
    GIGABYTE GeForce GTX 1050 Ti 4GB GDDR5 PCI Express 3.0 x16 ATX Video Card GV-N105TWF2OC-4GD
    Monitor(s) Displays
    AOC U3277PWQU 32" 4K UHD 3840x2160 Monitor, and LG 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    too many. Seagate and WD
    PSU
    Thermaltake Toughpower Grand RGB 850W
    Case
    Thermaltake Suppressor F51 E-ATX Mid Tower
    Cooling
    Enermax Liqtech TR4 240 AIO Liquid CPU Cooler
    Keyboard
    an old dell
    Mouse
    logitech wireless
    Internet Speed
    300 mbps ATT Fiber
    Browser
    Mostly Chrome, sometimes Firefox
    Antivirus
    Microsoft
PS won't recognize CMD's %VARIABLE% notation for shell environment variables. Instead use $env:VARIABLE

But the actual hang-up is your username is "Glen Moon" with a space, so Brink needs to insert quotes around both command lines:

PowerShellpowercfg /SleepStudy /output "$env:USERPROFILE\Desktop\sleepstudy-report.html"
CMDpowercfg /SleepStudy /output "%USERPROFILE%\Desktop\sleepstudy-report.html"
 

My Computer

System One

  • OS
    Windows 7
just getting the blinking cursor with each.
 

Attachments

  • Screenshot 2023-10-16 21.24.44.png
    Screenshot 2023-10-16 21.24.44.png
    18.1 KB · Views: 21
  • Screenshot 2023-10-16 21.24.39.png
    Screenshot 2023-10-16 21.24.39.png
    18.3 KB · Views: 21

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    I did it my way
    CPU
    AMD Ryzen Threadripper 1950X 16-Core Processor 3.40
    Motherboard
    ROG Zenith Extreme
    Memory
    G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Desktop Memory Model F4-3200C16D-32GVK
    Graphics Card(s)
    GIGABYTE GeForce GTX 1050 Ti 4GB GDDR5 PCI Express 3.0 x16 ATX Video Card GV-N105TWF2OC-4GD
    Monitor(s) Displays
    AOC U3277PWQU 32" 4K UHD 3840x2160 Monitor, and LG 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    too many. Seagate and WD
    PSU
    Thermaltake Toughpower Grand RGB 850W
    Case
    Thermaltake Suppressor F51 E-ATX Mid Tower
    Cooling
    Enermax Liqtech TR4 240 AIO Liquid CPU Cooler
    Keyboard
    an old dell
    Mouse
    logitech wireless
    Internet Speed
    300 mbps ATT Fiber
    Browser
    Mostly Chrome, sometimes Firefox
    Antivirus
    Microsoft
Doesn't that mean it's working on generating the report?
 

My Computer

System One

  • OS
    Windows 7

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Back
Top Bottom