How To Force Your Mac To Stay Awake Indefinitely Via The Command Line

Menubar app Caffeine can keep your Mac from falling asleep for a set amount of time, but if you want to control sleep yourself, through the OS X Terminal, you can do so very easily with a simple command.

User Ricket on StackExchange shares this neat little command line tip. To keep your Mac awake, all you have to do is open Terminal on your Mac (Macintosh HD -> Applications -> Utilities -> Terminal) and enter the following command:

pmset noidle

When you’re ready to allow your machine to sleep again, you just need to press Control + C.

pmset noidle [Stack Exchange]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


3 responses to “How To Force Your Mac To Stay Awake Indefinitely Via The Command Line”

Leave a Reply