5 ms·
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 beca
by formerly_proven 6y ago
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).
- JoshTriplett 6y agoCan you provide more information about the details of DisplayPort you're referring to, and what actual spec-required behavior you're referencing?
- formerly_proven 6y agoThat'd be the most gracious DisplayPort hot-plug detect. I assume garbling windows isn't technically mandated by the spec, it's just what DWM does when Windows tells it to "rearrange" all windows on a desktop that has lost a bunch of displays, because Windows helpfully noticed that they were turned off. https://www.reddit.com/r/nvidia/comments/66opvp/this_displayport_hotplug_madness_finally_needs_to/ https://www.reddit.com/r/nvidia/comments/66opvp/this_display... https://answers.microsoft.com/en-us/windows/forum/all/how-to-disable-the-automatic-monitor-detection-or/37da9cd5-1e3e-4970-a9fb-1ed97a6dbe3e https://answers.microsoft.com/en-us/windows/forum/all/how-to... https://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/windows-7-dual-monitors-turning-off-a-monitor/e0b8bb93-5960-4273-b959-4e3177946f8d?page=3 https://answers.microsoft.com/en-us/windows/forum/windows_7-... (AMD workaround) https://www.overclock.net/forum/74-graphics-cards-general/1235582-dealing-displayport-hdmi-autodetect.html https://www.overclock.net/forum/74-graphics-cards-general/12... https://superuser.com/questions/630555/turning-displayport-monitor-off-disables-monitor-completely https://superuser.com/questions/630555/turning-displayport-m... https://www.nvidia.com/en-us/geforce/forums/discover/209725/annoying-desktop-resets-on-monitor-power-off/ https://www.nvidia.com/en-us/geforce/forums/discover/209725/... https://www.reddit.com/r/Windows10/comments/4895u9/turning_off_a_displayport_monitor_samsung_results/ https://www.reddit.com/r/Windows10/comments/4895u9/turning_o... https://www.reddit.com/r/nvidia/comments/9qn0dk/has_anyone_figured_out_a_way_to_disable_dp/ https://www.reddit.com/r/nvidia/comments/9qn0dk/has_anyone_f... https://www.reddit.com/r/windows/comments/788l4f/put_one_displayport_monitor_to_sleep_on_a/ https://www.reddit.com/r/windows/comments/788l4f/put_one_dis... and many, many more, like this one: https://what.thedailywtf.com/topic/24548/displayport-is-the-world-s-biggest-piece-of-shit https://what.thedailywtf.com/topic/24548/displayport-is-the-...
- teel 6y agoThis (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.
- vultour 6y agoBe 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.
- ardy42 6y ago> 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/ 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.
- formerly_proven 6y agoI haven't used them myself, but I've heard the KVM switches sold by level1tech don't trigger that.
- metaphor 6y agoA 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 https://youtu.be/0b0_yz-oDjQ?t=74
- metaphor 6y ago> 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.
- metaphor 6y ago...and I now see your response[1] to an equivalent question. [1] https://news.ycombinator.com/item?id=24359220 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.
- MuncleUscles 6y agoYou wouldn't happen to know how to prevent the tantrum from happening? It's been driving me nuts
- formerly_proven 6y agoDisable all power saving / standby features and never turn the screens off manually or cut their power while the PC is on.
- formerly_proven 6y agoAnd 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.