Posted on 08-23-2022 09:01 AM
08-23-2022 11:22 AM - edited 08-23-2022 11:24 AM
@tgazelle The following command should prevent sleep while on battery power:
/usr/bin/pmset -b sleep 0
If you're running that from a jamf policy the a 'sudo ' prefix isn't necessary
Posted on 08-24-2022 12:16 AM
@sdagley thanks for your reply. When I launch this command in my terminal nothing happens and the checkbox remains unchecked.
Posted on 08-24-2022 05:39 AM
@tgazelle Did you include sudo before the command when you ran it in Terminal? And was System Preferences closed when you ran it? If the Battery panel is open the setting isn't going to update visually, and when you close the Battery panel it may overwrite the setting.
Posted on 08-25-2022 05:07 AM
@sdagley yes sudo is include before the command in my Terminal. I closed all the windows but settings battery settings not changing.