Shutdown PC after being in Modern Sleep (S0) for x time

AdmiralSym 0 Reputation points
2024-08-23T01:00:04.93+00:00

I own a computer that uses Modern Sleep (S0). I would like to be able to close the lid or sleep the computer then have it shutdown on its own after a certain period of time. From what I can tell, S0 halts scheduled tasks and scripts so I haven't been able to get very far with those avenues. Is it possible to somehow use a wake timer that begins at the very instant the computer goes to sleep, then after a period of time elapses, the computer wakes to trigger a shutdown event?

Thanks!

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,438 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Zhou 6,365 Reputation points Microsoft Vendor
    2024-08-26T02:17:19.17+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    To achive this purpose, it's more recommended to use system power state S3 as in S0 the scheduler will not run as expected.

    When it's going to S3, you can configure a task scheduler or scripts which will turn off the PC regularly.

    REF: https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/system-sleeping-states

     

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.