Here's what I did:
First run:
powercfg /lastwake
This might give something like:
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Device
Instance Path: ACPI\ACPI000E\2&daba3ff&1
Friendly Name:
Description: ACPI Wake Alarm
Manufacturer: (Standard system devices)
If you recognize device then you found the issue. In above case friendly name is missing so device is not recognizable but it seems that something capable of waking up the system did the trick (as opposed to faulty lid closer detection).
Run below command to see scheduled wake timers:
powercfg /waketimers
In my case this prints:
Timer set by [SERVICE] \Device\HarddiskVolume4\Windows\System32\svchost.exe (SystemEventsBroker) expires at 6:41:31 PM on 12/10/2019.
Reason: Windows will execute 'NT TASK\Microsoft\Windows\UpdateOrchestrator\Backup Scan' scheduled task that requested waking the computer.
You can run Task Scheduler built-in to Windows, navigate to above path and see if this is problematic.
Next thing to try is simply disable devices that can wake up the computer. Run following:
powercfg -devicequery wake_armed
Typically devices such as NVIDIA USB Type-C Port Policy Controller
, NVidia High Definition Audio
etc might popup here. Go to Device Manager, find these devices under Sound, USB etc sections, look for "Wake" in their properties and disable it. Also, WiFi controllers have ability to wake up the system. You can disable that in Device Manager as well. Finally, in Power Settings, go to Sleep section and disable Allow wake timers setting.