Closed zh2250635 closed 6 months ago
Maybe you could do something like this? Before stream initialization:
get-pnpdevice -class Display -FriendlyName 'IddSampleDriver Device HDR' | enable-pnpdevice
After the stream ends:
get-pnpdevice -class Display -FriendlyName 'IddSampleDriver Device HDR' | disable-pnpdevice
You can also set display configuration programatically (similar to Windows+P controls).
Not sure if you can use powershell commands with Sunshine scripts feature though, but I'll test it in the following days.
We have merged a script to enable/disable the driver: Script
I want to stream and play games through the Sunshine project, and I hope that the virtual screen is only activated when I am playing games.