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 113 forks source link

[linux] laptop connected to dual monitors via a dock #120

Closed laur89 closed 1 year ago

laur89 commented 1 year ago

Have a Thinkpad connected to two identical displays via AJ40 dock. When running display-switch I get following logs:

19:33:30 [ERROR] Failed to get current input for display 'AUS PA278QV L8LMQS137232 #1': DDC/CI I2C error: Remote I/O error (os error 121)
19:33:30 [ERROR] Failed to get current input for display 'AUO #2': DDC/CI I2C error: Remote I/O error (os error 121)
19:33:30 [INFO] Display 'AUS PA278QV L8LMQS137232 #3' is currently set to DisplayPort1(0xf)
19:33:30 [INFO] Display 'AUS PA278QV L8LMQS137224 #4' is currently set to DisplayPort1(0xf)

Should my config look like this (ie both set as DisplayPort1)?:

usb_device = "usb:id"

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

[monitor2]
monitor_id = "L8LMQS137224"
on_usb_connect = "DisplayPort1"
laur89 commented 1 year ago

Now it states no displays are found:

12:00:39 [WARN] Did not detect any DDC-compatible displays. Retrying after 3 second(s)...
12:00:42 [ERROR] Did not detect any DDC-compatible displays!