Comment on how to run sunshine + moonlight (steamdeck) + virtual monitor + scripts to turn on/off monitors
blindsight@beehaw.org 8 months agoIf you’d be willing to post your .bat file, that would be fabulous! I haven’t had a chance to set this up yet.
Jz5678910@lemdro.id 8 months ago
I’m not sure if I did this right, but here it is! This is the script to run on moonlight launch, just reverse the numbers for your script to run on moonlight exit.
The instructions above worked well with the exception of the script. Make sure that the iddsampledriver folder is on the root of the C: drive. and make sure that Multimonitortool is inside that folder.
You’ll have to switch the numbers in the script with your monitor values. You’ll get those from MultiMonitorTool. Open MMT, right click on your monitor, click properties, and the value you’re looking for is under “Name”
`@echo off
:: Path to MultiMonitorTool.exe set “MultiMonitorToolPath=C:\IddSampleDriver\MultiMonitorTool.exe”
“%MultiMonitorToolPath%” /disable \.\DISPLAY1 “%MultiMonitorToolPath%” /enable \.\DISPLAY21 “%MultiMonitorToolPath%” /setprimary \.\DISPLAY21`