Page 1 of 1

How to ALLOW screensaver and other power management on OS X

Posted: Thu Nov 03, 2016 4:19 pm
by jeffmikels
I'm using LOVE2D to write a very small media playing app with a very simple GUI.

However, since it is not a game, I don't want it to disable the screensaver or the other power management features of my computer. I'm running Mac OS X.

Is there a way to tell my app NOT to block the screensaver and to allow the computer to suspend/sleep as normal?

Re: How to ALLOW screensaver and other power management on OS X

Posted: Thu Nov 03, 2016 4:26 pm
by raidho36
See if love.window.setDisplaySleepEnabled is what you're looking for.

Re: How to ALLOW screensaver and other power management on OS X

Posted: Thu Nov 03, 2016 8:04 pm
by slime
Indeed, that function will do what you want.

Re: How to ALLOW screensaver and other power management on OS X

Posted: Thu Jan 12, 2017 11:11 pm
by jeffmikels
Thanks!