powercfg /sleepstudy
Generate sleep study report for Modern Standby power diagnostics.
powercfg /sleepstudy
Command: powercfg /sleepstudy
Category: Diagnostics
Type: CMD
Purpose
Generates an HTML report analyzing your computer's Modern Standby (Connected Standby) power consumption behavior. Shows battery drain during sleep, which apps and processes prevented sleep, and overall sleep efficiency over the last 3 days.
Quick Summary
Understand why your laptop's battery drains during sleep. The Sleep Study report reveals which apps and processes are active during Modern Standby, how much battery is consumed, and whether your system is sleeping efficiently. Essential for troubleshooting battery drain issues on Modern Standby-capable devices.
How to Use
- Open Command Prompt (standard user rights sufficient).
- Type
powercfg /sleepstudyand press Enter. - The report is saved to your user directory (check output for exact path).
- Open
sleepstudy-report.htmlin a web browser to view.
Common variations:
powercfg /sleepstudy - Default 3-day report
powercfg /sleepstudy /duration 7 - 7-day report
powercfg /sleepstudy /output C:\Reports\sleep.html - Custom location
powercfg /sleepstudy /duration 14 /output sleep.html - 14 days, custom path
Tips and Best Practices
- Run after experiencing battery drain during sleep to capture the issue.
- Extend duration for longer analysis:
/duration 7for 7 days,/duration 14for 14 days. - Look for high "Active Time" percentages during sleep sessions—indicates poor sleep efficiency.
- Check "Top Offenders" section for apps preventing proper sleep.
- Compare multiple reports over time to identify patterns.
- Save reports with dates in filename for tracking:
sleep-2024-11-23.html - Review after installing new software to catch apps that impact sleep.
Prerequisites
- Modern Standby (Connected Standby) capable device
- Laptop or tablet (not typically available on desktops)
- Windows 8 or later
- Windows Command Prompt or PowerShell
- No administrator rights required
Note: If your device doesn't support Modern Standby, you'll get an error message.
Understanding the Report
System Information:
- Computer name and model
- BIOS version and date
- Connected Standby capability
- Report generation date and duration
Sleep Sessions:
- List of all sleep periods during the report timeframe
- Duration of each sleep session
- Energy consumed during sleep
- Average drain rate (mW)
- Sleep state transitions
Top Offenders:
- Apps and processes that were most active during sleep
- Total time each app was active
- Percentage of sleep time each app consumed
- Device IDs and process names
Battery Stats:
- Total sleep time
- Total energy drain
- Average power consumption
- Drain rate compared to expected idle drain
Common Use Cases
- Battery drain during sleep: Identify why battery drains faster than expected overnight or during transport.
- Sleep efficiency analysis: Verify your device is sleeping properly and not staying partially awake.
- App behavior monitoring: Identify apps that wake the device or prevent deep sleep.
- Pre/post software comparison: Check sleep behavior before and after installing new software.
- Troubleshooting wake issues: Understand what's waking your device from sleep.
Interpreting Results
Good Sleep Session:
- Low Active Time percentage (<5%)
- Consistent low power drain
- Few or no top offenders
- Deep sleep states achieved
Poor Sleep Session:
- High Active Time percentage (>20%)
- High power consumption
- Multiple active offenders
- Frequent state transitions
Typical offenders:
- Windows Update
- Antivirus software
- Backup applications
- Cloud sync services (OneDrive, Dropbox)
- Mail apps with push notifications
- Network adapters (Wi-Fi, Bluetooth)
Troubleshooting High Battery Drain
If report shows high drain:
- Identify top offenders from the report
- Check app settings for offending applications
- Disable background activity:
- Settings > Privacy > Background apps
- Disable for specific apps
- Update drivers especially network adapter drivers
- Windows Update - Install all available updates
- Power settings:
- Check power plan settings
- Verify sleep settings are appropriate
Troubleshooting
- "System does not support sleep study" - Device doesn't have Modern Standby; use battery report instead:
powercfg /batteryreport - Report shows no data - Device hasn't been put to sleep recently; use it normally for a few days and try again.
- Can't find report - Check Command Prompt output for file location, usually
C:\Users\YourName\sleepstudy-report.html - Report path too long error - Use
/outputwith shorter path:powercfg /sleepstudy /output C:\sleep.html
Modern Standby vs. Traditional Sleep
Modern Standby (Connected Standby):
- Stays connected to network
- Can receive notifications
- Apps can update in background
- Similar to smartphone sleep
- Available on newer devices
Traditional S3 Sleep:
- Full system suspend
- No network connectivity
- No background activity
- Lower power consumption
- Older sleep standard
Check your sleep type:
powercfg /a
Look for "Standby (S0 Low Power Idle)" for Modern Standby.
Related Commands
Check available sleep states:
powercfg /availablesleepstates
powercfg /a
Energy report (comprehensive power analysis):
powercfg /energy
Battery report:
powercfg /batteryreport
Check wake timers:
powercfg /waketimers
List devices that can wake computer:
powercfg /devicequery wake_armed
Improving Sleep Efficiency
Recommendations:
-
Disable unnecessary background apps:
- Settings > Privacy > Background apps
- Turn off for non-essential apps
-
Configure Windows Update:
- Set active hours to prevent updates during sleep
- Pause updates if needed
-
Network adapter settings:
- Disable "Allow this device to wake the computer"
- Device Manager > Network adapters > Properties > Power Management
-
Disable wake timers:
- Power Options > Advanced > Sleep > Allow wake timers > Disable
-
Update firmware and drivers:
- Keep BIOS and drivers up to date
- Especially network and chipset drivers
-
Check for firmware updates:
- Many sleep issues are fixed with BIOS updates
PowerShell Alternative
Generate sleep study in PowerShell:
powercfg /sleepstudy /output "$env:USERPROFILE\Desktop\sleepstudy.html"
Open report automatically:
powercfg /sleepstudy /output "$env:TEMP\sleepstudy.html"
Start-Process "$env:TEMP\sleepstudy.html"
Comparing with Battery Report
Use together for complete picture:
- Battery Report - Long-term battery health and usage patterns
- Sleep Study - Detailed sleep behavior and drain analysis
powercfg /batteryreport
powercfg /sleepstudy
Related Tools
powercfg /batteryreport- Battery health and usage reportpowercfg /energy- Energy efficiency analysispowercfg /waketimers- View scheduled wake timers- Task Manager - Monitor background app activity
- Battery settings - Windows Settings > System > Battery