Your monitor will turn off when you close your laptop lid unless you change one Windows or Mac setting
When you close your laptop, Windows and Mac both assume you want to sleep the whole machine — including any external monitor plugged in. This happens because your laptop's lid switch tells the operating system to enter sleep mode. You can override this so your monitor stays on and your external keyboard and mouse keep working, even with the lid closed.
The fix is different on Windows and Mac, and takes about two minutes on either system. You do not need to install anything or restart your computer.
Key Takeaways
- Windows lets you choose what happens when you close the lid — you can keep the monitor on while the laptop sleeps, or keep everything running.
- Mac does not have a built-in setting for this, but you can use a free utility called Amphetamine or Caffeinate to prevent sleep when the lid closes.
- On Windows, the setting is in Power Settings under "Choose what closing the lid does" — look for the plugged-in option, not the battery option.
- If your monitor goes black but the laptop is still running, check that your external monitor is set as the primary display in your display settings.
- Some laptops have a BIOS setting that also controls lid behavior — if the Windows setting does not work, restart and check your BIOS menu.
Windows: Change the lid close setting in Power Settings
Open the Windows Start menu and type "power settings" into the search box. Click Power settings when it appears. On the right side of the window, scroll down until you see Power and sleep, then click it.
Scroll down again and look for Additional power settings or Related settings. Click Choose what closing the lid does. You will see two rows: one for "Plugged in" and one for "On battery". Find the "Plugged in" row — this is the one that matters when your laptop is connected to power. In the dropdown menu next to "Plugged in", select Do nothing instead of "Sleep". Click Save changes at the bottom.
Now when you close your laptop lid while it is plugged in, the screen will stay on and your keyboard and mouse will keep working. If you want the same behavior when running on battery, change the "On battery" dropdown too, but this will drain your battery faster.
Mac: Use Amphetamine or Caffeinate to prevent sleep
Mac does not have a native setting to keep the monitor on when the lid closes. Instead, you can use a free utility called Amphetamine, which you can download from the Mac App Store. Search for "Amphetamine" in the App Store, install it, and open it.
Once Amphetamine is running, click the coffee cup icon in your menu bar at the top right of the screen. Select Keep awake or Caffeinate — the exact wording depends on your version. This tells your Mac to stay awake even when the lid is closed. When you want to allow sleep again, click the icon and turn it off.
Amphetamine will keep your Mac and monitor running indefinitely until you disable it. If you want to set a time limit — for example, keep awake for one hour — click the icon and select a duration from the menu. This is useful if you want to close the lid temporarily but do not want to forget to turn the setting back off.
Check that your external monitor is set as the primary display
If you have changed the lid setting but your monitor still goes black when you close the lid, the problem may be that your laptop screen is still set as the primary display. When the lid closes, the laptop screen turns off, and if it is primary, the whole display system can shut down.
On Windows, right-click on your desktop and select Display settings. Look for the diagram showing your monitors. Click on the external monitor (the one that should stay on) and scroll down to find Multiple displays. Select Make this my main display. On Mac, go to System Settings > Displays, click on your external monitor, and check the box next to Optimize for external display if available.
Restart your computer if the setting does not stick
Occasionally the lid close setting reverts after a Windows update or a restart. If you have set it to "Do nothing" but the monitor still turns off, open Power Settings again and confirm the setting is still there. If it has changed back to "Sleep", set it to "Do nothing" again.
Some laptops also have a BIOS setting that controls what happens when the lid closes, and this can override the Windows setting. If changing Power Settings does not work, restart your computer and enter the BIOS menu — usually by pressing Delete, F2, or F12 during startup, depending on your laptop brand. Look for a setting called Lid Close Action or Close Lid and set it to Do Nothing or Suspend Disabled. Save and exit.
Disconnect the monitor before closing the lid if you need the laptop to sleep
If you have set your laptop to stay awake when the lid closes, but you sometimes want it to sleep, you have two options. The first is to go back to Power Settings and change the lid close setting back to "Sleep" before you close the lid. The second is to physically disconnect your external monitor before closing the lid — most laptops will then enter sleep mode as normal.
On Mac with Amphetamine running, simply click the menu bar icon and turn off "Keep awake" before closing the lid. This is faster than restarting or changing settings.
Frequently Asked Questions
Will keeping my laptop awake with the lid closed damage the battery?
No, as long as your laptop is plugged into power. The Windows setting only applies when plugged in, so the battery is not involved. If you use this on battery power, your battery will drain faster because the laptop is working instead of sleeping.
Can I set different behavior for different monitors?
No. The lid close setting applies to all external monitors at once. If you have two external monitors plugged in, both will stay on or both will turn off together.
Why does my monitor go black even though the laptop is still running?
The monitor itself may be entering sleep mode. Check your monitor's power button menu or settings to see if it has its own sleep timer. You can usually disable this in the monitor's on-screen menu. Also confirm your external monitor is set as the primary display in your system settings.
Does this work with docking stations?
Yes. The lid close setting applies whether you are using a docking station or plugging monitors directly into your laptop. The setting controls the laptop's behavior, not the monitor's.
What if I want the monitor on but the keyboard and trackpad off?
You cannot do this with the built-in settings. The lid close setting controls the entire laptop's sleep state. If you want to disable just the keyboard and trackpad, you would need to unplug them or use third-party software to disable them individually.