Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

'Caffeinate' command not working in macOS mojave...

The Terminal command 'caffeinate' isn't working in macOS mojave. I've tried prefixing it with 'sudo' but that doesn't work either. I've also read online that the issue is perhaps to do with security/privacy measures in place by macOS.


Also, the only reason why I'm trying to use this command is that the Energy Saver settings in System Preferences aren't keeping the computer from sleeping/logging out. So if someone could offer a suggestion/solution that uses System Preferences to solve the issue, then I wouldn't even need to use the 'caffeinate' command.


More info: in Energy Saver, I have Display Sleep set to 2hrs and Computer Sleep set to 2.5hrs but the computer consistently goes to sleep after about 15-20mins. I have unchecked "Put hard disks to sleep when possible," and "Wake up for network access." However, I have reason to believe that the latter isn't working either as the computer always wakes up whenever I turn on my bluetooth speaker, which is annoying.


Does anyone have any suggestions to fix any of these issues?

Mac Pro, macOS 10.14

Posted on Aug 2, 2022 5:41 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 3, 2022 7:24 PM

I’ve tried that but the computer still goes to sleep…

Similar questions

5 replies

'Caffeinate' command not working in macOS mojave...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.