News for hackers. Stuff that matters.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by zachrose on Wednesday September 02, 2020 @05:29PM (#24358380)
Would somebody like to help me understand why KVM switches are so sophisticated? A DisplayPort cable has 20 pins, so why can't it just be a 20 pole switch? (Or 30 pole for two USBs and a headphone jack, etc.)
Re:How I built a keyboard/video/mouse switch for my two 4k m... by Ductapemaster on Wednesday September 02, 2020 @05:46PM (#24358548)
A lot of it has to do with the electrical properties of such a switch. Even older versions of DisplayPort have massive data rates, meaning each electrical signal switches many millions of times a second. Also, each signal may have to switch states close to the same time as the other signals, meaning there needs to be some sort of matching between the different signal paths.

Add in noise sources from the power supplies, your cell phone, and other sources, and it becomes a challenging physics problem. Not to mention, you don't want those signals leaking out either. At these data rates, wires are both transmitting and receiving antennas.

Switches are inherently very mechanical devices, so designing one that can operate in these conditions reliably would be both complex and expensive. Much easier to have some silicon do it for you.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by ric2b on Thursday September 03, 2020 @12:05PM (#24365444)
But I can just pull the plug on any USB 3.0/HDMI/DP cable without any warning to the devices and nothing breaks, why can't a rudimentary switch do the same?
Re:How I built a keyboard/video/mouse switch for my two 4k m... by Ductapemaster on Thursday September 03, 2020 @01:32PM (#24366435)
These standards are robust to step-function changes like unplugging and plugging in, through smart electrical, mechanical, and software design. There's a ton of detail here, so if you're interested feel free to DM me.

However, the challenges I am referring to above mostly have to do with the steady state operation of the bus, after it has negotiated it's final data rate and is transmitting at full-blast. That's when you run into the transmission problems (eg. radiation of your signals), or your setup just won't allow you to reach the full data rate due to interference.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by stefan_ on Wednesday September 02, 2020 @09:03PM (#24359903)
Isn't this what SPDT and other RF switches are designed to do?

Obviously impractical for a KVM switch, but I wonder if you could build one out of 20 of these.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by bronson on Thursday September 03, 2020 @06:27AM (#24362599)
RF switches are fairly expensive and aren't likely to meet the electrical spec anyway. If they're SPDT, you'll probably need at least 10 of them. What's the motivation for using them?
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Wednesday September 02, 2020 @06:32PM (#24358971)
Using a literal switch or multiplexer would have the link disappear, so switching causes ~5-10 seconds of delay, assuming the machine doesn't crash or hang because somehow that's okay behavior for computers in 2020...?!

Additionally: The DisplayPort spec mandates that operating systems have to throw a huge temper tantrum and garble your desktop and windows when you disconnect or turn off a display. (Yes, nVidia and Microsoft consistently deny implementing an option to turn this utterly braindead behavior off, saying that it's not a bug, but intended behavior because DisplayPort and VESA say so).

What KVMs instead contain is similar to the rescaler ASICs found in a monitor, they receive multiple streams of display data and mix/forward/scale one of these. But since they constantly receive all of the streams, switching can be instant, or at least as quick the monitor can modeswitch (which, for some reason, takes screens at least a second).

Re:How I built a keyboard/video/mouse switch for my two 4k m... by ardy42 on Wednesday September 02, 2020 @07:24PM (#24359351)
> What KVMs instead contain is similar to the rescaler ASICs found in a monitor, they receive multiple streams of display data and mix/forward/scale one of these. But since they constantly receive all of the streams, switching can be instant, or at least as quick the monitor can modeswitch (which, for some reason, takes screens at least a second).

Do you know of a DisplayPort KVM switch that actually does that? I tried one a few years ago (it was one of the first ones I saw for a reasonable price), but I returned it immediately because I got the brain-dead window-rearranging behavior you described whenever I switched. I've been reluctant to try another until I know it solves that issue.

I still use one of these HDMI switches (https://www.iogear.com/product/GCS62HU/), because it's EDID support actually does make it transparent to the PCs, so I can switch instantly like I want to.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by buzer on Thursday September 03, 2020 @05:50AM (#24362388)
ConnectPRO claims that their switches pass EDID information to all systems. They have some examples of it being in use in Youtube https://www.youtube.com/user/rexwu168/videos

I finally ordered one a while ago after I couldn't find anything cheaper with similar functionality, but it's currently on backorder so it will take some time to arrive & see how well it works in reality.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by Borealid on Thursday September 03, 2020 @07:39AM (#24362975)
I have a ConnectPro UDP2-12AP, and can confirm that systems connected to it do not see the monitor go away on switch.

There is an interruption if you press the KVM reset button, but that's not something you should often do.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by razzepoo on Thursday September 03, 2020 @04:45AM (#24362028)
https://www.gdsys.de/en/kvm-solutions/kvm-switches/dp12-mux3... This is a switch that can switch video instantly when all source have the same resolution and refresh rate. But it's not really for the consumer market and therefore is quite expensive.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Wednesday September 02, 2020 @07:32PM (#24359405)
I haven't used them myself, but I've heard the KVM switches sold by level1tech don't trigger that.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by metaphor on Thursday September 03, 2020 @01:25AM (#24361005)
A year ago, I considered their product...then I saw this commentary[1] straight from the cow's mouth:

> Most of the support on (their DisplayPort 1.2 KVM offering) have been down to bad or dodgy DisplayPort cables. Seriously, it's like sort of nuts. Like you go on Amazon, you order a DisplayPort cable, it doesn't work, and it's like, "Well, I have two DisplayPort cables that work independently, but when I plug both of them into the KVM, it doesn't work." The KVM doesn't have a repeater. So if you've got two 6-ft cables that pass through the KVM, it is like as if you have one 12-ft cable, and while one 6-ft cable might work, 1 12-ft cable will not because...(Jedi hand gestures)...repeater. So use good quality cables, you'll be fine.

Ignoring the "repeater" terminology wank, that soundbite disclosed enough about the white label device's internal architecture for me to infer with confidence that even if EDID was properly implemented (the easiest part), the video interface is skimp and doesn't actually buffer frames in realtime...which means that on switch, the monitor's receiving ASIC will detect frame interruption as it starts to receive its new stream and blank for a second or two while it tries to reacquire...which is definitely not the instantaneous performance I was looking for.

[1] https://youtu.be/0b0_yz-oDjQ?t=74

Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Thursday September 03, 2020 @03:07AM (#24361503)
Damn...
Re:How I built a keyboard/video/mouse switch for my two 4k m... by ashtonkem on Wednesday September 02, 2020 @08:20PM (#24359679)
I’m using a TESmart HDMI KVM that behaves well, at least with my monitors. My USB peripherals sometimes need a reset though.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by JoshTriplett on Wednesday September 02, 2020 @06:59PM (#24359190)
Can you provide more information about the details of DisplayPort you're referring to, and what actual spec-required behavior you're referencing?
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Wednesday September 02, 2020 @07:02PM (#24359220)
Re:How I built a keyboard/video/mouse switch for my two 4k m... by teel on Thursday September 03, 2020 @03:15AM (#24361539)
This (monitor being removed from the system if I turn it off) must be the most braindead idea I've seen in a while. This is why don't turn off my monitor after work day any more, but leave it on and let it go to power saving sleep when it wants so.

Until I figured out what the hell was going I was pulling my hair every morning when I turned on my work monitor (40-something inch 4k display) and found all program windows in the top-left corner of the monitor, stacked on top of each other and resized to some svga-resolution.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by vultour on Thursday September 03, 2020 @05:32AM (#24362301)
Be happy it only happens when you turn off the display. A display on one of my computers triggers this when it goes to sleep, which is about 20 times a day; even worse, it causes every single window to then shift to the "newly discovered" monitor when it wakes up. Almost makes multiple monitors pointless because you have to constantly rearrange the windows back to how they were.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by metaphor on Thursday September 03, 2020 @01:46AM (#24361095)
> The DisplayPort spec mandates that operating systems have to throw a huge temper tantrum and garble your desktop and windows when you disconnect or turn off a display.

Sounds colorful. Can you cite the requirement and revision of the standard referenced? I'd like to read the actual verbiage for myself.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by metaphor on Thursday September 03, 2020 @04:02AM (#24361791)
...and I now see your response[1] to an equivalent question.

[1] https://news.ycombinator.com/item?id=24359220

Looking at the normative language of the early DP v1.1a § 3.3 Hot Plug/Unplug Detect Circuitry:

> The HPD signal is asserted by the DisplayPort Sink whenever the Sink is connected to either its main power supply or “trickle” power. HPD signal specification is shown in Table 3-2.

To be sure, HPD assertion on "trickle" power is the monitor's requirement.

Looking closer at Table 3-2 (empty Nom col removed, Comments col separated for clarity):

  | Parameter                          | Min  | Max | Units | Comments |
  | ---------------------------------- | ---- | --- | ----- | -------- |
  | HPD Voltage                        | 2.25 | 3.6 | Volt  | (a)      |
  | Hot Plug Detection Threshold       | 2.0  |     | Volt  | (b)      |
  | Hot Unplug Detection Threshold     | 0.8  |     | Volt  | (b)      |
  | HPD source termination             | 100  |     | kΩ    | (c)      |
  | HPD sink termination               | 100  |     | kΩ    | (d)      |
  | IRQ HPD Pulse Width Driven by Sink | 0.5  | 1.0 | ms    | (e)      |
  | IRQ HPD Pulse Detection Threshold  | 2.0  |     | ms    | (f)      |
> Comments:

> (a) HPD signal to be driven by the Sink Device

> (b) HPD signal to be detected by the Source Device

> (c) Source Device must pull down its HPD input with a ≥ 100kΩ resistor.

> (d) When a Sink Device is off, it must pull down its HPD output with ≥ 100kΩ resistor.

> (e) Sink generates a low going pulse within this range for IRQ (interrupt request) to the Source

> (f) When the pulse width is narrower than this threshold, the Source must read the link / sink status field of the DPCD first and take corrective action. When the pulse width is wider than this threshold, it is likely to be actual cable unplug / re-plug event. Upon detecting HPD high, the Source must read the link / sink status field, and if the link is unstable, read the link / sink capability field of the DPCD before initiating Link Training.

Then just below Table 3-2:

> The voltage level of the HPD pin is monitored by the Source Device. TTL levels must be used for the detection.

> The Sink Device may detect the presence of the Source Device by monitoring the DC voltage level of the AUX CH lines. Source detection is an optional feature of a Sink Device.

Based on this language and description of noted workarounds, color me unconvinced that DP spec ambiguity was the root cause of this issue.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Thursday September 03, 2020 @04:37AM (#24361980)
Where is "trickle power" supposed to come from? DisplayPort also mandates that DP_PWR not be connected by cables (only intended for adapters / dongles, see § 4.2.1.1 and Figure 4-23). Note that EC demands that electronics put in stand-by / "off-mode" may not consume more than 0.5 W of wall power.

So I think what might be going on behind the curtains is that 1) DP requiring handling of hot plug 2) DP forbidding "trickle power" being sourced from the DP port 3) monitors perhaps not being able to meet 0.5 W standby if they'd entertain the DP interface 4) Operating systems handling display hotplug disgracefully combine into one heck of a bad user experience.

Things actually start to align now, because this issue started to happen en-masse around 2013-2014. And that's precisely when the more stringent standby power requirements came into force. For example, the Dell U2713H doesn't do this, while the later U2715H does. Both of these are DP 1.2 monitors, so any new mandates in the non-publicly available DP 1.3/1.4 specs shouldn't matter.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by metaphor on Thursday September 03, 2020 @06:23AM (#24362581)
> Where is "trickle power" supposed to come from? DisplayPort also mandates that DP_PWR not be connected by cables (only intended for adapters / dongles, see § 4.2.1.1 and Figure 4-23).

The answer seems to me unambiguous when considering the normative language in § 4.2.1.1:

> The standard external cable connector assembly must not have a wire on pin 20, DP_PWR.

...in conjunction with the normative definition of trickle power per § 1.4 (my emphasis):

> Power for Sink Device that is sufficient to let the Source Device read EDID via the AUX CH, but insufficient to enable Main Link and other sink functions. For sink to drive the HPD signal high, at least the trickle power must be present. The amount of power needed for the trickle power is sink implementation specific.

(To be sure, Figure 4-23 per DP v1.1a is single-slot PCI "Panel Cut Out Reference Dimensions", so unsure what was meant to be conveyed there).

> Note that EC demands that electronics put in stand-by / "off-mode" may not consume more than 0.5 W of wall power.

...which is ~150 mA at 3.3 V nominal. Even generously derating 30% to account for ballpark efficiency losses, we're still talking > 100 mA budget to support an explicitly constrained requirement. I mean asserting HPD in the worst case is apparently a 36 uA affair.

Anecdotally, I haven't encountered the issue despite a bias towards DP (on advise from a friend in compliance test over a random beer discussion on radiated emissions performance); all my setups discriminate to either dual U2415 or dual U2412M as a matter of personal preference.

Just thought I'd remark in passing because VESA specs never really struck me as being technically egregious in its ambiguity.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Thursday September 03, 2020 @06:48AM (#24362693)
I was referring to DP 1.2, where Figure 4-23 shows the exact pin connections of a cable.

> ...which is ~150 mA at 3.3 V nominal.

Small power supplies become very inefficient due to relatively fixed losses relative to output power. The 0.5 W spec is wall power, so if you fully use the 0.5 W, you might get 0.1-0.2 W worth of output.

> Anecdotally, I haven't encountered the issue despite a bias towards DP (on advise from a friend in compliance test over a random beer discussion on radiated emissions performance); all my setups discriminate to either dual U2415 or dual U2412M as a matter of personal preference.

I'm using a Dell U2415 connected by DisplayPort to Intel graphics right now, and if I turn it off (using the soft buttons) my desktop and windows are garbled because it "disappears" from the system despite not being disconnected.

Compare this to the DVI days where I could literally switch the outlet strip powering my screens off and nothing would get garbled, and the system would never hang or crash. I'm pretty sure it's impossible for DisplayPort to support that, since the display has to be powered to avoid being un-detected by the system. So I'm not asking for that to work. Obviously a good standard would support this usage, but DP never will, so okay, fair enough. I'm just asking for the insanity of "disconnecting" monitors sent to stand-by / "soft button off" and subsequent garbling of my workspace to stop. And while they're at it, maybe fix crashes and hangs on monitor re/disconnects. Y'know, it's not really "plug and play" if I plug it in and have to hit the reset button to get my machine back.

Real world analogy: A standard for desks that dump everything on the floor as soon as you turn your back to them would never fly. But somehow the equivalent is acceptable for computers.

PS: A Japenese entrepeneur sells DPHPDMA devices, which are little dongles plugged directly into a Displayport output and contain a microcontroller powered by DP_PWR, which intercepts the EDID communication etc. and essentially performs EDID emulation in hardware (since GPU manufacturers disable software EDID emulation for consumer cards). They're like 50 bucks plus international shipping each.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by imglorp on Thursday September 03, 2020 @09:00AM (#24363588)
Another question is why does it take so very long in human scale for all these things to happen? You'd think scanning for a valid data frame and flinging bits onto the glass would take under one frame, so 0.01s?
Re:How I built a keyboard/video/mouse switch for my two 4k m... by metaphor on Friday September 04, 2020 @07:30PM (#24379970)
With respect to HPD, one contributing factor per DP 1.1a § 5.1.4:

> There is no mandatory time constraint on the Source Device’s response to a plug / re-plug event, but a Source Device vendor may want to impose a voluntary constraint similar to that for HPD IRQ events (for example, 100 ms) to ensure a good user experience via prompt discovery and configuration of newly attached devices.

There's a lot more going on behind the scenes than mere "scanning for a valid data frame and flinging bits onto the glass", and much of it has nothing to do with approaching technical limits, e.g. the dynamic of multiple product vendors finding incentive to reach consensus in standards development despite naturally seeking to cut each other's throats in the open market.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by MuncleUscles on Thursday September 03, 2020 @07:31AM (#24362928)
You wouldn't happen to know how to prevent the tantrum from happening? It's been driving me nuts
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Thursday September 03, 2020 @10:05AM (#24364154)
Disable all power saving / standby features and never turn the screens off manually or cut their power while the PC is on.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Thursday September 03, 2020 @12:09PM (#24365494)
And perhaps a little unpaid ad:

> PS: A Japenese entrepeneur sells DPHPDMA devices, which are little dongles plugged directly into a Displayport output and contain a microcontroller powered by DP_PWR, which intercepts the EDID communication etc. and essentially performs EDID emulation in hardware (since GPU manufacturers disable software EDID emulation for consumer cards). They're like 50 bucks plus international shipping each.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by stonogo on Wednesday September 02, 2020 @06:06PM (#24358760)
In addition to the signal issues outlined in sibling comments, a good KVM switch presents the HID devices full-time, so instead of the computers seeing USB disconnect/reconnects, they don't see any difference at all. This requires a complete USB implementation including HID protocols and something to translate real-keyboard and real-mouse signals into the virtual USB devices.

There are similar considerations regarding DDC passthrough on monitors for resolution negotiation and so forth.

A bad KVM presents to the computer as though the user is disconnecting all the input devices and the monitors every time you switch. These are indeed much simpler and cheaper devices but they cause all kinds of quality-of-life issues when you use them regularly.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by babuskov on Wednesday September 02, 2020 @07:15PM (#24359297)
I have one that's in-between. The monitor is always "present", only the keyboard and mouse get (dis)connected. It works fine, since it avoids the biggest problem of adjusting the screen resolution which can reposition desktop icons, etc. The only drawback is a 3-4 delay as USB mouse/keyboard is reconnected.

The price was around $50 IIRC.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by comboy on Wednesday September 02, 2020 @06:36PM (#24359002)
I have one of those bad KVM switches. How do I know which one to buy to have a good one?
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Wednesday September 02, 2020 @06:40PM (#24359039)
Level1 sells KVM switches that are said to be quite good for their money.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by modeless on Wednesday September 02, 2020 @06:17PM (#24358842)
Why shouldn't a computer be able to handle reconnection of peripherals without quality of life issues? It's pretty silly if this pure software issue is the reason KVM hardware has to be so complex and expensive.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by qppo on Wednesday September 02, 2020 @06:36PM (#24359001)
To be honest it probably comes down to being a non trivial problem to get it to be perceptually seamless and a rare enough event that people don't have the incentive to fix it.

Most people aren't plugging/unplugging monitors often

Re:How I built a keyboard/video/mouse switch for my two 4k m... by closeparen on Thursday September 03, 2020 @05:58AM (#24362445)
Seems pretty standard in tech offices to a) have one or two external monitors on your desk, and b) disconnect/reconnect them from your Macbook every time you get up for a meeting.

They still handle it horribly though. My favorite is how macOS used to assign the logical displays randomly, so I'd have to fix the arrangement in Displays preferences several times every day.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by stonogo on Wednesday September 02, 2020 @06:20PM (#24358873)
Some peripherals require configuration after connection. Waiting for this can suck. I'm including monitors here -- a bad implementation will present, as an example, monitors out of order. Another problem you run into is inadvertently cycling through connections too quickly, which can show as devices being disconnected during initialization, causing some systems to flag the device as malfunctioning and refuse to initialize it next connection.

Of course it's easy to say that these are silly problems that should have pure software fixes, but Microsoft and Apple don't exactly accept patches. Let's not pretend that software is optimal.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by aetch on Wednesday September 02, 2020 @06:22PM (#24358892)
You can see for yourself by disconnecting your monitor in a multi monitor setup or opening your laptop lid if you use the laptop on a dock. Computer windowing systems seem to take a moment to reposition all the windows and might not remember to redistribute your windows when the monitor count changes.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Wednesday September 02, 2020 @06:43PM (#24359060)
For many years I was happy with my multi-monitor setups. I'd use multiple screens for work, and turn all off except the center one for watching movies or playing games (because the backlight bleeding of the other screens was annoying, even with a 100 % black image).

That's not possible any more. Microsoft, VESA, nVidia say no. This mustn't be possible. (Actually it used to be possible to add a registry key in Windows 7 that disabled all of this bullshit, but Microsoft wisely decided in Windows 10 to remove that. It must not be done.)

Turning compliant DisplayPort devices off while using a compliant operating system must always garble all windows and shuffle desktop icons around. The spec says so. So it must be. The will of the ancients.

(nVidia will allow you to turn this off, if you are using a Quadro card - then you can use EDID emulation even on display-ports, which causes the OS to think the display is always connected - and more importantly - turned on. One of these areas where Linux is ahead -- although Linux is back to garbling windows like the rest in case you do actually decide, as an individual with agency, not a compliant operating system, to change the arrangement of displays.)

Re:How I built a keyboard/video/mouse switch for my two 4k m... by zachrose on Wednesday September 02, 2020 @06:42PM (#24359051)
Definitely didn't imagine that KVM switches could actually be that good when I asked the question. (I've obviously never used one.) Thanks!
Re:How I built a keyboard/video/mouse switch for my two 4k m... by adrianpike on Wednesday September 02, 2020 @05:46PM (#24358540)
It can be, eBay has HDMI physical switches for like $8. Your computers will see it as a monitor unplug, though, and do fun things with adjusting windows/icons/resolutions, and then have to re-handshake on every switch. Not a blocker, just a pain.

I'm also not 100% sure if it'll freak HDCP out.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by 8ytecoder on Wednesday September 02, 2020 @07:04PM (#24359233)
I bought a HDMI switch and a USB switch. Total cost was under $30. I now have to press two buttons instead of one but that's about it. However, I don't know how to scale that for two monitors. I prefer a single monitor setup so it works for me.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by fock on Thursday September 03, 2020 @05:19AM (#24362229)
iirc most of this switches (and cheap chinese capture cards) work around this problem by "breaking" HDCP. Problem solved.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by chrisseaton on Wednesday September 02, 2020 @06:12PM (#24358801)
I think KVMs provide the illusion of the monitor still being there when you switch away from that machine? So it doesn't think you just yanked the cable.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by myself248 on Wednesday September 02, 2020 @05:46PM (#24358542)
At the multi-gigabit speeds of a modern video signal, the components of a normal mechanical switch are antennas.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by modeless on Wednesday September 02, 2020 @06:18PM (#24358852)
So are the pins in cable connectors, but cables are (relatively) cheap and switching signals by replugging connectors works just fine.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by bronson on Thursday September 03, 2020 @06:45AM (#24362672)
No, cables and connectors these days are shielded and extremely tightly controlled. The amount of work that goes into designing them is staggering. (and that's before considering active cables)
Re:How I built a keyboard/video/mouse switch for my two 4k m... by formerly_proven on Wednesday September 02, 2020 @06:39PM (#24359026)
In my experience displayport and DVI cables of all brands and prices are incredibly fragile and definitely stop working well soon if you plug/unplug them once too often.

Too often is something like 20-30 times.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by bravo22 on Wednesday September 02, 2020 @05:44PM (#24358524)
Signal integrity. High speed signals degrade with even slightest mismatch in trace length or stubs. For high-speed signals you use a chip which is essentially an electrical repeater to redirect the output to port A or B.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by 6nf on Wednesday September 02, 2020 @07:16PM (#24359303)
Check out a DisplayPort cable teardown. I was surprised how complicated they are! Long gone are the days of simple 'copper only' cables. These high bandwidth cables have electronics on both sides to negotiate with the devices they connect to and to optimise data throughput from one end of the cable to the other.
Re:How I built a keyboard/video/mouse switch for my two 4k m... by mncharity on Thursday September 03, 2020 @09:17AM (#24363726)
> A DisplayPort cable has 20 pins, so why can't it just be a 20 pole switch?

I use magnetic 20-pin USB C adapters to connect laptop thunderbolt and usb c to a DisplayPort headset and misc. Less worry about yanks; easy dis/re-connect; simplified cable and headset handling. No issues so far. I like them. Though I've not been pushing the DP bandwidth hard. And because they disconnect much more easily than a plug, I can't for instance move the laptop around and expect the cabling to simply follow.

But to use them for frequent hot swap, compared with a real switch, I'd be worried about duty cycle lifetime. And the dis/connect isn't hidden from the environment, which might be inconvenient.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by bronson on Thursday September 03, 2020 @06:33AM (#24362627)
Back in the old days (early 90s), they actually were many-pole switches. If you opened one up, it looked like a stack of washers with a bunch of wires coming out of it, more like a variable capacitor than a normal switch.

They were very expensive and very unreliable. If something was weird, click it back and forth a few times and maybe it fixes itself.

Nowadays the signaling is too fast to go through a physical switch and most devices would be unhappy to be plugged/unplugged so rapidly.

Re:How I built a keyboard/video/mouse switch for my two 4k m... by flatfilefan on Thursday September 03, 2020 @03:43AM (#24361692)
There isn’t a tb3 kvm switch available on the market, that would do what I need. So I’m just re-plugging the tb-3/usb-c docking station downlink cable between two laptops. All the peripherals are connected to the docking station so I don’t need to switch them.

Probably could build a mechanical contraption to do that on a lever push. So that’s what I’m curious about too: why yet no mechanical switch if I’m literally doing it manually already?

Re:How I built a keyboard/video/mouse switch for my two 4k m... by zachrose on Wednesday September 02, 2020 @06:39PM (#24359027)
Thanks everyone!