Disconnect/connect cycles on Mac

KVM Model:

1.4 Display Port KVM Switch - Single Monitor - Four Computer

USB Interface (5-gigabit or 10-gigabit):

10-gigabit


Problem:

I recently upgraded from the 1.4 Display Port KVM Switch - Single Monitor - Two Computer (from Aug 2023). The two-computer version works flawlessly but doesn’t have enough ports to accommodate the new PC I just added.

The four-computer version has this issue: when I wake up my Mac or switch KVM ports to it, it seems to cycle between a disconnected state and connected state about every 300-1000ms. It happens frequently enough that the macOS display manager loses its mind, moving windows around between displays at random.

Sometimes this will self-stabilize into a connected state in as few as 5 cycles. It can take upwards of 30 cycles and still stabilize. I have observed this cycling state run for minutes without stabilizing though. If I power cycle the KVM, it starts the process anew, and may or may not stabilize.

My intended hardware configuration is

  • MacBook Pro (16-inch, Nov 2024), running macOS 15.7.3
  • connected via Thunderbolt 4 to a Razer Thunderbolt 4 Dock
  • connected via USB-C to displayport 1.4 cable to the L1Techs KVM
  • connected via displayport 1.4 to an Acer Predator X38P

I include this for completeness, but note that I have the same problem even with the Mac connected directly to the KVM switch (see detailed notes below).

Changing the port to which the Mac is connected on the 4-port KVM does not alter behavior.

The 2-port KVM still runs flawlessly when connected to the 4-port KVM’s power brick, so I think the 4-port is getting adequate power.

The cable from Mac to KVM (dock to KVM) is a Pluggable USB-C to DisplayPort cable.

The cable from the KVM to the monitor is a short Ivanky full-size DP cable.

I’m running at 3840x1600 @ 85 Hz, which shouldn’t be pushing too hard.

This failure mode is annoying enough that I’ve currently fallen back on the 2-port KVM and am using additional ports on the monitor and a spare keyboard/mouse for the least-frequently used PC. The Mac is the daily driver though.

Looking through the macOS system logs, I can see symptoms of the disconnect/connect happening: for example “cursor moving to display 0x1” then to 0x5 then to 0x1, etc. I can see that display change events are happening, but I can’t see any errors or other details.

I don’t have an extra cable suitable for connecting the Thunderbolt port to DP, but I could order one if that’s really the only path forward.

Is there anything else I can do to diagnose what’s going wrong here? Given the way the two-port works in the same configuration I worry that the new four-port may be defective. Please advise on next steps.

Isolation testing

  • Display → Mac directly: works
  • Display → Dock → Mac: works
  • Display → 4-port KVM → Mac: fails
  • Display → 4-port KVM → Dock → Mac: fails
  • Display → 2-port KVM → Dock → Mac: works
  • 2-port KVM with 4-port’s power supply: works

The other PC connected here is a Framework Desktop running Linux. It has no issues via either the 2- or 4-port KVM. It is normally using a different cable to connect to the KVM, but if I connect it via the USB-C to DP cable I’m using for the Mac it works there too. This is suggestive that the cable I would normally use to connect the Mac to the KVM is OK, but I realize that the different OSes use different features, so this may not be dispositive.

Thank you!

Attempt connecting a powered Thunderbolt 4 hub (such as the CalDigit TS4) to the KVM rather than directly to the Mac.

I’ve done that: listed above as “Display → 4-port KVM → Dock → Mac: fails”.

The dock in this case is a Razer Thunderbolt 4 dock and not a CalDigit dock, but it is powered. It makes no difference to the behavior.

Does this problem still happen when you have the MagSafe power cable connected to the MacBook Pro or when the built-in display is on?

I have seen a similar issue to what you describe when I try to use my monitor’s built-in KVM switch when trying to use a single Thunderbolt cable to carry power+displayport+USB while the lid was closed.

All of the experiments above were lid-open. Open or closed makes no difference to the behavior.

Adding MagSafe power didn’t change behavior either.

The SNR loss through the 4 port kvm is very slightly worse than the 2 port KVM. You have a combination of cables here that have too much loss to tolerate the 4 port kvm… its a digitial signal so… its probably borderline even on the 2 port kvm… I bet you might have had periodic “black screen” cut-outs with that config.

It is probably fixable with a ferrite bead (if external interference) or possibly swapping the cable from the kvm to the predator with a club3d brand dp cable. @Level1_Amber might have missed this entry, sorry.

The Actual Ports on the kvm vary a tiny bit as well, analog medium, so behavior on port 1/2/3/4 may not be exactly the same. Internally 1/2 are grouped and 3/4 are grouped so you might try port 3/4 with the mac if 1/2 is not working.

We have had problems with ivanky brand cables being borderline in the past.

Oop yeah I did miss this.

Here’s a link to the cable he’s referring to:

Great info; thank you! I’ve ordered some cables and will report back once I’m able to test those.

Switching the Ivankey cable (KVM to Predator monitor) to the Club 3D DP 1.4 cable you recommended helps a little but not completely. The Mac now cycles every ~5 seconds instead of every 300-1000 ms. It’s also helpful insofar as I have yet to ride out a cycle where it did not eventually stabilize, but nearly every time still requires 3-8 cycles of signal, then signal loss, then signal before the thing stabilizes. I also now see the occasional black screen where it loses sync (this was not a problem in the two port setup).

Switching the cable between the Mac and the KVM to a [Club 3D USB-C to DP 1.4](amazon’s B07R1NBCXK) cable that claims to be rated for 4K@120 Hz (and should therefore be happy to carry my sub-4K signal @ 85 Hz) made things actively worse than the Pluggable cable. I never once achieved sync, even if I cut the powered TB4 dock out of the loop.

Switching to ports 3 or 4 has no meaningful effect.

Any other ideas to try?

Is there anything in your setup that could cause external interference? Audio dacs, amps, magnets, etc?

The problem here turned out to be cabling, as you suspected. After switching to shorter 1.2 meter DP 2.1 cables with ferrite beads the system has been solid as a rock.

1 Like