Apr 02, 2019 After your Mac notebook's desktop appears on the external display, close your computer's lid. You might have to press a key or click your mouse to wake the external display. If your external display or projector doesn't turn on after you connect it to your Mac, connect your display while your Mac is asleep or off, then wake or turn on your Mac. By default, OS X automatically sends your machine into sleep mode as soon as you close the lid. However, a third-party app can help you prevent your Mac from dong this. InsomniaX lets you keep your MacBook awake even when the lid is closed so that you can continue to listen to music or whatever else you were doing on it.
In case you feel that your Mac is going too quickly into Sleep Mode, then you can stop Mac from automatically sleeping by either increasing the sleep timer on your Mac or by configuring the Mac to never go into sleep mode.
Stop Mac From Going into Sleep Mode
By default, all Mac computers automatically go into sleep mode after a certain period of inactivity. This feature on Mac is designed to save power and also to prevent unauthorized access, while you are away from your Mac.
Usually the period of inactivity after which the Mac automatically goes into sleep mode is 2 minutes while on battery and 10 minutes when the Mac is plugged into a direct power supply source.
The Power Saving Auto-sleep feature is turned OFF while you are watching movies or videos on your Mac and not while you are reading or going through an interesting article on a website.
This can get very annoying, especially when you are in the middle of reading something and the display on your Mac turns off and goes into Sleep Mode.
Stop Mac From Automatically Sleeping
Keep Mac On When Closed
Follow the steps below to stop Mac from automatically sleeping, whenever it is left unattended.
App To Keep Mac Awake When Closed
1. Click on the Apple Icon from the top menu bar on your Mac and then click on System Preferences option in the drop-down menu.
2. On the System Preferences screen, click on Energy Saver.
3. On the Energy Saver Screen, click on the Power Adapter Tab and then Move the slider beside “Turn Display off After” all the way to the right to Never Position (See image below).
4. Next, click on the Battery tab and move the slider next to “Turn display off after” to Never position (See image below)
Note: Instead of choosing “Never” and not allowing your Mac to go to sleep, it is better to make your Mac stay awake for a longer duration of time by moving the slider to 15 or 30 minutes.
This way you can prevent your Mac from draining its battery, in case you happen to leave your Mac unattended for a longer duration.