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

Failed to set display 'Generic PnP Monitor' to Hdmi1(0x11) #61

Closed averyoefinger closed 3 years ago

averyoefinger commented 3 years ago

Let me start by just saying how great this project is, I'm really eager to get it up and running!

Setup:

Expected outcome: pressing the KVM button toggles the monitor input between PC and laptop display.

Actual outcome: There is output in the log (C:\Users\avery\AppData\Local\display-switch\display-switch.log)

01:42:55 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "1b1c:1b3e"
01:42:55 [INFO] Monitored device is ("1b1c:1b3e") is disconnected
01:42:55 [DEBUG] (1) display_switch::display_control: Setting display 'Generic PnP Monitor' to Hdmi1(0x11)
01:42:55 [ERROR] Failed to set display 'Generic PnP Monitor' to Hdmi1(0x11) (Os { code: -1071241854, kind: Other, message: "An error occurred while transmitting data to the device on the I2C bus." })
01:42:55 [DEBUG] (1) display_switch::display_control: Setting display 'GP104-A/2147881088:Lvds' to Hdmi1(0x11)
01:42:55 [ERROR] Failed to set display 'GP104-A/2147881088:Lvds' to Hdmi1(0x11) (I2c(Error))
01:42:55 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "1b1c:1b13"
01:42:55 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "0bda:5411"
01:42:58 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "0000:0000"
01:43:05 [DEBUG] (1) display_switch::app: Detected device change. Added device: "0bda:5411"
01:43:06 [DEBUG] (1) display_switch::app: Detected device change. Added device: "1b1c:1b13"
01:43:06 [DEBUG] (1) display_switch::app: Detected device change. Added device: "1b1c:1b3e"
01:43:06 [INFO] Monitored device ("1b1c:1b3e") is connected
01:43:06 [DEBUG] (1) display_switch::display_control: Setting display 'Generic PnP Monitor' to DisplayPort1(0xf)
01:43:06 [ERROR] Failed to set display 'Generic PnP Monitor' to DisplayPort1(0xf) (Os { code: -1071241854, kind: Other, message: "An error occurred while transmitting data to the device on the I2C bus." })
01:43:06 [DEBUG] (1) display_switch::display_control: Setting display 'GP104-A/2147881088:Lvds' to DisplayPort1(0xf)
01:43:06 [ERROR] Failed to set display 'GP104-A/2147881088:Lvds' to DisplayPort1(0xf) (I2c(Error))
haimgel commented 3 years ago

Hello, Unfortunately, it seems like your monitor (Dell S2716DG) does not support DDC/CI controls: https://www.dell.com/community/Monitors/S2716DG-Dell-DDM-is-not-supported/td-p/6072319

Granted, this is not an authoritative source, and if you're sure it is supported and should work, I suggest trying to control it with some other DDC/CI software to make sure the issue is indeed display-switch software and not lack of hardware support.