Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How To Keep Laptop On When its Lid is Closed on Windows 11

How To Keep Laptop On When its Lid is Closed on Windows 11

Abhishek SilwalBy Abhishek SilwalJune 7, 2022
keep laptop on when closed windows 11

Many users close their laptop’s lid to pause their work. By default, your Windows 11 PC goes to sleep mode after closing the lid. But you may need to keep the laptop open if you are listening to music or want to keep the second screen on.

It’s very easy to change the lid close action settings. There are many methods but they all take less than a minute to execute. You can also change the setting for plugged-in or on battery power modes separately.

Table of Contents

  • How To Keep Laptop On When Lid is Closed
    • Through Power Options
      • For All Power Plans:
      • For Specific Power Plan
    • Using Group Policy Editor
    • With Registry Editor
    • Using Command-line Interface
      • For the Current Power Plan
      • For Specific Power Plan

How To Keep Laptop On When Lid is Closed

There are many ways to keep the laptop on with a closed lid, but they have different precedence. So pick any one you prefer after going through the methods below.

Through Power Options

Using the Power Options is the usual way to change any power configurations. You can set your laptop to be on with a closed lid for all or a specific power plan.

For All Power Plans:

Here are the steps to set to keep the laptop on when you close the lid:

  1. Press Win + R keys to open Run.
  2. Enter powercfg.cpl to load Power Options.
  3. Click Choose what closing the lid does.
  4. Set the drop-down boxes next to When I close the lid to Do nothing.
    close-lid-power-settings
  5. Hit Save Changes.

For Specific Power Plan

The necessary steps for this process are as follows:

  1. Open Power Options.
  2. Select Change plan settings for your power plan.
  3. Click Change advanced power settings.
  4. Expand Power buttons and lid > Lid close action.
  5. Set the drop-down boxes for On battery and Plugged in to Do nothing.
    power-option-specific
  6. Hit Apply and Ok.

If you don’t find the Power buttons and lid option, open the elevated Command Prompt and enter the following command:

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347ca83367-6e45-459f-a27b-476b1d01c936 /v Attributes /t REG_DWORD /d 2 /f

Using Group Policy Editor

You can also change the lid close action by altering the relevant policy settings. Such policies have higher precedence over the Power Options settings and apply to all Power plans.

  1. Launch Run.
  2. Enter gpedit.msc to open the Local Group Policy Editor.
  3. Go to Computer Configuration > Administrative Templates > System > Power Management > Button Settings.
  4. Double-click on Select the lid switch action (plugged in).
    lid-switch-group-policy
  5. Tick Enabled and set Lid Switch Action to Take no action.
  6. Hit Apply and Ok.
  7. Do the same for Select the lid switch action (on battery).

With Registry Editor

Another way to set the lid close action to do nothing is to change in its registry configuration. You can do so by using the Registry Editor. This method also takes precedence over the Power Options settings or the CLI. But if you change the Group Policy after tweaking your registry entries, the group policy will overwrite the entries after a reboot.

First, make a backup of your registry to account for undesirable issues. Then, follow the instructions below:

  1. Open Run and enter regedit.
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\
  3. Right-click on Microsoft and pick New > Key.
  4. Set the name to Power.
  5. Create a new key inside Power and name it as PowerSettings.
  6. Create a new key 5CA83367-6E45-459F-A27B-476B1D01C936 inside PowerSettings and go inside the key.
  7. Right-click on an empty area and choose New > DWORD (32-bit) Value.
  8. Set its name to ACSettingIndex and Value data to 0. Double-click on it to change the data. This setting applies for lid close action in plugged-in mode.
  9. Create another DWORD value.
  10. Set its name to DCSettingIndex and Value data to 0. It This specifies the lid close action on battery.

You don’t need to create the keys and entries if they already exist. If you find it daunting to carry out all these steps, you can create a .reg file and open it to make these changes. To do so,

  1. Open a text editor like notepad and enter the following:
  2. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936] "ACSettingIndex"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936] "DCSettingIndex"=dword:00000000
  3. Then, save it as Lid_Nothing.reg and double-click on the .reg file to merge the registry script.

Using Command-line Interface

Those familiar with the CLI like Command Prompt or PowerShell might find using such tools more convenient for changing the power settings. The Power Options directly show any changes you make to the power configuration with the CLI.

You can use this method to change the lid close action for the current or any other power plan.

For the Current Power Plan

Here are the necessary steps to keep laptop on even after closing its lid for the current power plan:

  1. Enter cmd on Run to open the Command Prompt. You can also enter powershell and open the Windows PowerShell.
  2. Enter the following commands:
    powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0​
    powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0​

For Specific Power Plan

You need to know the GUID of a power plan to change the setting specific to the plan. Follow the steps below to find out the GUID and change the lid close action:

  1. Open the Command Prompt or Windows PowerShell.
  2. Enter powercfg /l to list out all the available power plans.
  3. Note down the GUID number for the plan you want to alter.
  4. Enter the commands from the above method while replacing SCHEME_CURRENT with the GUID number.
how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

amd-software-not-opening

How to Fix AMD Software Not Opening

March 3, 2023
how to create a folder

7 Ways to Create a Folder on Windows

March 3, 2023
turn off automatic updates windows

How to Turn Off Automatic Updates on Windows

March 2, 2023
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
how-to-open-exe-file

4 Ways to Open EXE File

March 2, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
bios-settings-for-gaming

Best BIOS Settings for Gaming

February 16, 2023
You may also like
how-to-clean-hp-printer-rollers

How to Clean HP Printer Rollers

March 3, 2023
keyboard input lag

9 Ways to Fix Keyboard Input Lag

March 3, 2023
keyboard key is stuck

How to Fix a Stuck Key on a Keyboard

March 3, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.