DiscoverMacworldHere’s how to stop your MacBook sleeping when the lid is closed
Here’s how to stop your MacBook sleeping when the lid is closed

Here’s how to stop your MacBook sleeping when the lid is closed

Update: 2025-01-25
Share

Description

Macworld




<body>




There are a lot of different reasons why you might want to use your MacBook with the lid closed. You might want to plug into an external display and move your MacBook out of the way to free up space on your desk (although you could always use both screens). Alternatively, you might want to download a software update or play music from your Mac and have found that as soon as you close the lid the download or music will stop.





If you want to stop your Mac from sleeping when you close the lid then you’ll find out how to do that below including the MacBook closed lid settings you need.





One related problem you might come across if you are using your Mac with the lid closed is that when it comes to turning your Mac on it would seem that you have to open the lid to press the power switch… Luckily there is a workaround for that scenario that you might find useful. So we have also included advice about how to turn on your Mac without opening the lid below.





See also: Best stands for MacBook and Best MacBook docking stations.





How to use a MacBook with the lid closed





The good news is that using a MacBook with the lid closed is a lot simpler than it used to be if you are using a newer Mac and a newer version of the Mac operating system. In fact, if you are experiencing issues using your Mac with the lid closed then it is likely that you could address this by updating your Mac to a recent version of macOS, assuming your Mac supports it (see our macOS compatibility checker).





The crucial ingredient is an external monitor.






  1. Connect an external keyboard (can be wireless).




  2. Connect an external mouse (can be wireless).




  3. Connect an external monitor.




  4. If you are using a Bluetooth mouse and keyboard, make sure that Bluetooth is on and that the peripherals are paired with the Mac.




  5. After your Mac notebook’s Desktop appears on the external display, close the computer’s lid.




  6. Your external monitor may flash off for a moment but it will then show your Desktop (you may need to wake your Mac by pressing a key on the keyboard or moving the mouse).




  7. You may find that your MacBook needs to be plugged in via the power adapter for the screen to appear on the external monitor, but ours didn’t.





You can read more about using a second display with your Mac here.





But even with these settings, if you aren’t attached to an external monitor closing the lid will cause the Mac to sleep.





What if you don’t want to plug in an external display?




<figure data-wp-context='{"uploadedSrc":false,"figureClassNames":"wp-block-image size-full","figureStyles":null,"imgClassNames":"wp-image-1578105","imgStyles":null,"targetWidth":"none","targetHeight":"none","scaleAttr":false,"ariaLabel":"Enlarge image: mejores ofertas en monitores para Mac","alt":"mejores ofertas en monitores para Mac"}' data-wp-interactive="core/image" class="wp-block-image size-full wp-lightbox-container">mejores ofertas en monitores para Mac<button class="lightbox-trigger" type="button" aria-haspopup="dialog" aria-label="Enlarge image: mejores ofertas en monitores para Mac" data-wp-init="callbacks.initTriggerButton" data-wp-on-async--click="actions.showLightbox" data-wp-style--right="context.imageButtonRight" data-wp-style--top="context.imageButtonTop">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewbox="0 0 12 12">
<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z"></path>
</svg>
</button></figure>

Foundry





How to stop a MacBook from sleeping when the lid is closed





Suppose you don’t want your MacBook to sleep when you close the lid? Maybe it is busy downloading something and you don’t want it to stop, but you need to carry it somewhere. Or maybe you’ve left it downloading an update overnight or syncing your Time Machine backup, and you’d prefer not to see the backlit keyboard. In another scenario you might want to play music from the MacBook without having to have the lid open–something likely to appeal to a few DJs.





The problem is that your Mac will go to sleep when you close the lid if it’s not plugged in and connected to an external display.





Prior to changes that came with macOS Ventura there was an option to set your Mac never go to sleep in System Preferences (macOS Monterey or older).





In macOS Monterey and older






  1. Open System Preferences.




  2. Go to Battery (or Energy Saver).




  3. Select “Prevent your Mac from automatically sleeping when the display is off.”





In macOS Ventura and later





If you are running macOS Ventura or later you might be wondering where the energy saver and battery settings are that you need, and if it is still possible to set your Mac to sleep or wake at a particular time. We answer those questions below.






  1. Open Terminal




  2. Enter the following command:





sudo pmset -a disablesleep 1





That should stop your Mac sleeping. However, a better option may be to use a third-party app, such as Amphetamine or Caffeinated.





Amphetamine is a free download from the Mac App Store here. Amphetamine keeps your Mac awake by overriding the Energy Saver settings. We review Amphetamine here. Caffeinated is available on the Mac App Store here for$3.99/£3.99, this app also overrides the Energy Saver settings to keep your Mac awake, preventing your Mac from going to sleep.





How to play music with your Mac’s lid closed





You can use the free Amphetamine app to keep your Mac awake while the display is closed, here’s how:





Once installed on a Mac you will find a pill-shaped icon in the menu bar at the top of the screen. You can choose from options such as Start New Session While File is Downloading or While App is Running.





If you want to keep Music (or what app you are using)running with the lid closed, first, you need to have that app open. Then follow these steps:






  1. Click on the Amphetamine icon in the menu bar.




  2. Click on Quick Settings.




  3. In the Session Defaults section, deselect “Allow system sleep when display is closed.”




  4. Go back to the main menu and select While App is Running and pick Music or the app you are using. If your app is not open, it will not appear in the list. Only apps that are running appear.




  5. You will now be able to shut your Mac’s lid and continue listening to Music.




<figure data-wp-context='{"uploadedSrc":false,"figureClassNames":"wp-block-image size-full","figureStyles":null,"imgClassNames":"wp-image-2134879","imgStyles":null,"targetWidth":"none","targetHeight":"none","scaleAttr":false,"ariaLabel":"Enlarge image: Don
Comments 
In Channel
loading
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Here’s how to stop your MacBook sleeping when the lid is closed

Here’s how to stop your MacBook sleeping when the lid is closed