Hello, I am a Microsoft user like you, trying to assist you in solving this problem together!
I fully understand your distress when encountering this problem. There are many reasons that prevent you from falling asleep, and this needs to be investigated step by step. I will add some additional methods for investigation:
- Perform clean startup to eliminate third-party software interference
Uninstall all third-party antivirus and system optimization software from the device first
① Press the WIN+R combination key to open the Run dialog box;
② Enter msconfig during runtime;
③ Find "Services", click "Hide All Microsoft Services" in the bottom left corner, and then click "Disable All";
④ Click on the "Enable" tab, then click to open the "Task Manager";
⑤ , disable all options during startup;
⑥ Then click "Restart"
Attention: Restore password login mode before execution (Windows hello may affect)
How to perform clean startup and troubleshoot problematic application services in Windows
https://support.microsoft.com/en-us/topic/how-t...
If it returns to normal, please refer to the above link for guidance to investigate the specific affected applications
- turn off AwayModeEnable
Open and run Win+R, enter "regedit" to open the registry editor, and find this path:
Computer \ HKEY-LOCAL_Machine \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Power
"AwayModeEnable" leaves the mode, we change the key value to 0 and turn off this mode
Note: Some laptops may not be able to find this registry key value. You can create a new one
Right click on the Windows Start menu on the desktop, select Power Options ->Other Power Settings ->Change Schedule Settings ->Change Advanced Power Settings. In the "Sleep" window that pops up, check if there is an option for "Allow Leave Mode Policy". If available, expand the "Allow Leaving Mode Policy" option and set both battery usage and power on to "No".
- Please open cmd as an administrator and enter the command
powercfg -requests
Check what program is causing the inability to sleep, and confirm after closing it
- Does the computer have a scheduled task
powercfg -waketimers
- List the devices currently configured to wake up the system from any sleep state and see if the cause can be identified.
powercfg /devicequery wake_armed
- View the device that last woke up the computer, still entered in "Windows PowerShell (Administrator) (A)"
powercfg -lastwake
If troubleshooting is not possible, please post screenshots of steps 3-5
I hope the above suggestions can help you! If the issue cannot be resolved, please click "Reply" to provide feedback on relevant information and pictures