It isn't clear to me why this worked previously. I suppose calling IOPMAssertionCreate with kIOPMAssertionTypeNoDisplaySleep would cause it to wake even when already asleep, but it's possible this is no longer true in Big Sur. Declaring a user activity will wake the screen reliably, but this section probably needs to be cleaned up in the future...
Fixes #59
It isn't clear to me why this worked previously. I suppose calling
IOPMAssertionCreate
withkIOPMAssertionTypeNoDisplaySleep
would cause it to wake even when already asleep, but it's possible this is no longer true in Big Sur. Declaring a user activity will wake the screen reliably, but this section probably needs to be cleaned up in the future...