Jump to content
Roland Rick

Sleep Prevention not activated

Recommended Posts

Hi Affinity Team

On long duration tasks like Focus Merging - better: on any task requiring more than 30 seconds to work on it - Affinity Photo should activate Sleep Prevention. But it does not. This "pmset -g" is made during a 120 images Focus Merging and the "Affinity Photo" process is missing in the "sleep" line. It should be listed within the brackets.

$ pmset -g
System-wide power settings:
Currently in use:
 standby              1
 Sleep On Power Button 1
 womp                 1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             1
 gpuswitch            2
 autorestart          0
 networkoversleep     0
 disksleep            10
 sleep                5 (sleep prevented by sharingd, backupd)
 autopoweroffdelay    28800
 hibernatemode        0
 autopoweroff         0
 ttyskeepawake        1
 displaysleep         5
 tcpkeepalive         1
 standbydelay         10800

My current workaround is to estimate how long this will take, multiply this by 2 and prevent Mac going to sleep by "caffeinate" (the t must be followed by a value representing seconds)

$ caffeinate -it 7200

$ pmset -g
System-wide power settings:
Currently in use:
 standby              1
 Sleep On Power Button 1
 womp                 1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             1
 gpuswitch            2
 autorestart          0
 networkoversleep     0
 disksleep            10
 sleep                5 (sleep prevented by sharingd, caffeinate)
 autopoweroffdelay    28800
 hibernatemode        0
 autopoweroff         0
 ttyskeepawake        1
 displaysleep         5
 tcpkeepalive         1
 standbydelay         10800

 


Roland Rick

Roland Rick Photography
Pipobike Mountainbike Guide and Driving Instructor

iMac 27 5K Retina (Late 2013), MBP 15" Retina (Something 2013), MBP13" Retina (Early 2015)

Share this post


Link to post
Share on other sites

Hey Roland Rick,

Well, it's definitely going to sleep. I can't tell if it stops doing what it is supposed to be doing though. Are you experiencing any adverse effects due to the Mac going to sleep? I'll pass this feedback to development. 

Share this post


Link to post
Share on other sites
On 6/5/2018 at 9:51 AM, Chris B said:

Hey Roland Rick,

Well, it's definitely going to sleep. I can't tell if it stops doing what it is supposed to be doing though. Are you experiencing any adverse effects due to the Mac going to sleep? I'll pass this feedback to development. 

Hi Chris, sorry the delay in reply. There must be an API function for macOS to do so. Just to compare and for your convenience: some browser use it on uploading, things some don't. Funny to mention, Safari does not prevent Mac going to sleep while uploading to e.g. Google Drive, Chrome does. Honi soit qui mal y pense… 9_9


Roland Rick

Roland Rick Photography
Pipobike Mountainbike Guide and Driving Instructor

iMac 27 5K Retina (Late 2013), MBP 15" Retina (Something 2013), MBP13" Retina (Early 2015)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×