Live data from Hacker News

Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

github.com

91–100 of 155 posts

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#92
This is a fantastic project. I'm using it with a cheap usb switch to share screen, keyboard and mouse between my work laptop and home desktop.

My only gripe is that when I press the USB switch to change inputs, I must follow with a press on the keyboard to wake up the other computer, otherwise the monitor sees that the new input has no signal and switches back to the previous input. In which case I must either manually change inputs on the screen, or press the usb switch a couple more things to try again. But I guess there's not much display-switch can do about that..

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#93

just incase (like me) you haven't heard of DCC/CI before https://appuals.com/what-is-ddc-ci-and-how-to-use-it/

I kind of feel disappointed of myself for not hearing of it before although I have searched for a way to script brightness control of my monitors and ended up using suboptimal xrandr for it

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#94
post #92

This is a fantastic project. I'm using it with a cheap usb switch to share screen, keyboard and mouse between my work laptop and home desktop. My only gripe is that when I press the USB switch to change inputs, I must follow with a press on the keyboard to wake up the other computer, otherwise the monitor sees that the new input has no signal and switches back to the previous input. In which case I must either manual…

Couldn't display-switch send a keypress (something that doesn't do much otherwise, like F15) automatically?

You could probably get that result at the moment using the external command feature and something like xdotool (on Linux)

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#95
post #88

My shell-script solution I've been using for the last year or two: #!/bin/bash src="pc" while true; do lsusb -d 04d9:a0d1 >/dev/null # Keyboard connected? ret=$? if [ $ret -eq 0 -a "$src" != "pc" ]; then src="pc" ddcutil --noverify setvcp 60 0x0f # Switch monitor input to DP elif [ $ret -eq 1 -a "$src" = "pc" ]; then src="laptop" ddcutil --noverify setvcp 60 0x11 # Switch monitor input to HDMI fi sleep 1 done

> sleep 1

One second latency ... not ideal.

Is there any way to sleepwait on a USB config change instead?

[EDIT]: this might help:

https://stackoverflow.com/questions/469243/how-can-i-listen-...

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#96

I have addressed this problem by using a 4x4 USB switcher from Rosewill and an HDMI matrix, such as those used by broadcasting or A/V signage industries. I started with an 8x8 matrix and now have a 16x16. It’s dead simple to give each of the 4 or so computers I have hooked up to them 3 or so monitors, and I can swap any video source to any sink using a web interface. The matrix isn’t cheap (approximately $1200) but a…

>HDMI matrix

Would you care to post the brand and serial for the matrix?

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#97
post #83
post #74

PSA: Many 4K Dell monitors (like my Dell UltraSharp U3219Q ) have a built-in KVM switch and they support full DDC commands for switching the input as well (over HDMI, DP and USBC). I can control them from Mac and Linux with hot keys that trigger the appropriate ddc commands.

record scratch Whoah. How do I obtain these ddc commands on macOS?

[deleted]

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#98

I have a $250 TESmart HDMI/keyboard/mouse switch, after 6 months I have to power cycle it each time when I woke up the computer. Unreliable. Also bought Synergy that works fine but I need keep the software running(a wifi switch will lose the connection, so it's not the same as the hardware kvm switch). I now use usb-switch for keyboard/mouse only, and use my monitor's own button to switch displays, so far it is not c…

Exactly the same solution here using the Aten US224 device - https://www.amazon.com/Aten-Corp-User-Port-US224/dp/B00B1RX0...

One of the computers is a work issued laptop and with this solution i won't have to install any software.

The monitor is rather slow to switch inputs, but otherwise all is good.

The only visible thing on the desk is the button for switching USB devices.

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#99
post #92

This is a fantastic project. I'm using it with a cheap usb switch to share screen, keyboard and mouse between my work laptop and home desktop. My only gripe is that when I press the USB switch to change inputs, I must follow with a press on the keyboard to wake up the other computer, otherwise the monitor sees that the new input has no signal and switches back to the previous input. In which case I must either manual…

Couldn't display-switch send a keypress (something that doesn't do much otherwise, like F15) automatically? You could probably get that result at the moment using the external command feature and something like xdotool (on Linux)

Yes, or send a fake mouse move. It does this already when running on Windows or OSX; there's an open issue for adding the Linux host support: https://github.com/haimgel/display-switch/issues/27

I reckon it's probably 25 or 30 lines or Rust if you make it use the uinput crate to create a fake input device and send a mouse-move event that way.

Re: Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM

#100

This looks fantastic, I was recently disappointed to learn that there don't seem to be any good KVMs under ~$200, that support anything higher than 4k@60Hz. Apparently Thunderbolt/DisplayPort are not really a thing yet for some reason, so I ended up getting a USB (KM) switch instead. With this project, it looks like I'll be able to have my cake and eat it too.

I've managed to find a cheap 2-port DP KVM that pretends it's able to do DP 1.4 / 8k @ 60 Hz. I can only confirm it works well at 4k@60 Hz, since that's the best my screen can do.

One pro is that it's able to get power from any of the USB inputs, so no extra cable!

One con is that for some reason it only does USB 2...

Amazon FR link : https://www.amazon.fr/gp/product/B08Q7J3B82

Post reply on HN