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: Newest
  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
  2. Anonymous
    2025-02-04T21:31:10+00:00

    After further testing, this did not solve the issue, unless my laptop is missing a "Hibernate" tab for some reason. It shut down after exactly one hour of inactivity, although there have been instances where it shuts down earlier than that.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-02-04T12:14:13+00:00

    I was able to find the setting to disable the automatic hard disk shutoff, but it was set to turn it off after 1 minute, which doesn't line up with the 2-3 hours it takes to make it shut off.

    Additionally, I found a "Sleep" tab, but not a "Hibernate" tab. Are these the same thing?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-02-03T04:37:07+00:00

    This option is under “System Devices”. If your computer does not have any “Intel” related devices under any of the device tabs, then your computer is probably on the AMD platform.

    Based on your latest description, it looks like the power plan may have shut down the hard disk. You can check if the following options are working.

    1. Type “Edit power plan” in the search box on the taskbar and open the program.
    2. Click on “Change advanced power settings (C)”.
    3. Go to “Hard disk” - “Shut down hard disk after this time” and set both options to “Never”. (Entering 0 means “Never”.)
    4. Go to “Hibernate” - “Hibernate after this time” and set both options to “Never”. Click “Apply”.
    5. Go back to the page you opened in the first step. Click on “Power Options” in the upper address bar. Then click on “Select what closing the laptop lid does” on the left menu bar.
    6. Ensure that the function of the computer lid is set to “Do nothing”.

    Best Regards,

    Raylan-MSFT | Microsoft Community Support Specialist

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2025-02-02T00:37:27+00:00

    In Device Manager, there are no tabs or items called "Intel Management Engine Interface" (or anything containing "Intel", for that matter.)

    I've also noticed that the time until the computer shuts down seems to be varying a lot as of recently. It just shut down again after twenty minutes of inactivity, but sometimes it doesn't shut down even after being closed for 12+ hours.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments