This post explains how to configure the keyboard/mouse sharing software `barrier` with automatic display switching to accomplish full KVM switch functionality. **Unfortunately barrier does not work under `wayland` yet.**
Linux
I had an issue with my T480s recently when running Ubuntu 21.10. The laptop suspends properly and can be woken with the USB keyboard but right after waking up the USB keyboard and mouse do not work. Here's the workaround.
This one stumped me for a while and I only realized what was wrong after getting ready to submit a bug report to `dovecot`. I am putting it here since it's not a common case and it might help some people. I found no help online when it happened to me.