snipem / moonlight_display_auto_switch

Automatically switches between fake displays and real displays when Moonlight is streaming
7 stars 1 forks source link

Moonlight Display Auto Switch

This is a tool to automatically activate and deactivate main and fake displays when using Moonlight and Sunshine for desktop streaming. This will work in conjunction with the IddSampleDriver which will create a fake display for you that can render different screen resolutions than your main display. This program uses MultiMonitorTool for determining the active displays and switching their state.

See Releases for download links.

Prerequisites

Make sure to have MultiMonitorTool.exe in your PATH environment variable. Also the sunshine log file has to be stored at %ProgramFiles%\Sunshine\config\sunshine.log.

No other configuration is necessary. Run the command in background.

What this program does

After this it will check:

  1. If the main display is active, the fake display is inactive and Sunshine is streaming it will deactivate the main display and activate the fake display
  2. If the main display is inactive, the fake display is active and Sunshine is not streaming it will activate the main display and deactivate the fake display

This will give active main displays if you are returning to your computer and will deactivate the main display if you are using sunshine

Remarks