To stop a laptop sleeping when you close the lid, change the lid-close action in your power settings so it does nothing (or only turns off the screen) while the machine stays awake. On Windows this lives under Control Panel > Power Options > Choose what closing the lid does; on macOS it needs a small adjustment because closing the lid always sleeps the Mac unless it is connected to an external display and power. The part most people miss is that the setting usually splits into two behaviors: one for when the laptop is plugged in and another for when it runs on battery. Changing only the plugged-in option leaves you with a laptop that still sleeps the moment you unplug it.
What Happens When You Close the Lid
By default, a closed lid tells the laptop to go to sleep. Sleep keeps your open programs and files in memory but cuts most activity, so the machine wakes quickly when you open it again. That is good for battery life and heat, and it is why manufacturers ship it switched on.
The lid setting is separate from the screen timeout. You can keep the screen on for 10 minutes and still have the lid trigger sleep in under a second, because the lid is a physical switch, not a timer. That distinction matters if you have been changing screen and sleep timers and wondering why nothing changed when you shut the lid.
Decide what you actually want the machine to do before you change anything:
- Do nothing: the laptop keeps working, fans may run, and the lid traps heat. Best for short periods and for laptops on a stand or in a ventilated spot.
- Turn off the display only: saves some power, keeps downloads, renders and remote sessions alive.
- Sleep: the default; fine when you are walking away.
- Hibernate or shut down: saves the session to disk and uses no power, but pauses everything.
The misconception worth clearing up: closing the lid does not have to mean sleep, but keeping a closed laptop awake is not free. Airflow on most models is drawn through the keyboard and exits near the hinge, so a closed lid can push internal temperatures up by several degrees. If a longer job must run, prop the laptop so the base is clear or leave the lid open a finger's width if your model allows it.
Changing the Lid Setting on Windows
Menu labels vary a little by version, but the classic path has stayed stable for years.
- Open the Start menu and type Control Panel, then open it.
- Go to Hardware and Sound, then Power Options.
- On the left, choose Choose what closing the lid does.
- Find the row labelled When I close the lid. You will see two columns: On battery and Plugged in.
- Set both columns to Do nothing or Turn off the display.
- Click Save changes.
If the lid row is greyed out or missing, the machine may be managed by an organisation, or your device maker's own power utility may have taken over the setting. Check the maker's power app first, then ask whoever administers the device.
What to set alongside the lid action
Turning off lid sleep on its own is not enough. The laptop may still fall asleep on its own timer. In the same Power Options screen, open Change plan settings and set Put the computer to sleep to Never for the plugged-in column. Leave the battery column shorter, around 15 to 30 minutes, so an unplugged laptop still protects itself. A reasonable working setup is: lid does nothing when plugged in, sleep after 20 minutes on battery, and the display off after 10 minutes either way.
Keeping a MacBook Awake With the Lid Closed
macOS behaves differently. Closing the lid puts the Mac to sleep by design, and there is no simple lid switch in System Settings. Two conditions let a Mac stay awake with the lid shut: it must be connected to power, and it must be connected to an external display, keyboard or mouse. With both attached, the Mac keeps running and you can use the external screen with the lid closed.
A second approach is to stop the Mac from sleeping while it is plugged in at all. Open System Settings and look under Battery (or Energy Saver on some versions) for the option to prevent automatic sleep when the display is off. This helps with long downloads and backups. It does not override the lid sensor on its own, so pair it with an external display if you need true closed-lid use.
On both platforms, unplugging can undo your work. A laptop that was told to stay awake on power will usually still obey the battery profile, so test by unplugging with the lid shut and watching whether the screen or a background task keeps going.
Making Sure It Actually Stays Awake
After changing the setting, confirm it with something visible. Start a long file copy or a music track and close the lid for five minutes. If the copy stalls or the track stops, sleep still won.
- Check for a second power profile. Some laptops have a quiet or battery-saver mode that silently re-enables lid sleep.
- Look for maker utilities. A vendor power app can hold its own lid rule that overrides the system one.
- Watch the power source. Confirm which profile you edited, then repeat the edit for the other one.
- Mind the heat. A closed laptop running a heavy task can get noticeably warm. Keep it on a hard, flat surface, never on a bed or cushion.
If the laptop still sleeps, open the power settings once more and re-read the lid row rather than guessing. A single saved change is usually the whole fix.
When You Should Let the Lid Sleep
Leaving a closed laptop awake for hours is rarely worth it. It drains the battery, collects dust through the vents, and traps warm air against the panel. Use the setting for the cases it suits: a large download, a render, a backup, a remote session, or a machine driving an external monitor.
For a laptop in a bag, let it sleep. A closed, awake laptop inside a bag has no airflow at all, and heat has nowhere to go. If you need the job to finish on the move, hibernate instead, or plan to leave the lid open somewhere ventilated.
Battery care is the other trade-off. A machine that never sleeps on battery will sit at a warm, moderate charge for hours, which is harder on the cells than short naps. Set the battery profile to sleep after 15 to 30 minutes and keep Do nothing for the plugged-in side only, unless you specifically need the opposite.
Questions People Ask About Closed-Lid Use
Does closing the lid damage the screen?
Not by itself. Damage usually comes from pressure on the lid in a bag or from heat building up while the machine runs closed on a soft surface. Use a hard case and a flat surface and the risk stays low.
Can I keep it awake with the lid shut and no external monitor?
On Windows, yes, once the lid action is set to Do nothing. On a Mac, the lid sensor takes priority, so plan on an external display and power, or leave the lid open.
Why does my laptop still sleep after I changed the setting?
The most common cause is that only one column was edited, or that a maker's power app is enforcing its own rule. Check both battery and plugged-in columns, then the vendor utility.
Will a closed, awake laptop get too hot?
It can run warmer because the keyboard vents are covered. Watch for loud fans or a hot base and give it a break if either appears. If a laptop shuts down or feels uncomfortably hot during a long job, stop the job and let it cool.