Jump to content

Recommended Posts

Posted

This is a solution to a problem I was having with my Winwing MFCD's but it applies to all multi-display setups, thought it may be useful for anyone else having similar problems:

The issue was Windows sometimes displayed the main game window or other app windows on one of my small usb displays which I use in DCS for MFCD's.  The was a pain as it was difficult to get the window out of the display without unplugging it.
1. Microsoft has a small console utility called "PnPUtil" It's already installed on windows (10 and 11).  The utility basically allows you to select devices and enable and disable them on the console by using the device id or instance id, the same as you would using the device manager UI, and a whole lot more.
2. Simply create a batch file to enable and disable the unwanted displays when you are not using DCS.  You can then either create another batch file to enable them or just use that in a custom DCS start bat, simples, solves all my problems.  Note that the batch file needs to run as admin or it won't work, simply create a shortcut for it and select run as admin in the properties.   You can also use a similar script for disabling any device for driver updates, particularly useful for WinWing device updates.

Full info on the util syntax can be found here
PnPUtil Examples - Windows drivers | Microsoft Learn

Example, you need to enter the ID of your display as found in the device manager obviously:

Disables displays
Echo yadyayada

pnputil /disable-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"
pnputil /disable-device "USB\VID_045E&PID_00DB\6&870CE29&0&2"
pnputil /disable-device "USB\VID_045E&PID_00DB\6&870CE29&0&3"

Exit

Enables displays

Echo yadyayada

pnputil /enable-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"
pnputil /enable-device "USB\VID_045E&PID_00DB\6&870CE29&0&2"
pnputil /enable-device "USB\VID_045E&PID_00DB\6&870CE29&0&3"

Exit

 

Windows 10 64 bit | Intel i5-9600k OC 5 Ghz | RTX 2080 |VENGEANCE® LPX 32GB DDR 4 OC 3200

 

Hotas Warthog | Logitech G Flight Rudder Pedals | Track IR 4

  • 3 weeks later...
  • 4 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...