22 C
Texas
Thursday, May 6, 2021
Home Make IT Modern How to force your Mac to stay awake

How to force your Mac to stay awake



.css-13r0zz9-Outer{overflow:auto;}.css-13r0zz9-Outer > *{margin-bottom:20px;margin-top:20px;}.css-13r0zz9-Outer > H2{margin-top:60px;}.css-13r0zz9-Outer > H3{margin-top:40px;}

.css-1pndmrk-P{font-weight:normal;font-size:16px;line-height:175%;color:#666666;}@media (min-width:660px){.css-1pndmrk-P{font-size:19px;}}

Your Mac goes to sleep after a few idle minutes, which is a good thing—your battery wouldn't last very long otherwise. Every once in a while, though, that's not what you want. 

I ran into this once during a brainstorming session a few years ago. My coworker and I were looking at a document on their MacBook, which was connected to a TV. The Mac kept falling asleep, and my coworker was annoyed about having to get up and move the mouse every now and then. 

I walked over to the Mac, opened a window, typed one word, and the problem was solved. Am I a wizard? Yes, but that's not how I did this. I just know a tip you don't—until now. 

.css-1coel4m-H2{font-weight:600;font-size:28px;line-height:175%;color:#000000;}

Amaze your friends with this one weird trick 

What I did wasn't complicated. First I opened the Terminal. You can find it in Applications > Utilities, but I find it fastest to press command+Space and type "Terminal." Here's what the Terminal looks like:

.css-1l8ttdo-Outer{display:grid;}

.css-bie5wy-Image{border:1px solid #E6E6E6;border-radius:5px;height:auto;width:100%;}.css-vx67s7-RichImageComponentStyled-Image{border-radius:5px;object-fit:cover;width:100%;height:100%;border:1px solid #E6E6E6;border-radius:5px;height:auto;width:100%;}.css-5fnq2n-MaxWidthImage-RichImageComponentStyled-Image{border-radius:5px;object-fit:cover;width:100%;height:100%;border:1px solid #E6E6E6;border-radius:5px;height:auto;width:100%;}The Terminal on Mac.css-1ovxbtu-Caption{color:#666666;line-height:130%;margin-top:10px;}.css-1ovxbtu-Caption > small{font-size:11px;}

This might look scary, but don't worry—it's just a place you can tell the computer to do stuff by typing words. Think of it as the 1970s Siri. 

In this case, we're going to type "caffeinate" and hit return

Typing caffeinate into the Terminal on Mac

That's it. The Mac will now stay awake. You can end this by pressing control+C with the Terminal window open, or by closing the Terminal window. 

There are other ways you can do the same thing. A free app called .css-1f4w78g-CustomA{color:#136bf5;-webkit-text-decoration:none;text-decoration:none;}.css-1f4w78g-CustomA:hover,.css-1f4w78g-CustomA:focus,.css-1f4w78g-CustomA:focus-within{color:#2655bd;cursor:pointer;}.css-1f4w78g-CustomA:hover > span,.css-1f4w78g-CustomA:focus > span,.css-1f4w78g-CustomA:focus-within > span{color:#2655bd;}Amphetamine can do this from the menu bar, along with some other tricks. And you can also go into Battery (Big Sur) or Energy Saver (older versions) in System Preferences and tell your Mac not to go to sleep there.

But neither of those approaches is great for temporarily preventing sleep on a Mac that's not yours. Changing the settings means someone has to remember to change them back, which is annoying at best. Installing software for a one-time thing can feel like overkill (and, depending on the situation, might not be possible without an admin password). 

The Terminal command caffeinate works on every Mac, is instant, and is easy to stop. And you don't even have to remember how to spell the word: just type "caf" and hit tab. The Mac will complete the word for you. 

It's effective, and it makes you look way cooler than you are. Try it sometime. 

.css-1ndi9z6-Outer{background-color:#FAFAFA;padding:15px;}@media (min-width:660px){.css-1ndi9z6-Outer{padding:20px;}}

.css-1enumbf-CalloutP{font-size:14px;font-weight:normal;line-height:175%;color:#666666;}@media (min-width:660px){.css-1enumbf-CalloutP{font-size:16px;}}

Related reading:

.css-npawn4-UL{list-style:disc;margin-left:10px;padding-left:10px;}



Source link

gotmix
Gotmix is a one-stop destination for sports, entertainment and all the overlapping content in between. Get your membership today!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Recent Comments

StylemixThemes on Hoddie
Coen Jacobs on Trucker Hat
Cobus Bester on Beanie