For TV/monitor switching there are, IIRC, switch boxes that can handle automatic priority-based switching.  i.e.  if device 1 is on and device 2 is on, display device 1, if device 1 is off display device 2.  Do a search to find these switch boxes, though they're probably pricey.  Otherwise, use a standard switch box, since you're going to have to open your cabinet to power on the device and change controllers.