If your Windows PC wakes unexpectedly or refuses to enter sleep, start with built-in powercfg.exe diagnostics. Use powercfg /lastwake to inspect the most recent wake, powercfg /waketimers and powercfg /devicequery wake_armed to check two possible wake sources, and powercfg /requests to investigate what may be keeping the PC awake. These commands provide clues, not a guaranteed diagnosis; first check which sleep states your particular PC supports.
Why does my PC wake up at night?
A scheduled wake timer and a device configured to wake the PC are different possibilities, so check them separately. Before changing anything, note when the unexpected wake occurred. Compare that time with command output, and change one setting at a time so you can tell whether it affected the behavior.
1. Check the PC’s sleep states
Open Command Prompt or Windows Terminal and run:
powercfg /a
This reports the sleep states available on the machine and may explain why other states are unavailable. Use the result to establish whether the PC supports traditional S3 sleep or Modern Standby; the distinction matters because the available diagnostics and behavior differ. For command details, see Microsoft’s Powercfg command-line options and its overview of power management.
2. Inspect the most recent wake
Run:
powercfg /lastwake
Microsoft defines this command as reporting “information about what woke the system from the last sleep transition.” It concerns the most recent transition, so it may not explain an earlier overnight wake or a recurring pattern if the PC has slept and awakened again since then. Treat its output as a lead to investigate, not a verdict.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstall#1 Best Overall
- Spacious Design: Measuring 21.1" wide and 14.1" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy ergonomic support with the integrated cushioned wrist rest.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a sleek black carbon color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.8 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
3. Look for active wake timers
Run:
powercfg /waketimers
This lists active wake timers. If one appears, note the requester, expiry time, and any named task, then investigate that task before changing settings. Windows can use real-time-clock events to wake a system, but a listed timer does not by itself establish that it caused the wake you noticed. Microsoft documents wake-event details for S3 sleep and S4 hibernation; do not assume that description covers every Modern Standby transition. See System Wake-up Events.
Microsoft’s troubleshooting documentation gives a Windows 8 regular-maintenance wake as an example of a timer-related wake. That example is historical context, not evidence that maintenance is the current or universal cause on Windows PCs: Desktop wakes up unexpectedly from sleep or hibernation.
4. Check which devices are allowed to wake it
Run:
powercfg /devicequery wake_armed
The result lists devices currently configured to wake the system. A device appearing in the list means it has wake capability enabled; it does not prove that it caused the unexpected wake. If other evidence points to a listed device and you are willing to prevent it from waking the PC, disable that ability with its exact displayed name:
Rank #2
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
powercfg /devicedisablewake "device name"
Replace device name with the name reported on your PC. This changes the device’s wake permission; it does not repair the device. Microsoft documents the command and device query in its Powercfg reference.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesWhy won’t my PC stay asleep?
A wake event is not the same thing as a power request. If the PC will not enter low-power sleep, or the display does not turn off automatically, inspect requests rather than treating a wake source as the explanation.
Check applications and drivers with active requests
Run:
powercfg /requests
This lists application and driver Power Requests that can prevent automatic display-off or entry into low-power sleep. Investigate the named requester and what it is doing. A request is evidence of activity to examine, not proof that an application or driver is faulty.
Rank #3
- Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
- 💻 Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
- ✅ Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
- ✅ Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
- ✅ 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.
Microsoft’s guidance notes that a system-required request held indefinitely can prevent sleep and drain battery on a Modern Standby device. Applications should clear a request when the work requiring it is complete. For the underlying behavior, see System Sleep Criteria.
Which report should I use for Modern Standby?
If powercfg /a indicates that the PC supports Modern Standby, use SleepStudy to examine session activity. Microsoft recommends it as a starting point for Modern Standby diagnostics: Tools available.
Generate a SleepStudy report
Run:
powercfg /sleepstudy
The command creates an HTML report. Its default interval is three days; to examine a longer period, specify a duration in days, up to 28:
Rank #4
- Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
- Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
- Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
- EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
- Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.
powercfg /sleepstudy /duration 7
SleepStudy reports session activity, idle time, power consumed, and first-level information about activity causes. Use it to compare activity and timing with the behavior you observed, not as automatic proof of a root cause. Microsoft describes the report and duration options in Modern standby SleepStudy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.When are the broader power reports useful?
Microsoft also documents two reports that can help investigate system behavior beyond an individual wake or request:
powercfg /systemsleepdiagnosticsreports periods when the user was absent and whether the system slept. It requires an elevated command prompt.powercfg /systempowerreportcreates a report of system power transitions.
Check Microsoft’s command reference for the selected report’s syntax, output location, and elevation requirements.
Best Value
- Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
How do I find out what woke my computer?
Choose the command that matches the question you are trying to answer:
| Question | Command or report | What it examines |
|---|---|---|
| Which sleep states does this PC support? | powercfg /a |
Available and unavailable sleep states |
| What woke it most recently? | powercfg /lastwake |
Information about the last sleep-transition wake |
| Is a scheduled wake timer active? | powercfg /waketimers |
Active wake timers |
| Which devices are configured to wake it? | powercfg /devicequery wake_armed |
Devices currently enabled for wake |
| Why might it not sleep or turn off the display? | powercfg /requests |
Application and driver power requests |
| What activity occurred during Modern Standby? | powercfg /sleepstudy |
Modern Standby sessions and activity |
Command output from your PC is necessary to identify a likely cause. No specific timer, device, application, driver, or update can be named without that evidence. Match timestamps and requesters to what you observed, then investigate the strongest lead before changing settings.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




