If you are new to Mac OS then you may not aware from Caffeine Mac App and How To Keep Laptop From Sleeping. Using an App called Caffeine For Windows 10, you can easily Prevent Your Mac from Sleeping using Caffeine App For Mac.
As easy to use Caffeine Mac Terminal. You may face some issues because it is not updated in years so it has some issues with OS X Yosemite and El Capitan. Caffeine was created by William Gustafson, supports high-resolution Retina displays, looks good in Yosemite’s dark mode.
Most Mac users know that they can set their display and system sleep settings in the OS X System Preferences (System Preferences > Energy Saver). It is a universal setting. What if you want to stop your Mac from sleeping only on certain occasions? Temporarily Prevent Your Mac from Sleeping- You could head to System Preferences and change the sleep timer manually, but that can be a hassle. Instead, you should use a totally free app called Caffeine, which enables your Mac sleep as planned a lot of the period, but forces it to remain awake when you want it to.
Temporarily Prevent Your Mac from Sleeping
You’ll find Caffeine being a download free from your Mac App-Store, and it’s been with the US for so-long that it performs on all types of OSX dating back to Snow Leopard. Once fitted, Caffeine spots itself within your Menu Bar as a tiny coffee pot symbol. Simply click it once and your Mac and monitor will always be alert forever, irrespective of your chosen sleeping adjustments in System Preferences.
Temporarily Prevent Your Mac from Sleeping last option is particularly crucial, because it may prevent your Mac from keeping awake too long in the event you forget to deactivate Caffeine before departing for that time. Automagically, Coffee will continue to work because it was originally intended. That is, it’ll maintain your Mac conscious before you manually deactivate it. But when you realize how long you would like your Mac to keep awake, you are able to change the standard length, that will instantly deactivate Caffeine, and allow your Mac to rest again when the specified period has passed.
1: pmset- Caffeine Mac Alternative
If you don’t want to install another app, you can mimic the effects of Caffeine by using a command line utility called pmset. Launch the Terminal and type:
This will prevent your Mac from sleeping indefinitely until pmset is no longer running. You can use to set sleep and wake times.
2: Screen Saver Hot Corners
Another option is to set a screen saver Hot Corner from > System Preferences > Screen Savers > Hot Corners. Set it to Disable Screen Saver and anytime you slide the mouse into that corner.