3 ms·
Indeed, many applications I would expect to prevent sleeping (some audio playback ones, games, etc.) don't implement this. I assume it's a case of Apple's APIs
by vallode 2y ago
Indeed, many applications I would expect to prevent sleeping (some audio playback ones, games, etc.) don't implement this. I assume it's a case of Apple's APIs changing over the years and not everyone catching up/caring. At one point I had downloaded Amphetamine[^1] but it is much nicer to just use the terminal here.
[^1]: https://apps.apple.com/us/app/amphetamine/id937984704 https://apps.apple.com/us/app/amphetamine/id937984704
- m1keil 2y agoAlso https://github.com/newmarcel/KeepingYouAwake https://github.com/newmarcel/KeepingYouAwake
- galad87 2y agoThe "newest" and still supported low level API is almost 14 years old: https://developer.apple.com/documentation/iokit/kiopmassertiontypepreventuseridlesystemsleep/ https://developer.apple.com/documentation/iokit/kiopmasserti... https://developer.apple.com/documentation/iokit/kiopmassertiontypepreventuseridledisplaysleep https://developer.apple.com/documentation/iokit/kiopmasserti...