My computer went to sleep (actually, it looked more like hibernating) in the middle of an active time, without any warning.
In the Event log, the message was:
The system is entering sleep.
Sleep Reason: Application API
It doesn't give any other information. Is there a way to find out which application caused this call?
Best Answer
Check out https://www.nirsoft.net/utils/computer_turned_on_times.html
Super useful for more than this situation, but a lifeline when trying to troubleshoot sleep / shutdown / hibernate issues.