Nonary / MonitorSwapAutomation

Automates swapping to a dummy plug when streaming, then automates swapping back to primary monitor once finished.
238 stars 8 forks source link

Primary Display Not Switching of On Stream Start #49

Open sysmoon14 opened 2 weeks ago

sysmoon14 commented 2 weeks ago

I had this all set up and working nicely, but yesterday I updated to Windows 11 24H2 to get the nice AMD CPU benefits and since then my main monitor doesn't switch off when I start a stream. Instead my virtual display (MikeTheTech HDR) and primary display are both active. Ending the stream correctly reverts back to only the primary monitor.

I did notice that my monitor IDs changed after the update, so I updated my configs to match and reinstalled the script.

Primary.cfg

Name=\\.\DISPLAY1
MonitorID=MONITOR\BNQ7F66\{4d36e96e-e325-11ce-bfc1-08002be10318}\0000
SerialNumber=T9L01775019
BitsPerPixel=32
Width=2560
Height=1440
DisplayFlags=0
DisplayFrequency=120
DisplayOrientation=0
PositionX=0
PositionY=0
[Monitor1]
Name=\\.\DISPLAY6
MonitorID=MONITOR\LNX0000\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
SerialNumber=
BitsPerPixel=0
Width=0
Height=0
DisplayFlags=0
DisplayFrequency=0
DisplayOrientation=0
PositionX=0
PositionY=0

Dummy.cfg

Name=\\.\DISPLAY1
MonitorID=MONITOR\BNQ7F66\{4d36e96e-e325-11ce-bfc1-08002be10318}\0000
SerialNumber=T9L01775019
BitsPerPixel=0
Width=0
Height=0
DisplayFlags=0
DisplayFrequency=0
DisplayOrientation=0
PositionX=0
PositionY=0
[Monitor1]
Name=\\.\DISPLAY6
MonitorID=MONITOR\LNX0000\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
SerialNumber=
BitsPerPixel=32
Width=1920
Height=1080
DisplayFlags=0
DisplayFrequency=60
DisplayOrientation=0
PositionX=0
PositionY=0

Debug log attached from my latest run. Am I missing something obvious, the windows update could be a red herring, but it's the only think I can think of that's really changed.

log_1724862148.txt

sysmoon14 commented 2 weeks ago

Experienced the same issue when trying https://github.com/Cynary/sunshine-virtual-monitor

So the issue must be with MultiMonitotTool. Either something in my setup or it doesn't like 24H2

j-scrizz commented 1 week ago

Yep same issue here on 24h2. Did you manage to find a fix?