Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternatives to pmset #1

Open
mbenoukaiss opened this issue Nov 27, 2022 · 0 comments
Open

Alternatives to pmset #1

mbenoukaiss opened this issue Nov 27, 2022 · 0 comments

Comments

@mbenoukaiss
Copy link
Owner

mbenoukaiss commented Nov 27, 2022

There seemed to be kIOPMAssertionTypePreventSystemSleepin IOKit.pwr_mgtbut it does not seem to work and the comment above the variable declaration in source code says "Deprecated in 10.9. This assertion is not supported in any OS X releases.".

The only solution I found is pmsetbut it is not ideal since this utility requires root privileges to be ran. pmset is currently necessary to :

  • Disable and enable sleep
  • Check if any app has made an assertion to prevent idle sleep
  • Put the computer to sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant