Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.9: Disable App Nap System Wide' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.9: Disable App Nap System Wide
Authored by: ambrose on May 13, '14 04:46:27PM
The Apple Developer Documentation on App Nap explains it this way:
An app is considered to be a candidate for sleep if:
  • It is not visible—if all of an app’s windows are either hidden by other windows or minimized in a hidden dock, and the app is not in the foreground
  • It is not audible
  • It has not explicitly disabled automatic termination
  • It has not taken any power management assertions

  • When all of these conditions are met [...] the app is placed on a scheduling queue that rarely gets actual time on the CPU. The app wakes up automatically when the user brings the app to the foreground or when the app receives a Mach message or Apple event.
    The documentation goes on to describe the coding the developer needs to employ to opt out of having his application be subject to App Nap's invocation, adding
    Note: If you experience problems with App Nap, you can temporarily disable it for a particular process by typing:
    defaults write app.domain.name NSAppSleepDisabled -bool YES

    That's arguably a superior method to disabling App Nap system-wide, as it seems just as resistant to the "disappearing checkbox" syndrome. (By "temporarily," the documentation means the change does not survive a restart.)

    [ Reply to This | # ]