When I switch between two machines with a KVM, the wirelss mouse gets messed up for one machine (Ubuntu). To fix it, I unplug the USB dongle from the KVM switch then plug it back in. I don't know why this works. I'd like to avoid having to monkey around with the hardware. Is there some other way to get the same benefit without having to grope around and physically manipulate things? Maybe some sort of mouse reset command to run on the one machine?
Update: problem has a workaround, and the workaround is better than any directly solution to the original problem. I found software that lets keyboard+mouse focus switch from one machine to another, just by sliding the cursor off one side of one monitor, for one machine, onto another monitor for the other machine. The KVM stays always set to the Ubuntu machine. The mouse works fine, motion and scroll wheel and all, on both machines all the time. There's more than one such thing, and Synergy is what I ended up with. As an unexpected benefit, I can can copy-paste text between the two machines, which I wouldn't even have thought of asking for.