System went to sleep last night for no good reason

kernelsleep

I've recently built a new computer running Windows 10 with x99 motherboard and for some reasons my Windows went to sleep mode last night for no good reason. When I woke from my sleep the computer greeted me with lock screen demanding a password.

Here's what I saw upon checking event viewer logs:

Event 42, Kernel-Power

The system is entering sleep.

Sleep Reason: Application API

I have the standby mode off in the power settings so I'm not not sure what could be the reason it just goes to sleep like that

It's like I pressed Win+L but I didn't

Best Answer

Event 42 is in the System event log. Check for events about the same time in the Application event log. In my case, it looks like the APC PowerChute process is putting the system to sleep (for as yet unknown reasons). The user who posted here describes the symptoms exactly:

https://forums.apc.com/spaces/7/ups-management-devices-powerchute-software/forums/general/11451/application-api-putting-computer-in-sleep-mode-no-on-battery-event-shown

Related Question