ClassicOldSong / Apollo

Sunshine fork
GNU General Public License v3.0
504 stars 13 forks source link

App/command that kills virtual Display and put computer to sleep #100

Closed Anatharias closed 2 weeks ago

Anatharias commented 2 weeks ago

Hello, Apollo is so much better than Sunshine, given the virtual display feature, it works flawlessly on my MacBook Pro 14 at 3024x1964@120Hz HDR resolution! I set the Virtual Display as being sole display win Windows, and I no longer need to deal with scripts that change my main display resolution and display scaling

Now, here's my issue: When putting the PC to sleep, while in control, the virtual display obviously doesn't get killed. The next time I wake the PC up, the main display is remaining off because I've set the virtual display adapter as the only display.

What I would like to, is creating a new app, which only purpose would be to kill the virtual display and right after (the undo I assume), send the sleep command, but I fail to find the virtual display commands to do so... So once I'd be done playing, I could just launch the other app from Moonlight Apps drawer, and it would execute my commands.

Thanks for your help with this. Cheers !

ClassicOldSong commented 2 weeks ago

You can create an empty app, check Always use Virtual Display, then in undo commands put the computer to sleep.

When you exit the app, the virtual display will disconnect automatically, and your computer will also go to sleep automatically.

Anatharias commented 2 weeks ago

Awesome, works as I wanted it to ! Thanks