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.91k stars 112 forks source link

Add how to rename Windows monitor_id #114

Closed liqi0816 closed 1 year ago

liqi0816 commented 2 years ago

Hi!

I have run into unfortunate case where the index of "Generic PnP monitor" is not stable and I found this issue. After some exploration it turned out that we should edit DeviceDesc instead of FriendlyName to change the monitor id.

I believe this worth documenting so this PR.

snapshot