i think you could actually use a physical switch if you were so inclined. you’d need something that switches from one USB device to another, entirely breaking the circuit. i think things like this already exist for printers. might just work??
You’d still need to stop the drivers and start the correct ones. I think my proposed solution via the gpio is probably the best option. Although, you’d probably be able to do all of that without rebooting, it would just require more code.
^^ my other hobby