How to keep a laptop from sleeping and lock the keyboard? 1
/ By Vlad Tabaranu / Laptop Guides / 0 Comments

How to keep a laptop from sleeping and lock the keyboard?

How to Keep a Laptop From Sleeping and Lock the Keyboard?


Laptops play a crucial role in our everyday routine, both for work and personal purposes. Nonetheless, there are situations where you might need to stop your laptop from going to sleep or temporarily disable the keyboard. This can be helpful in various scenarios, like during a presentation, watching a film, or when you have to walk away from your laptop for a short while. This post outlines multiple ways to prevent a laptop from sleeping and lock the keyboard, ensuring uninterrupted usage.

Keeping a Laptop From Sleeping

Adjusting Power Settings

One of the simplest ways to prevent your laptop from going into sleep mode is by adjusting the power settings. Here’s how you can do it:

  1. Open the Control Panel on your laptop.
  2. Click on “Power Options.”
  3. Select the power plan that you are currently using (usually labeled as “Balanced” or “Power Saver”).
  4. Click on “Change plan settings” next to the selected power plan.
  5. On the following screen, you can change the sleep settings.
  6. Set both the “Turn off the display” and “Put the computer to sleep” options to “Never.”
  7. Click on “Save changes” to apply the new settings.

By following these steps, your laptop will no longer go to sleep automatically, allowing you to use it continuously.

Using Third-Party Software

If you prefer a more customizable approach, you can use third-party software to prevent your laptop from sleeping. Some popular options include:

  • Caffeine: Caffeine is a lightweight software that simulates keystrokes at regular intervals, mimicking user activity. This prevents your laptop from going into sleep mode. Simply download and install Caffeine, and click on the coffee cup icon in the system tray to activate it.

  • Amphetamine: Amphetamine is a powerful macOS tool that offers advanced options to keep your laptop awake. It provides customizable settings, including the ability to block sleep for specific periods or when certain conditions are met.

These third-party software options can be helpful if you need more control over when and how your laptop stays awake.

Adjusting Device Settings

Another way to keep your laptop from sleeping is by adjusting the device settings. This method may vary depending on your laptop model and operating system, but typically involves the following steps:

  1. Open the “Device Manager” on your laptop.
  2. Expand the “Network Adapters” category.
  3. Right-click on the Wi-Fi adapter and select “Properties.”
  4. In the “Power Management” tab, uncheck the option that allows the computer to turn off the device to save power.
  5. Click on “OK” to save the changes.

By disabling this option, your laptop will not turn off the Wi-Fi adapter, ensuring that it remains active even when the computer is idle.

Locking the Keyboard

Windows Key + L

The simplest and quickest way to lock your laptop’s keyboard is by using the Windows Key + L shortcut. Pressing these keys simultaneously will lock your laptop and require a password to regain access. This method is secure and prevents unauthorized usage while you’re away.

Third-Party Keyboard Lock Tools

If you need more advanced keyboard locking options, you can explore third-party keyboard lock tools. These tools offer features such as temporary keyboard disabling, hiding keystrokes, or even displaying a custom lock screen. Some popular options include:

  • Keyboard Locker: Keyboard Locker is a lightweight software that provides a simple interface to lock and unlock your keyboard instantly. It allows you to set custom hotkeys for locking and unlocking the keyboard.

  • Kid Key Lock: Kid Key Lock is primarily designed to prevent children from accidentally pressing keys. However, it can also be used to temporarily lock the keyboard when needed. This tool offers password protection and allows you to disable specific keys or key combinations.

By using these third-party keyboard lock tools, you can have more control over the keyboard functionality on your laptop.


In conclusion, knowing how to keep a laptop from sleeping and lock the keyboard can significantly enhance your user experience and productivity. By adjusting power settings, utilizing third-party software, and exploring device settings, you can ensure that your laptop stays awake when needed. Additionally, using shortcuts like Windows Key + L or third-party keyboard lock tools can secure your laptop from unauthorized usage. Apply these methods based on your requirements, and enjoy uninterrupted laptop usage without any sleep interruptions or keyboard mishaps.


  1. How can I prevent my laptop from going into sleep mode?

    • One way to prevent your laptop from going into sleep mode is by adjusting the power settings. Open the Control Panel, click on Power Options, select the power plan you’re using, and change the sleep settings to “Never.”
  2. Are there any third-party software options to keep my laptop awake?

    • Yes, there are third-party software options available. Caffeine is a lightweight software that simulates keystrokes to prevent sleep, and Amphetamine offers advanced options for macOS users.
  3. How can I lock the keyboard on my laptop temporarily?

    • To lock the keyboard temporarily, you can use the Caffeine software mentioned earlier. Simply download and install it, then click on the coffee cup icon in the system tray to activate it.
  4. Can I adjust device settings to prevent my laptop from sleeping?

    • Yes, adjusting device settings can also help prevent your laptop from sleeping. Open the Device Manager, expand the Network Adapter section, and adjust settings according to your laptop model and operating system.