qemu/kvm's absolute mouse interface (-usbdevice tablet) doesn't work
|Reported by:||benb||Owned by:||mmlr|
|Has a Patch:||no||Platform:||All|
When you start an OS with GUI in qemu, the most preferred way to do it generally is "-usbdevice tablet", because that allows the VNC (or whatever you use as VM display) to report absolute mouse coordinates to the VM, which match the pointer's position on the real desktop. That means that the mouse pointer is exactly at the point where it is on the real desktop. With -usbdevice mouse, only relative coordinates can be reported, because that's how hardware mice work, so if the VM desktop and the real desktop disagree about mouse acceleration or similar, which is almost always the case, you get seemingly erratic mouse behavior as you cross the border between VM window and rest of desktop, which is common and very irritating.
kvm -hda haiku-r1alpha2-anyboot.image -m 512 -vnc :1 -k de -usbdevice tablet -net nic,model=pcnet -net tap,...
- On your desktop, start krdc vnc:/vmhost:1
- Try to access the desktop with the mouse. Move the mouse quickly over the window. Click.
- You don't see any mouse pointer moving
- While you move the mouse pointer, you see the CPU meter spike (to 50% here)
- In the most bottom right, there is a 1x1 black pixel, which I guess is part of the mouse pointer.
- When you click, the desktop menu appears in the bottom right. You still cannot select any entries with the mouse.
- Keyboard words
- Mouse pointer moves and works.
Additional information: "-usbdevice mouse" works, but not as well as tablet would, because it's not in sync with the desktop where VNC runs.