PDF download Download Article
Learn how to keep your laptop awake even when you shut the lid
PDF download 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 wikiHow 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

PDF download Download Article
  1. Alternatively, you can click the Windows logo on the taskbar and click the gear icon in the Start Menu.
  2. Advertisement
  3. This will be in the left sidebar.
  4. You can find additional power settings under Related settings . [1]
  5. 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.
  6. Advertisement
Section 2 of 4:

Windows 11

PDF download Download Article
  1. 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.
  2. Advertisement
Section 3 of 4:

macOS Ventura

PDF download Download Article
  1. 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. You'll see the Advanced button at the bottom of the window.
  3. If this setting is available for both displays, repeat for your other display.
  4. 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.
  5. 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.
  6. 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.
  7. Advertisement
Section 4 of 4:

macOS Monterey & Earlier

PDF download Download Article
  1. 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. You'll find this option in the Apple menu at the top-left corner of the screen.
  3. It has a green icon of a battery above it. [3]
  4. It has a yellow icon with a lightning bolt.
  5. This will keep your MacBook's display from going to sleep when plugged into a power source.
  6. 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
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 11,374 times.

      Is this article up to date?

      Advertisement