Posted on 10-21-2021 09:30 AM
Hello all,
I have gotten Notify and connect to work with my deployments. However user's screen are turning off when Notify is running.
1. Is the computer sleeping or is the screen just turning off?
2. If it is sleeping I want to make config profile to turn off sleep that will push initially, but removed via smartgroup after Notify has finished. What would you suggest for the smartgroup criteria?
Solved! Go to Solution.
Posted on 11-23-2021 10:47 AM
We have had this issue as well. We added caffeinate to the notify script to keep the computer from going to sleep during notify.
/usr/bin/caffeinate -discu -t 3600&
This will keep the computer from going to sleep for an hour. The 3600 is in seconds so you can adjust if you don't want it to be for an hour or want it longer. The & tells it to run in the background which if you don't do that it will break the notify script.
Posted on 11-23-2021 10:47 AM
We have had this issue as well. We added caffeinate to the notify script to keep the computer from going to sleep during notify.
/usr/bin/caffeinate -discu -t 3600&
This will keep the computer from going to sleep for an hour. The 3600 is in seconds so you can adjust if you don't want it to be for an hour or want it longer. The & tells it to run in the background which if you don't do that it will break the notify script.
11-23-2021 11:02 AM - edited 11-23-2021 11:07 AM
This is perfect!
12-27-2022 08:49 AM - edited 12-27-2022 08:52 AM
Thanks @cory_barnett ! However i am getting errors and had to remove the "c" argument from your command and adjusted it to the following.
/usr/bin/caffeinate -disu -t 3600&