SimpleInstaBot icon indicating copy to clipboard operation
SimpleInstaBot copied to clipboard

App pauses when Display goes to sleep (mac)

Open icpgithub opened this issue 4 years ago • 2 comments

Hi,

The app pauses when the mac display goes to sleep, but the system hasn't gone to sleep (it's disabled), only the display is off. As soon as I move the mouse and the display is on again, the app continues.

Is that the expected behavior?

icpgithub avatar Sep 29 '20 12:09 icpgithub

I'm not 100% sure what's causing this.

The app already runs powerSaveBlocker.start('prevent-app-suspension') https://github.com/mifi/SimpleInstaBot/blob/a40190db7a08d1a766a5270414d759fe88f49b9f/src/App.jsx#L289

Maybe we need to change it to prevent-display-sleep. https://www.electronjs.org/docs/api/power-save-blocker#powersaveblockerstarttype

Or maybe we need to run caffeinate command from SimpleInstaBot.

mifi avatar Oct 05 '20 10:10 mifi

I will release a new version with prevent-display-sleep now. see if it helps.

mifi avatar Nov 08 '21 08:11 mifi