10-07-2022 05:24 AM - edited 10-07-2022 05:28 AM
Hi All
We currently have the wrong power setting in our labs. I want the machines to always be on which I think I have working with a config profile.
However our machines are set lock at 20 minutes. This now doesn't happen as the machine never sleeps.
Can two exist together.
Any thoughts welcome.
Posted on 10-08-2022 02:08 AM
Just to add to this, have discovered the machine does lock eventually if left ideal. Seems to ignore the 20 minutes lock policy though
Posted on 10-10-2022 01:02 AM
I use pmset in a script to get what I want
https://ss64.com/osx/pmset.html
Will show you all the settings available.
Although a confi profile should be able to give you all of the same functionality.
Posted on 11-21-2022 10:55 AM
Are you able to share what you are using.
Are using this in shared labs?
Posted on 11-22-2022 12:21 AM
# Set display and system sleep times
/usr/sbin/systemsetup -setcomputersleep Never
/usr/sbin/systemsetup -setdisplaysleep 30
/usr/sbin/systemsetup -setharddisksleep Never
# Start and shutdown
# Turn it off and back on again, to remove anything left in there
pmset repeat cancel
sleep 5
pmset repeat shutdown MTWRFS 21:00:00 wakeorpoweron MTWRFS 08:00:00
pmset -a darkwakes 0 womp 1 autorestart 1 sleep 0 disksleep 0 hibernatemode 0 displaysleep 30 powernap 0
/usr/sbin/systemsetup -setwakeonnetworkaccess on
/usr/sbin/systemsetup -setrestartpowerfailure on
/usr/sbin/systemsetup -setallowpowerbuttontosleepcomputer off
Posted on 11-22-2022 12:31 AM
thanks i assume this would work on both intel and Apple silcon.
Posted on 11-22-2022 01:11 AM
Yes I have this running on M1 and Intel