How to Use Your PC Laptop or MacBook when the Lid is Closed

Download Article
Learn how to keep your laptop awake even when you shut the lid
Download Article

When you close your laptop lid, the computer will usually go to sleep. But there are many reasons you might want your computer to stay awake—maybe you're listening to music and don't want the screen visible, you use your laptop as a desktop computer with an external monitor, or you're watching a movie or presentation on a connected display or TV. Whatever the reason, this How.com.vn article will teach you how to keep your Windows PC laptop or MacBook on when the lid is closed.

Things You Should Know

  • On Windows 10, you can change what your laptop does when closing the lid in your Power & sleep settings.
  • On Windows 11, you can simply type the word "lid" into your taskbar search to pull up the correct settings.
  • To keep your MacBook on when the lid is closed (clamshell mode), you'll need to have an external monitor, keyboard, and mouse connected.
Section 1 of 4:

Windows 10

Download Article
  1. How.com.vn English: Step 1 Type ⊞ Win+I to open Settings.
    Alternatively, you can click the Windows logo on the taskbar and click the gear icon in the Start Menu.
  2. How.com.vn English: Step 2 Select System.
    Advertisement
  3. How.com.vn English: Step 3 Click Power & sleep.
    This will be in the left sidebar.
  4. How.com.vn English: Step 4 Scroll down until you see Additional power settings.
    You can find additional power settings under Related settings.[1]
  5. How.com.vn English: Step 5 Click Choose what closing the lid does on the left sidebar.
  6. How.com.vn English: Step 6 Change settings for When I close the lid:.
    You can select Do nothing, Sleep, or Shut down. To ensure your computer stays on when closing the lid, you should select Do nothing.
    • You can edit this setting for when your computer is on battery and plugged in. Be aware that if your computer doesn't sleep while on battery, the battery will drain faster than if the computer were asleep.
  7. Advertisement
Section 2 of 4:

Windows 11

Download Article
  1. How.com.vn English: Step 1 Press the ⊞ Win key on your keyboard and type lid.
  2. How.com.vn English: Step 2 Click on Change what closing the lid does.
  3. Step 3 Change settings for "When I close the lid."
    You can select Do nothing, Sleep, or Shut down. Selecting Do nothing will make it so your laptop doesn't go to sleep when you close the lid.
    • If you set this setting for On battery, be aware your computer's battery will drain faster than if you let the computer sleep when the lid was closed.
  4. Advertisement
Section 3 of 4:

macOS Ventura

Download Article
  1. How.com.vn English: Step 1 Open your Mac's System Settings.
    You'll find it in the Apple Menu. If you want to use your MacBook in clamshell mode (when the lid is closed), there are a few system settings you can change. Keep in mind that these settings will only work if you've connected an external display, keyboard, monitor, and mouse to your MacBook. These can be wired or wireless devices.
    • If changing your settings doesn't keep your MacBook on when the lid is closed, we'll cover some foolproof workarounds at the end of this method.
  2. How.com.vn English: Step 2 Click Displays in the left panel.
  3. How.com.vn English: Step 3 Select your display and click Advanced….
    You'll see the Advanced button at the bottom of the window.
  4. Step 4 Select "Prevent automatic sleeping when the display is off."
    If this setting is available for both displays, repeat for your other display.
  5. How.com.vn English: Step 5 Click Lock Screen in the left panel.
  6. Step 6 Select Never for "Turn display off on power adapter when inactive."
    Doing the same for "Turn display off on battery when inactive" won't help much, as you have to keep your MacBook connected to a power source while using it with the lid closed. Otherwise, your external monitor and devices will stop working.
  7. How.com.vn English: Step 7 Close the lid of your laptop.
    If your display goes to sleep, move the mouse or press a keyboard key to wake it up.
    • When you're finished using your MacBook with the lid closed, remember to return these settings back to their original values.
  8. How.com.vn English: Step 8 Try alternatives if this doesn't work.
    Many MacBook users running Ventura on modern Apple processors (M1 and M2) report that changing these settings doesn't allow them to use the laptop with the lid closed. If your MacBook still turns off, try these alternatives:
    • Amphetamine. You can get this free keep-awake app from the Mac App Store. Amphetamine is a simple tool that reliably keeps your MacBook awake when the lid is closed. You can even use it to schedule awake time in advance.
      • While Amphetamine originally didn't work on Apple M2 processors, the developer has corrected the issue in a recent release.[2]
    • Use a terminal command. If you don't mind typing a quick command into the Terminal when you want to close the lid, this is an easy way to keep your MacBook on:
    • Open a Terminal window.
    • Type sudo pmset disablesleep 1 and press Return.
    • Enter your password when prompted. Once your password is accepted, you can close your MacBook's lid without powering down your Mac.
    • To disable this setting when you're finished, run the command sudo pmset disablesleep 0. Don't forget to restore this setting to preserve your battery life.
  9. Advertisement
Section 4 of 4:

macOS Monterey & Earlier

Download Article
  1. How.com.vn English: Step 1 Connect an external monitor, keyboard, and mouse to your MacBook.
    In any version of macOS, you'll need to connect a display, keyboard, monitor, and mouse to your MacBook to prevent it from sleeping when the lid is closed. These can be wired or wireless devices.
  2. How.com.vn English: Step 2 Open System Preferences.
    You'll find this option in the Apple menu at the top-left corner of the screen.
  3. How.com.vn English: Step 3 Click Battery.
    It has a green icon of a battery above it.[3]
  4. How.com.vn English: Step 4 On the left-hand sidebar menu, click Power Adapter.
    It has a yellow icon with a lightning bolt.
  5. How.com.vn English: Step 5 Move the top slider over to Never.
    This will keep your MacBook's display from going to sleep when plugged into a power source.
  6. Step 6 Check the box next to "Prevent your Mac from automatically sleeping when the display is off".
    This will keep your MacBook from going to sleep when you shut the lid.
    • If you want to make sure you can still use your MacBook in clamshell mode when it's not plugged into a power source, return to System Preferences, click Energy Saver, and select "Prevent your Mac from automatically sleeping when the display is off."
  7. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Luigi Oppido
      Co-authored by:
      Computer & Tech Specialist
      This article was co-authored by Luigi Oppido and by How.com.vn staff writer, Hannah Dillon. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 5,911 times.
      How helpful is this?
      Co-authors: 2
      Updated: July 5, 2023
      Views: 5,911
      Categories: Laptops
      Thanks to all authors for creating a page that has been read 5,911 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement