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.83k stars 110 forks source link

Increase display() retry delay to 3 seconds #50

Closed andornaut closed 3 years ago

andornaut commented 3 years ago

In #49 we added a 2 second retry when invoking Display::enumerate(). I noticed a few cases where 2 seconds was insufficient, but in my testing 3 seconds proved reliable. Perhaps this could benefit from a progressive retry scheme, but I wasn't sure if the complexity would be worthwhile to improve support for this edge-case, so I've instead bumped the retry delay to 3 seconds.