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

Failed to get current input for display (Support for DVI monitors) #25

Closed erick-thompson closed 3 years ago

erick-thompson commented 3 years ago

I'm trying to get this working with a Dell T2414H monitor hooked up by way of DP and DVI. I attempted to add DVI as a supported enum values, plus the raw value for DVI (0x03). In both cases, I get the following error.

19:25:10 [INFO] Display 'Generic PnP Monitor' #0 is currently set to 0x3 19:25:11 [INFO] Display 'Generic PnP Monitor' #1 is currently set to 0x3 19:25:11 [ERROR] Failed to get current input for display 'GP104-A/2147881091:Hdmi' #2: Ddc(InvalidChecksum) 19:25:11 [ERROR] Failed to get current input for display 'GP104-A/2147881092:Lvds' #3: Ddc(InvalidChecksum)

I'm not sure if this is an issue in display-switch or elsewhere.

Note - I can use other DDC based programs, so I don't think it's a hardware/supportability issue.

haimgel commented 3 years ago

@erick-thompson failure to get current input seems to be a display-switch issue. However: does it actually switch inputs, or do you get errors / failure to switch when it tries to switch as well?

erick-thompson commented 3 years ago

It does not switch inputs. I can't get any other logs/error in either debug or release build, so I suspect this error is fatal. Anything I can do to help debug?

haimgel commented 3 years ago

I've updated the current master with the improvements in DDC handling code on MacOS. I'd appreciate a test whether there are any changes: does the app read the current inputs now? Can it change them?