Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

What to Do If Your Computer Keeps Locking Itself

Madalina DinitaMay 2, 2022 Comments (5)
Lock Header

Your Windows computer may sometimes lock itself randomly. Your machine simply goes to the lock screen and requires you to enter your passcode. This issue is even more annoying if it occurs when you’re watching a movie or working on a substantial project. Now, let’s see how you can prevent your computer from locking itself.

Contents

  • 1 Fix: My Windows Computer Keeps Locking Itself
    • 1.1 Run the Power Troubleshooter
    • 1.2 Check Your Power Settings
    • 1.3 Update Your Display Driver
    • 1.4 Disable Hibernation
    • 1.5 Check If This Glitch Is Caused by an Update
    • 1.6 Clean Boot Your Computer
    • 1.7 Conclusion

Fix: My Windows Computer Keeps Locking Itself

Run the Power Troubleshooter

Try running the built-in Power troubleshooter and check if it solves the problem.

  1. Go to Settings
  2. Select System
  3. Click on Troubleshoot
  4. Then, click on Other troubleshooters
  5. Run the Power troubleshooter

power-troubleshooter-windows

Check Your Power Settings

Navigate to Power & Sleep settings and tweak your settings to prevent your computer from entering Sleep Mode on its own.

  1. Go to Settings
  2. Select System
  3. Then, select Power & Battery
  4. Select Screen & Sleep
  5. Set all the Power options to Never

Power-settings-Windows

Alternatively, you can also go to Control Panel → Hardware and Sound → Power Options and then, select your current power plan and tweak your settings.

Update Your Display Driver

Sleep Mode is controlled by the display driver. Make sure to update your driver to the latest version, and check if you notice any improvements.

  1. Open the Device Manager
  2. Expand the list of Display Adapters
  3. Right-click on the Display Adapter
  4. Select Update Driverupdate display adapter driver
  5. Select the option that automatically searches for the latest driver version
  6. Restart your computer after updating your driver

However, if the issue persists, try reinstalling your display driver. Right-click again on your Display Adapter, select Uninstall device, and restart your machine.

Disable Hibernation

  1. Launch Command Prompt with admin rights
  2. Hit Continue on the User Account Control window
  3. Type powercfg -h off or powercfg.exe /hibernate off and hit Enter

    In an administrative command prompt, run the command “powercfg.exe /hibernate off.”
  4. Wait for 30 seconds and restart your computer

Immediately check if disabling hibernation solves the problem.

Check If This Glitch Is Caused by an Update

If your computer started locking itself after installing the latest updates, maybe one of the updates is causing this issue.

  1. Navigate to Settings
  2. Select Windows Update
  3. Click on Windows Update under Update History
  4. Uninstall recently installed updates

If this issue is caused by a service update, you have 10 days to roll back. Go to Settings, select System, click on Recovery, and hit the Go back button.

Alternatively, you can also go to Control Panel, select Programs, and Features, and click on Installed Updates. Then, select the update you want to remove and hit the Uninstall button.

uninstall-Windows-10-updates

Clean Boot Your Computer

Check if one of the programs installed on your computer is forcing your device to enter Sleep mode. For example, if you’re using a system optimizer such as Dell Optimizer, disable it and check if you notice any improvements.

For more information on cleaning boot your machine, see What is a Windows Clean Boot and How to Perform One.

Conclusion

In brief, To fix the issue where your computer locks itself randomly, run the built-in Power troubleshooter. Then, tweak your power settings to prevent your computer entering Sleep Mode. Additionally, update or reinstall your display driver, and disable Hibernation. However, if the issue persists, uninstall the latest updates and clean boot your computer.

Did you manage to solve the problem and prevent your machine from locking itself? Let us know in the comments below.

Categories: Windows

Author Madalina Dinita

Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer. She is interested in all things technology, especially emerging technologies -- AI and DNA computing in particular.

You Might Also Like

  • Windows 11 22H2 Download The Ultimate Guide (Photo: Courtesy of Microsoft)

    How to Enable Live Captions in Windows 11

    Judy SanhzWindows
  • Windows Header

    Windows 11: How to Enable/Disable “Manage” Selection Under “This PC”

    Judy SanhzWindows
  • Enable Login Header

    Windows 11: How to Turn on Auto Login

    Judy SanhzWindows

Comments

  1. Kodos the Executioner says:
    May 30, 2023 at 10:34 am

    Worked my way down the list, and the hibernation disable seemed to do the trick.
    Glad it worked, the lock screen was beginning to come on with annoying regularity.
    (Windows 10, version 22H2, Intel(R)-Core i5-8400 processor).

    Thanks!

  2. Seerat says:
    January 1, 2023 at 12:58 am

    Yes, ‘hibernate off’ did the trick for me.Thank you for your excellent article!

  3. Lorraine says:
    November 17, 2022 at 8:02 pm

    No helphel as Locked so can’t get anything on screen

  4. De Roo says:
    November 2, 2022 at 8:07 pm

    I have done all suggested, and on some computers, it still locks, every night.

  5. Bobby says:
    October 28, 2022 at 11:43 pm

    I Couldn’t restart now computer. But will know exactly on next restart.

Leave a Reply

Your email address will not be published. Required fields are marked *

average laptop lifespan

What Is an Average Laptop Lifespan?

fix 0x80070302 windows update error

How to Fix the 0x80070302 Windows Update Error

how to allocate more memory to a program

How to Allocate More Memory to a Program in Windows

marvel rivals memory leak fix

Marvel Rivals Using Too Much Memory – How to Fix

how to create a macro in word

How to Create a Macro in Word

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Legal & Privacy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on May 2, 2022 by Judy Sanhz