I couldn't resist waiting for a refund on the HDMI KVM switch.
I ordered another, even cheaper one.

Now it works perfectly, but the problem wasn't the HDMI KVM switch.
But the command to assign the MOUSE directly in QEMU
like this:
I added a second mouse directly to the USB port on the PC I'm using.
Then:
sudo libinput list-devices:
Result:
Device: Logitech USB Optical Mouse
Kernel: /dev/input/event21
etc. etc.
sudo --preserve-env qemu-system-ppc -M amigaone -m 2048 -bios /home/white/Downloads/u-boot-amigaone.bin -serial stdio -drive media=disk,format=raw,file=/home/white/Downloads/Radeon/1ONE-32gb.raw -vga none -device vfio-pci,host=04:00.0,bus=pci.0,x-vga=on,multifunction=on -device bochs-display,romfile="" -accel tcg -device rtl8139,netdev=mynet0 -netdev user,id=mynet0 -object input-linux,id=mouse2,evdev=/dev/input/event21,grab_all=on,repeat=on
-device usb-mouse,id=mouse2
Now it's perfect I can use it A single monitor with the HDMI KVM switch.
There's no lag whatsoever with anything I use: the mouse, monitor, and everything else.
It's perfect.

Without hovering with:
-object input-linux,id=mouse2,evdev=/dev/input/event21,grab_all=on,repeat=on
-device usb-mouse,id=mouse2
This HDMI KVM switch also worked poorly with AmigaOS,
while it works flawlessly with PS5, for example.
I also remember that I now use linux-vfio for Arch in case it might be useful to others.
https://aur.archlinux.org/packages/linux-vfio-headersVIDEO Switch HDMI KVM:
https://youtu.be/hHEkx4ROhgA
Edited by white on 2025/9/20 6:18:45
Edited by white on 2025/9/20 7:12:15