haimgel / display-switch

Turn a $30 USB switch into a full-featured multi-monitor KVM switch
https://haim.dev/posts/2020-07-28-dual-monitor-kvm/
MIT License
2.86k stars 112 forks source link

"Generic PnP Monitor" Failing Input Switching on Windows 10 VM #74

Open sl33nyc opened 2 years ago

sl33nyc commented 2 years ago

I use a 4-port USB hub ("25a7:fa70") with the following setup:

display-switch running on Ubuntu successfully detects Monitor1 and switches to Hdmi1 when USB device "25a7:fa70" connects. display-switch running on Windows 10 VM also detects "25a7:fa70" connecting but fails to switch to DisplayPort1. As a workaround, I'm using on_usb_disconnect on my Ubuntu host to switch the display between host and VM but this has obvious limitations for connecting my USB hub ports to other computers sharing Monitor1.

On Windows 10, Monitor1 is detected as two devices: Generic PnP Monitor and GA102-A/2147881091:Lvds (Googling for "GA102" suggests a relationship to my Nvidia GPU-1), but display-switch cannot switch Monitor1's input via either detected device. I tried the following display-switch.ini:

usb_device = "25a7:fa70"
on_usb_connect = "DisplayPort1"

[monitor1]
monitor_id = "GA102"
on_usb_connect = "DisplayPort1"

[monitor2]
monitor_id = "Generic"
on_usb_connect = "DisplayPort1"

I can switch using DDC/DI using winddcutil, so that makes me think that changing display-switch could be adjusted.

Windows 10 display-switch logs: https://gist.github.com/sl33nyc/f21f96e5d02d5831b908f48c8866bc49

bukhamsin commented 1 year ago

did you find a solution to this? I have the same problem with Generic PnP Monitor and GA104