![]() ![]() That sums up how to use the Caffeinate command on your Mac. “-m” prevents disks from spinning while your Mac is idle., press Enter, and your Mac will stay awake for as long as you leave the Terminal running. “-d” prevents your display from going to sleep, To open the Terminal, you can either open the Applications > Utilities folder and double-click it from there, or invoke Spotlight with Command+Space and search for it.You can also end the command with -s, -d, or -m instead: Adding “ -i” to the end of the command prevents your Mac from idle sleeping. The caffeinate command also lets you specify which parts of your Mac stay awake. To attach the Caffeinate command to an already-running Terminal command, just add the running command to the end of the Caffeinate command within Terminal. ![]() Replace 4000 with the amount of time in seconds that you want your Mac to stay awake. It will look something like this: caffeinate -t 4000 To add a timer to the Caffeinate command, just add how much time (in seconds) you’d like your Mac to be awake for to the end of a command. ![]() This means that applications have to tell the OS when they don't want it to sleep because they are, say, working on a long task that doesn't require user input. There are two other ways to run the Caffeinate command as well: timed or until the end of an already-running Terminal command. 5 Answers Sorted by: 21 In OS X 10.8 Apple introduced an 'aggressive system sleep' to aid laptop power consumption and battery life. If you run the command this way, your Mac will stay awake until you close the Terminal window-this way, you don’t need to remember to re-enter a command to make your Mac return to its normal sleeping habits. Using Terminal To Prevent Your Mac From Sleepingįirst, launch the Terminal app (in the Utilities folder) and type in caffeinate Sure, there are third-party apps that can do this for you, but what if there was a quick and easy Terminal command that would prevent your Mac from sleeping instead? Good news: There is. Normally, this requires you to change your Mac’s sleep settings within System Preferences, and although this is easy enough to do, it can be tedious if you have to do said task multiple times throughout the day. Sometimes you need to run tasks that require your Mac to stay awake for long periods of time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |