Gadget Bridge
HomeHow ToHow to stop MacBook from sleeping when its lid is closed

How to stop MacBook from sleeping when its lid is closed

Keep your MacBook active while its closed using these methods.

When you close the lid of your MacBook, it goes to sleep. While this is ideal for most users, some may want to keep their laptop in clamshell mode for various reasons. Some may want to play music without opening the lid or download a large file with the lid closed. Apple does not offer a way to go about this task. But there are ways to get around this roadblock. Here’s how you can stop your MacBook from sleeping when its lid is closed.

Read Also: Chromebook touchpad not working? Here are 8 fixes

Before you begin

You may be wondering why Apple doesn’t let you keep your MacBook active when you close its lid. This is largely due to three reasons.

  • Preserving the battery life
  • Keeping the battery health intact
  • Keeping the heating issues in check

If you want to circumvent this default behaviour, you will need to connect your MacBook to an external display. Once that’s done, closing the lid won’t put it to sleep as long as it is connected to its power adapter. MacBooks have an internal setting that allows them to stay active while they’re plugged into a charger. If you don’t have an external monitor on hand, you can use a special Terminal command to keep the laptop active in clamshell mode.

Use System Preferences

Apple's New MacBook Air (2025) with M4 chip, MacOS Sequoia with Apple Intelligence capabilities announced How to stop MacBook from sleeping when its lid is closed

  1. Click the Apple menu in the top left corner of the screen.
  2. Click on System Preferences.
  3. Select Lock Screen from the sidebar.
  4. Click the menu next to Turn display off on power adapter when inactive.
  5. Select Never.

Use Battery Settings

Top laptops of 2024 How to stop MacBook from sleeping when its lid is closed

- Advertisement -
  1. Go to Battery and select Power Adapter from the sidebar.
  2. Move the slider below ‘Turn display off after’ to Never.
  3. Uncheck the box next to Prevent computer from sleeping automatically when the display is off.

Don’t have an external monitor? Use this Terminal command

If you don’t have an external monitor to plug your MacBook into, you can still keep it awake after closing its lid. Launch the Terminal app and enter this command:

sudo pmset -a disablesleep 1

Frequently Asked Questions (FAQs)

Why does my MacBook go to sleep when I close its lid?

Your MacBook goes to sleep in clamshell mode to preserve its battery life and charge quickly (if it is plugged into a charger). 

Why does my MacBook get warm when I close its lid?

Your MacBook may sometimes install pending updates and sync data when it is in clamshell mode. Since this task requires power, it warms up a little.

Can I keep my MacBook with its lid closed?

Yes, you can keep your MacBook active in clamshell mode, but it requires connecting it to an external monitor and hooking it to a power adapter.

Can I keep my MacBook with its lid closed without connecting it to an external monitor?

If you want to keep your MacBook active in clamshell mode without connecting an external monitor, enter the following command in the Terminal app: sudo pmset -a disablesleep 1.

Is there a third-party app to keep my MacBook active at all times?

Yes, you can use third-party apps like Amphetamine and Caffeinated to keep your MacBook active in clamshell mode.

Read Also: Last-minute surprise? Airtel wants your next top-up to come with a love note

Final Thoughts

Keeping your MacBook awake in clamshell mode can drain its battery over a period of time. Make sure the laptop is connected to a power adapter to prevent it from shutting down. If you have any questions, let us know in the comments!

Support Us

We are a humble media site trying to survive! As you know we are not placing any article, even the feature stories behind any paywall or subscription model. Help us stay afloat, support with whatever you can!

Support us
- Advertisement -
Utkarsh Joshi
Utkarsh Joshihttps://www.gadgetbridge.com/
Utkarsh is a seasoned writer who seeks to simplify complex concepts and bring the latest in technology to a broader audience. You can catch his exhaustive 'How to' guides, deep-dive feature articles, cutting edge news stories, and comprehensive tech reviews on Gadgetbridge.com. Apart from dabbling in all things tech, Utkarsh also enjoys watching club football, adding to his TBR pile of books, and making Spotify playlists. Automobile enthusiasts and motorheads can also catch his articles on Motorbridge.com.
- Advertisement -

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -

Latest From Gadget Bridge

Arise Crossover Codes (February 2026)

Arise Crossover is one of the most popular Solo Leveling adaptations on Roblox right now. This game puts...
- Advertisement -

Latest Reviews

OnePlus Pad Go 2 Review: This midrange tablet delivers on almost every front

Back in December, OnePlus launched the new iteration of its Pad Go tablet. Priced at Rs 27,000, the...
- Advertisement -

Tech How To

Chromebook touchpad not working? Here are 8 fixes

Chromebooks are compact, efficient, and affordable, which makes them very popular among students. However, an issue with an...
- Advertisement -