PLEX server should keep Mac awake after wake-on-lan

@bg3 Thanks a lot for this. I read your posts, and I think you might be right.

As you point out, it looks like Plex is currently using assertion kIOPMAssertionTypePreventUserIdleSystemSleep, which doesn’t seem to be having the desired effect of preventing sleep while using Plex.

You suggested that the Plex devs should use kIOPMAssertionTypePreventSystemSleep instead, which sounds like a good idea. There’s also kIOPMAssertionTypeNoIdleSleep, which might also work.

It’s great that you’ve done some investigating! Hopefully it’ll help the devs to do a proper fix.