Hello all, I’m looking for a switch/kvm for my home setup. ive been through a few tries and none of them have worked for one reason or another.

I have two machines,

A windows 11 work laptop

  • USB-C out, both USB and display port.
  • HDMI out
  • USB 2.0 out

A Ubuntu based personal server

  • Displayport out
  • USB-C out (no Displayport)

For displays, I have a single double wide 4k monitor

Additionally I have a USB-C hub all my peripherals are connected to.

  • pemptago@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    19 hours ago

    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.

    • TrickDacy@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      16 hours ago

      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

  • turtle@lemm.ee
    link
    fedilink
    English
    arrow-up
    5
    ·
    22 hours ago

    I picked up one of these ugreen displayport KVMs a couple months ago and so far have been happy with it:

    https://www.amazon.com/UGREEN-Displayport-Support-Monitor-Keyboard/dp/B0CFFFHFJT

    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.

    • zamithal@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 hours ago

      Awesome :) does the input support display port over usb-c or will i need an hdmi to displayport adapter for the windows laptop?

      • Nach [Ohio]@midwest.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        20 hours ago

        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.

      • turtle@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        18 hours ago

        I don’t believe that the USB-C ports can take video input, so you would most likely need to use either and HDMI to DP or USB-C to DP adapter.

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    21 hours ago

    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.

  • gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    20 hours ago

    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.

  • infeeeee@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    22 hours ago

    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:

    if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
    tmux new-session
    fi
    
    • zamithal@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      21 hours ago

      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.

      • infeeeee@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        21 hours ago

        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.

        • gravitas_deficiency@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          20 hours ago

          Note that some issue devices have VT-x disabled and the bios locked down by Corp IT for one reason or another, so a VM may not actually be possible from the work issue device here.