Aerial icon indicating copy to clipboard operation
Aerial copied to clipboard

Aerial Inhibits Sleep

Open kolpanic opened this issue 11 years ago • 20 comments

I just set my system sleep time to 1 minute and activated the screen saver. It ran for 5 minutes without sleeping.

I had the same problem in a screen saver I built. It may be because AVPlayerView creates some power management assertions to inhiibit sleep when it starts playing. My solution was to use AVPlayerLayer instead.

kolpanic avatar Oct 27 '15 17:10 kolpanic

:+1: Happens to me too

jbeker avatar Oct 27 '15 18:10 jbeker

+1

fantattitude avatar Oct 28 '15 01:10 fantattitude

This happens also to me on 10.11.1

albertosottile avatar Oct 28 '15 13:10 albertosottile

+1 Mac OS X 10.11.1

devinbrown7 avatar Oct 28 '15 13:10 devinbrown7

Yup, no sleeping here either. I woke up this morning and found it had been on all night, and running kinda hot, too. Mid-2014 MBP. 10.11.1.

eyesee1 avatar Oct 28 '15 14:10 eyesee1

Same here on 10.11.1 with a Mid-2012 MacBook Air

pierrevdk avatar Oct 28 '15 14:10 pierrevdk

+1

sterpe avatar Oct 29 '15 17:10 sterpe

+1

briantully avatar Oct 29 '15 21:10 briantully

+1 (and it's not working anyway. ;) )

Caf avatar Oct 30 '15 00:10 Caf

+1

joshlewis avatar Oct 30 '15 05:10 joshlewis

I'm working on this issue. I found an undocumented function in AVKit called AVEnableUserIdleDisplaySleep but I am not able to call it because dlsym can't get a reference to it for some reason I can't figure out. It will take some work to implement a fix, but I'm on it.

JohnCoates avatar Oct 30 '15 10:10 JohnCoates

@JohnCoates As I mentioned, we had the same problem in our screen saver, and dug into the undocumented APIs for a solution. In the end, the easiest thing was to drop AVPlayerView and use an AVPlayerLayer.

kolpanic avatar Oct 30 '15 12:10 kolpanic

+1 for a fix. Great screensaver otherwise.

chrissanderson avatar Oct 30 '15 14:10 chrissanderson

+1

MihaxXx avatar Oct 30 '15 16:10 MihaxXx

Great screensaver . just waiting for the sleep fix

nipuns11 avatar Oct 30 '15 16:10 nipuns11

Hey guys, it looks like @JohnCoates is already working this bug. Can we stop +1-ing the thread? Some of us are subscribed to get notified when the bug is fixed

kevin1 avatar Oct 30 '15 17:10 kevin1

Awesome suggestion @kolpanic, sorry I just briefly glanced over the thread and missed your initial post. I've switched over to AVPlayerLayer. Anyone having this issue, it should be fixed in the latest beta release found here https://github.com/JohnCoates/Aerial/releases

JohnCoates avatar Oct 31 '15 12:10 JohnCoates

@JohnCoates Glad to help.

kolpanic avatar Oct 31 '15 13:10 kolpanic

works like a charm, thanks for the quick resolution!

bobbyo12 avatar Oct 31 '15 13:10 bobbyo12

I have beta 4 but still get the issue. Any suggestions?

tiagratim avatar Nov 03 '15 17:11 tiagratim