You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script does disable two monitors when I connect... But the wrong two. See below, but the one left enabled during connection is \\.\DISPLAY7 and not \\.\DISPLAY11. It re-enables everything upon disconnect just fine.
**********************
Windows PowerShell transcript start
Start time: 20240112223751
Username: JETPC\jet082
RunAs User: JETPC\jet082
Configuration Name:
Machine: JETPC (Microsoft Windows NT 10.0.22635.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File E:\Supplemental\Tools\MonitorSwapper\MonitorSwapper.ps1 -async True
Process ID: 35008
PSVersion: 5.1.22621.2706
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2706
BuildVersion: 10.0.22621.2706
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is .\log.txt
Id Name PSJobTypeName State HasMoreData Location Command
-- ---- ------------- ----- ----------- -------- -------
1 MonitorSwapp... BackgroundJob Running True localhost ...
3 MonitorSwapp... BackgroundJob Running True localhost ...
Waiting for the next event to be called... (for starting/ending stream)
Processing event: Start
Dummy plug activated
Still waiting for the next event to fire...
Still waiting for the next event to fire...
Still waiting for the next event to fire...
Still waiting for the next event to fire...
Still waiting for the next event to fire...
Still waiting for the next event to fire...
Still waiting for the next event to fire...
Still waiting for the next event to fire...
The text was updated successfully, but these errors were encountered:
jet082
changed the title
Does not Switch to Dummy Monitor
Switches to Wrong Monitor Upon Connect
Jan 12, 2024
Okay it turns out this was a problem with my dummy monitor. I was using https://github.com/itsmikethetech/Virtual-Display-Driver which advertised higher refresh rate options at a variety of resolutions, but these were not enabled by default. Therefore, MultiMonitorTool was trying to set the dummy monitor to a refresh rate that was not enabled. My guess is that MultiMonitorTool's fallback/failsafe option is to always keep one monitor enabled and it defaulted to the 'primary' one.
Oddly, in my experiments, I switched all the uses of MultiMonitorTool to MonitorSwitcher (due to reading #9) and the failsafe for that was much safer - it worked properly and simply used the existing 60hz option as its fallback/failsafe.
What I ended up doing to fix things was editing the file C:\IddSampleDriver\option.txt to add my intended resolution+refresh rate combo (in this case 2732, 2048, 120) and then uninstalling and reinstalling the device (via device manager, right clicking IDDSampleDriver Device HDR and saying Uninstall Device and then reinstalling via the same method I originally did). Once the 120hz option was available, the existing MultiMonitorTool option worked fine.
Since a good amount of people use virtual dummy devices (like https://github.com/itsmikethetech/Virtual-Display-Driver) it might be nice to have a little 'make sure your refresh rate/resolution is enabled by checking in the display properties' in the troubleshooting section. Given #9 it might also be nice to make a move to MonitorSwitcher since it seems like it more elegantly handles failures.
I have two real monitors and one dummy monitor.
The script does disable two monitors when I connect... But the wrong two. See below, but the one left enabled during connection is
\\.\DISPLAY7
and not\\.\DISPLAY11
. It re-enables everything upon disconnect just fine.Here are my files:
Dummy.cfg
primary.cfg
settings.json
log.txt
The text was updated successfully, but these errors were encountered: