The Caffeine app for preventing sleep/screen lock is not working on macOS Mojave.
Did I miss a setting to FAQ on making it work with macOS 10.14?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
TLDR: Access to the permissions in Mac OSX Mojave have changed. You have two options:
While this question wasn't entirely clear on whether the issue was with the
caffeinate command built in to macOS or the Caffeine utility written by Tomas Franzén of Lighthead Software, the comments and other answers seem to imply the latter.
After encountering the issue myself, I reached out to Tomas and inquired about taking over the development of Caffeine. He graciously has provided the source code under an MIT license, and I've made a quick updated version available here that will prompt for the needed accessibility permissions when running on Mojave.
I will be bringing additional support for Mojave as well as some improvements in the near future, but wanted to put this here for others who come across this question like I did and would like to continue using Caffeine.
Caffeine is still working! However, Apple has upped its security and privacy model a bit and caffeine fell prey to that. What you have to do to get it working properly again is the following:
+button and select your Caffeine app to allow it to control your Mac
caffeinate remains in Mojave, and it is certainly in High Sierra and Mojave.
caffeinate is a command line utility; i.e. you invoke it from the terminal. If this is what you mean by "manual entry" then I'll guess you're not keen on doing things from the command line.
caffeinate is quite easy to use. It also has the advantage of being supported by Apple, doesn't require cluttering your system with additional apps that will require your time to maintain/upgrade. I could go on, but...
So that's my answer. I mostly just wanted to make it clear that the
caffeinate utility has not been deprecated by Apple.
caffeinate will NOT prevent an automatic logout. Check to make sure you have not selected that option;
caffeinate is powerless against a logout.
Hey there—I’m the creator of an alternative called Theine. Back in 2015 I’ve decided to create my own caffeine-like app because of the lack of support for retina displays.
It’s available on the Mac App Store and doesn’t require Accessibility (== admin) privileges at all.
Below will start
caffeinate -s supported by Apple as a macos launchctl daemon on computer startup.
; cat >~/ze.caffeinate.plist <<'EOF' <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>ze.caffeinate</string> <key>ProgramArguments</key> <array> <string>/usr/bin/caffeinate</string> <string>-s</string> </array> <key>KeepAlive</key> <true/> </dict> </plist> EOF ; sudo mv ~/ze.caffeinate.plist /Library/LaunchDaemons/ ; sudo launchctl load /Library/LaunchDaemons/ze.caffeinate.plist ... ; sudo launchctl list |grep caffeinate 4921 0 ze.caffeinate