Skip to main content
Solved

JAMF Connect + Notify sleep setting

  • October 21, 2021
  • 3 replies
  • 13 views

Forum|alt.badge.img+3

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?

Best answer by cory_barnett

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.

3 replies

Forum|alt.badge.img+4
  • New Contributor
  • 1 reply
  • Answer
  • November 23, 2021

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.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 2 replies
  • November 23, 2021

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.


This is perfect!


Forum|alt.badge.img+8
  • Contributor
  • 54 replies
  • December 27, 2022

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.


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&