←back to thread

2039 points Gadiguibou | 3 comments | | HN request time: 0.001s | source
Show context
maxfurman ◴[] No.36492219[source]
I remember Caffeine used to be a third-party program that would prevent your Mac from sleeping, same behavior as the `caffeinate` here. Were they acquired and incorporated into the OS?
replies(4): >>36492349 #>>36492366 #>>36492395 #>>36492806 #
1. alexdbird ◴[] No.36492366[source]
I believe that Caffeine was a fairly simple GUI wrapper for the existing caffeinate command
replies(2): >>36492609 #>>36500149 #
2. emodendroket ◴[] No.36492609[source]
Yes. There is a similar product called Amphetamine now.
3. krackers ◴[] No.36500149[source]
From what I recall, caffeine app predated the caffeinate command (which was only introduced in lion). Caffeine.app also disables sleep via a completely different method than caffeinate. The latter uses a IOPMAssertion which is the recommended way to do it because it is visible in `pmset -g assertions` whereas the former doesn't use that approach (I forgot how exactly it did it, there's like 4 different methods on osx to prevent sleep).