I have two computer connected to a single keyboard/mouse with a kvm switch (an iogear 2-port usb vga). The keyboard and the mouse are very basic model from Microsoft that came with the computer. Most of the time, I switch, it take a second or two and then it work.
But sometime, when switching back to my main computer on Debian Stretch, the mouse will work and I have to switch back and forth 2-3 times for it to work again.
In dmesg I have this error message when this happend.
[14189.730140] hid-generic 0003:045E:0084.0030: hiddev0,hidraw1: USB HID v1.11 Device [Microsoft Microsoft Basic Optical Mouse] on usb-0000:00:14.0-6/input0
[14209.021429] usb 1-5: USB disconnect, device number 48
[14209.339453] usb 1-6: USB disconnect, device number 49
[14210.635420] usb 1-5: new low-speed USB device number 50 using xhci_hcd
[14210.781783] usb 1-5: New USB device found, idVendor=045e, idProduct=0752
[14210.781788] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14210.781791] usb 1-5: Product: Wired Keyboard 400
[14210.781793] usb 1-5: Manufacturer: Microsoft
[14210.786474] input: Microsoft Wired Keyboard 400 as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:045E:0752.0031/input/input54
[14210.844097] hid-generic 0003:045E:0752.0031: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboard 400] on usb-0000:00:14.0-5/input0
[14210.963415] usb 1-6: new low-speed USB device number 51 using xhci_hcd
[14211.113562] usb 1-6: New USB device found, idVendor=045e, idProduct=0084
[14211.113567] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14211.113570] usb 1-6: Product: Microsoft Basic Optical Mouse
[14211.113573] usb 1-6: Manufacturer: Microsoft
[14211.118728] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118751] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118769] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118797] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118815] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118883] hid-generic 0003:045E:0084.0032: collection stack underflow
[14211.118902] hid-generic 0003:045E:0084.0032: item 0 0 0 12 parsing failed
[14211.118938] hid-generic: probe of 0003:045E:0084.0032 failed with error -22
Other than buying a better kvm switch, is there a way to fix it? This problem only occur on my main computer not on the second one (Debian 8) on the kvm switch.