Anything that can do better than 1080p is insanely expensive or cheap and flakey. I gave up looking and just got a new monitor with a KVM built in.
Most have one USB-C with 65w+ PD which includes the keyboard and mouse and then add 1-3 more slots that have HDMI and/or DisplatPort + USB-A for the keyboard and mouse.
Keen to know what you've tried. Or if anyone has found something good that isn't silly expensive or cheap and dodgy.
Yeah that's what ive been seeing as well, but honestly its hard to look up products and be sure they are real in the AI age (ironic, right?)
Currently I'm using my company supplied Dell WD19TB which I cannot recommend as it needed service already and doesn't support Displayport in from my server. Before that I was using the built in one on my monitor, which so far is my best option but I was looking for a discreet box due to the monitor arm cabling.
The HP G5 thunderbolt docks are (currently, at least) pretty stable IMO, provided the firmware is up to date on it.
NOT the hp g4 thunderbolt dock, that one the team I'm on is at a level 3 support ticket with HP for monitor issues that render my laptop basically unusable.
I wanted something similar from a remote company I was working for. They were pretty good about fulfilling requests, but when I asked for a good kvm switch they said they had trouble in the past and instead recommended a usb hub that can toggle between machines. Then connect both machines to the same monitor and toggle the input. Not ideal, but low cost and functional. Might not suit your needs (would be annoying if you have to frequently toggle back and forth), but if you're just trying to share your desk space between a work machine and personal, and the monitor input is easy to toggle, it's worth considering.
That is what I do. I have owned like 4 kvm switches. Even when I paid extra to get a "good" one they never lasted more than like a year or two. My USB switch has been going for about 3 years. Occasionally it glitches out and I have to unplug it from everything but it's only about every 3-5 months
Tbh, just run the Ubuntu box headless and ssh into it. You can do anything you’d need to. Even better, swap it to Debian or something like that, because Ubuntu is unfortunately kinda undergoing gradual enshitification lately.
The only issue I have had is that if I'm switched to computer B and computer A goes to sleep, I cannot wake it up through the switch. This was not a deal breaker for me because I have easy access to the power button of both computers. I wonder if this issue may be resolved by powering the switch with a USB-C power plug, since it otherwise requires USB power from both computer connections.
I'm using this as well and came in to recommend it. One machine is thunderbolt to DP. One is DP to DP. Both Windows machines and both work well. I used this cable https://a.co/d/diTREUK however I'd look for a higher DP/thunderbolt revision now.
Make sure that, whatever switch you want to get, the switch supports simulating output (edit simulation/storing) and USB devices. Otherwise every switching action would cause disconnect and connect actions on the hosts.
One of them is a laptop, why ssh to the server isn't an option? Set up tmux on the server so it always connects to the same session, so you can just continue where you left last time. If you need desktop support, rdp in gnome works really well.
E.g if you connect with this command, and tmux is installed on the server, it will start a new session named "main". If a session with that name exists it will connect to that:
ssh -t pi@192.168.1.2 tmux new-session -A -s main
Add something to .bashrc on the server to always do the same if you work on that phisically:
I do plan to primarily ssh into my box but I'd still like plain old physical access, particularly while I get things like tailscale, DNS, and a reverse proxy setup.
Id also like to make sure my work PC and home PC are completely segregated for legal reasons, but I plan to to ssh into it from a different laptop anyway.
Use WSL on the laptop for ssh, that's actually a VM. VM separation should work correctly, or we have a much bigger problem. Just reset WSL, everything should be wiped related to the ssh sessions. Work IT would maybe allow that.
I have a similar setup and in the end just went for a cheap chinese („ESKEVE“) 4x HDMI 2.0 KVM switch that supports 4K60. No problems except HDR does not work properly, which is not useful on my monitor anyway. Laptops are on USB-C docks with HDMI 2.0 out, PC uses a passive DP to HDMI cable.
I've been very happy with my Monoprice "Blackbird 4K DisplayPort 1.4 USB 3.0 4x1 KVM Switch, 4K@60Hz, HDR, YCbCr 4:4:4, HDCP 2.2". I run an ultrawide at 3840x1600 @ 144 Hz, or HDR at 120 Hz, G-Sync both, and it works wonderfully. It took some effort to get all the required devices using the same connections - went through quite a few "USB-C to DP" cables from Amazon that had to be returned because they couldn't do the high refresh like they claimed ... but once I got everything set up, it's worked like a dream, 3+ years and counting now I think.