Laptop shutting down when lid is closed for more than 2-3 hours

Anonymous
2025-01-31T19:51:05+00:00

Recently, my laptop has been shutting itself down when left idle for long enough, even though I have it set to sleep when closed. I've looked through the power and battery settings and couldn't find anything that shuts the laptop down automatically. I've tried turning off fast startup and downloading all available Windows updates, but nothing works.

I have an HP laptop with Windows 11 with build 26100.3037. The processor is an AMD Ryzen 5 7520 U.

Windows for home | Windows 11 | Sleep and Power on, off

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Oldest
  1. Anonymous
    2025-02-07T04:44:44+00:00

    First of all, sleep and hibernation mean the same thing. Secondly, even if the hard disk shutdown time does not match your computer shutdown time, you'd better set it to "never". Because sometimes the computer program will randomly call the hard disk, which may cause your computer to shut down at a random time instead of a fixed time.

    In addition to the above settings, you can also adjust the following settings:

    1. Go back to the "Advanced Power Settings" mentioned in the first reply and check if there is "Sleep"-"Allow Hybrid Sleep". If so, disable it.
    2. Press "win + R" and enter CMD. Then press "Ctrl + Shift + Enter" at the same time to open CMD with administrator privileges. Enter the following command and press "enter" to run. powercfg /h off

    Now you can check again whether the computer will shut down automatically.

    Best Regards,

    Raylan-MSFT | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments