Fast switching mouse + keyboard between macs

Which kind of trackpad and mouse do you have? Others are having success with this without discovery mode. If you don’t turn off the power, does it reconnect to the first Mac without your asking?