Closing The Lid On Windows 10 Sleep Mode

how to close lid without sleep windows 10

By default, Windows 10 is set to put your laptop to sleep when you close the lid, but there are ways to change this setting. This is especially useful if you're connecting your laptop to an external display, keyboard, and mouse. You can use the Control Panel to change the default behaviour, but be careful as closing the lid of a running laptop can cause overheating. There are also third-party tools that can be used to achieve this.

Characteristics and Values

Characteristics Values
Default behaviour of Windows 10 when the lid is closed Puts the laptop into low-power sleep mode
How to change default behaviour Right-click the battery icon in the system tray, then click on "Power Options"
Alternative method to change default behaviour Go to Control Panel > Hardware
Third-party tools Can be used to keep the laptop running when the lid is closed
Risks of keeping the laptop running with the lid closed Overheating, poor circulation, blocking of vents, battery wastage

shunsleep

Use Control Panel to change default lid-close behaviour

To change the default lid-close behaviour on your Windows 10 laptop, you can use the Control Panel. This method involves using the Power Options applet in the Control Panel to configure your power management settings.

First, click on the magnifying glass icon on your taskbar to bring up the search menu. Type "Control Panel" in the search box and press Enter. In the Control Panel window, use the drop-down menu in the top right corner to change the view type to either Large or Small icons.

Next, open the Power Options applet. In the left pane, click on "Choose what closing the lid does". This will bring up the power management settings for your laptop. Use the drop-down menus next to "When I close the lid" to select your preferred action for both "On battery" and "Plugged in" modes. You can choose from the following options: do nothing, hibernate, shut down, or sleep.

Note that if you want to select "hibernate" as your default lid-close action, you will need to have already enabled hibernation on your laptop.

Once you have made your selection, click on "Save Changes" at the bottom of the window to confirm your new default lid-close behaviour.

It is important to note that some users have reported issues with this method, stating that their laptop hibernates or reverts to the previous setting even after changing the default lid-close action.

shunsleep

Use third-party tools to keep laptop running

While there is no built-in function in Windows 10 to keep your laptop running with the lid closed, you can use third-party tools to achieve this. Here are some methods to keep your laptop running with the lid shut:

PowerToys Awake

This is a tool designed for Windows to keep your computer awake without managing its power and sleep settings. PowerToys Awake can be helpful when you need to run time-consuming tasks, ensuring your laptop doesn't go to sleep or turn off its screen. To enable this feature, you can choose the "Do Nothing" option when selecting what closing the lid does.

Laplock

Laplock is another third-party tool that can be used to lock your computer only when you close the lid. This tool gives you the flexibility to set a time delay for locking, so your computer automatically locks after a certain period or when you shut the lid.

Manual Settings

You can also adjust your settings manually. For Windows 10, open the Start menu and search for "lid." Choose the "Choose what closing the lid does" entry, which will open a new menu within the Power Options settings. Here, you can select the "Do Nothing" option under the "When I close the lid" section. This will keep your laptop running even when the lid is closed.

It's important to note that keeping your laptop running with the lid closed may cause overheating, as the keyboard is a significant component for heat dissipation.

shunsleep

Manually put laptop to sleep, hibernate, or shut down

By default, Windows 10 puts your laptop to sleep when you close the lid. However, you can change this default behaviour.

To change the default behaviour of Windows 10 when you close the lid, you can access the Power Options in the Control Panel. Do not use the Windows 10 Settings app. Instead, right-click the battery icon in the system tray, then click on "Power Options". If you can't see the battery icon, click on "Show Hidden Icons" and then right-click on the battery icon, or head to Control Panel > Hardware. Once you are in the Power Options, you will be able to set the action for when you close the lid.

It is important to note that disabling the sleep function when you close the lid can cause some serious problems. Your laptop will continue to run, wasting its battery and potentially even overheating in your bag due to poor circulation or blocking of vents. Therefore, if you disable the sleep function, you will need to manually put your laptop to sleep, hibernate, or shut it down using its power buttons or in the options in the Start menu.

shunsleep

Use the Power Options in the Start menu

To prevent your Windows 10 laptop from sleeping when you close the lid, you can use the Power Options in the Start menu. Here's how to do it:

  • Go to the Start menu by clicking the Windows logo in the bottom-left corner of your screen.
  • In the Start menu, select "Settings" and then choose "System."
  • In the System menu, locate and select "Power & sleep."
  • In the Power & sleep settings, click on "Additional power settings."
  • Now, you will see the Power Options window. Here, select "Choose what the power buttons do" and then click on "Change settings that are currently unavailable."
  • You will see various options for when your device is "On battery" and "Plugged in." Under the "When I close the lid" section, you can set what happens when your laptop is running on battery power and when it's plugged in.
  • To prevent your laptop from sleeping when you close the lid, in the drop-down menu, select "Do nothing" for the "Plugged in" option. This will keep your laptop running when it's connected to power, even if you close the lid.
  • For the "On battery" option, you can choose between "Sleep", "Hibernate", "Shut down", or "Do nothing." Selecting "Sleep" will save power while still allowing you to quickly resume your work when you open the lid again.
  • Once you've made your selections, click on "Save changes" to apply the new settings.

By using the Power Options in the Start menu, you can customize what happens when you close the lid of your Windows 10 laptop, including preventing it from automatically going to sleep.

shunsleep

Use RegisterPowerSettingNotification and GUID_LIDSWITCH_STATE_CHANGE

To prevent your Windows 10 laptop from going to sleep when the lid is closed, you can use the 'RegisterPowerSettingNotification' and 'GUID_LIDSWITCH_STATE_CHANGE' settings. This method involves capturing the "close lid" event and triggering a lock-screen event instead of putting the device to sleep.

Understanding the Components:

  • 'RegisterPowerSettingNotification' is a function that allows you to register for power setting notifications. It enables you to receive notifications when specific power settings change, such as the lid switch state.
  • 'GUID_LIDSWITCH_STATE_CHANGE' is a specific power setting that represents the state change when the laptop lid is closed.

Setting up the Functionality:

  • You can use the 'RegisterPowerSettingNotification' function to detect the 'GUID_LIDSWITCH_STATE_CHANGE' setting when the lid is closed. This detection triggers a custom program or script to run.
  • Create a program or script that captures the "close lid" event and responds by triggering a lock-screen event instead of putting the device to sleep. This can be done using command-line tools or programming languages of your choice.

Customizing the Behavior:

You can customize the behavior of your laptop when the lid is closed by modifying the power settings. For example, you can set it to lock the computer after a certain period or only when the lid is closed.

Considerations:

  • While this method allows you to keep your laptop running with the lid closed, it's important to consider the potential for overheating. Laptops dissipate heat through the keyboard, so running with the lid closed for extended periods may lead to overheating.
  • Ensure that you have the necessary compilers and programming tools installed to create and run the required scripts or programs.

Alternative Approaches:

Although the focus is on 'RegisterPowerSettingNotification' and 'GUID_LIDSWITCH_STATE_CHANGE', it's worth mentioning that there are alternative approaches. For example, you can use powercfg commands to change the behavior when the lid is closed, such as setting it to "Do Nothing" or "Go to sleep/standby mode".

Frequently asked questions

Right-click the battery icon in the bottom right corner and select "Power Options". There will be an option to set the action for when the lid is closed.

No, there is no built-in function to achieve this. However, you can use a third-party tool to do this.

Your laptop could overheat due to poor circulation or blocking of vents. It will also continue to run, wasting its battery.

You can use an app called laplock, which locks the computer only after closing the lid.

Yes, simply type "lid" in the start menu to bring up the power options.

Written by
Reviewed by

Explore related products

Share this post
Print
Did this article help you?

Leave a comment