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

ParseIntError InvalidDigit #46

Closed stonecharioteer closed 3 years ago

stonecharioteer commented 3 years ago

Hi,

Thanks for building this tool, it is exactly what I've been looking for!

I am running this on a MacBook Pro (15-inch, 2018) (Catalina 10.15.7 (19H2)). I have two identical monitors and I made the following config:

usb_device = "2341:0036"

[monitor1]
monitor_id = "dell u2415 s/n 0KVDN9C33MPL"
on_usb_connect = "mDisplayPort1"
on_usb_disconnect = "Hdmi2"

[monitor2]
monitor_id = "dell u2415 s/b 0KVDN01I07RU"
on_usb_connect = "hdmi1"
on_usb_disconnect = "hdmi2"

Bus 020 Device 044: ID 2341:0036 2341 Arduino Leonardo is the ID of the keyboard I am connecting. Could someone help me debug why I'm getting the following error:


Error: failed to load configuration

Caused by:
    ParseIntError { kind: InvalidDigit }
stonecharioteer commented 3 years ago

NVM, I've found that this was due to an invalid config, namely the mDisplayPort1 setting. Closing it.