johndbritton / teleport

Virtual KVM for macOS
GNU General Public License v2.0
790 stars 132 forks source link

wake up screen properly when transitioning to a remote client #65

Closed reaperhulk closed 3 years ago

reaperhulk commented 3 years ago

Fixes #59

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...

reaperhulk commented 3 years ago

66 probably replaces this, but I'll leave it open in case there's a desire to do this separately for some reason.

johndbritton commented 3 years ago

Closing in favor of #66