clapet icon indicating copy to clipboard operation
clapet copied to clipboard

Alternatives to `pmset`

Open mbenoukaiss opened this issue 1 year ago • 0 comments

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

mbenoukaiss avatar Nov 27 '22 21:11 mbenoukaiss