How to ALLOW screensaver and other power management on OS X

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
jeffmikels
Prole
Posts: 5
Joined: Thu Oct 15, 2015 9:26 pm

How to ALLOW screensaver and other power management on OS X

Post 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?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

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

Post by raidho36 »

See if love.window.setDisplaySleepEnabled is what you're looking for.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post by slime »

Indeed, that function will do what you want.
jeffmikels
Prole
Posts: 5
Joined: Thu Oct 15, 2015 9:26 pm

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

Post by jeffmikels »

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests