Query QEMU Tablet / Mouse position / Mouse freeze in guest
Hello,
is there a way to query the current cursor position of the QEMU tablet or QEMU Mouse? Or is there a way to see that the mouse was moved e.g. since the last query?
I currently have some trouble with the mouse - it just freezes in the guest after an undefined period (might work before the freeze for several days) - until I right click the hardware mouse within the freeze of the cursor, then it unfreezes.
My problem is that I do not see any error message or hint neither in QEMU nor in the guest nor in the host operating system what could point me to the reason of this behavior.
If I uninstall and reinstall the driver in the guest, it works again, too (in addition to the possibility of the mouse-right-click).
My idea is now to get some verbose information over QMP or QEMU-Monitor Console remotely when this happens. This would give me the information if the issue appears in QEMU (or the host OS) or only in the guest. I found a method for setting the pointer to an absolute position, but a readback seems to be missing.
I see this behavior on serveral hardware configurations, so it's unlikely that this issue is bound to a particular hardware.
Both systems run QEMU 2.1.0 w/ KVM enabled.
Thanks a lot.
Best regards,
Erik
Hi,
Quoted 3 lines
is there a way to query the current cursor position of the QEMU tablet or QEMU Mouse? Or is there a way to see that the mouse was moved e.g. since the last query?
There are "input_*" tracepoints. Also "info mice" monitor command tells which is the active pointer device.
Quoted 4 lines
I currently have some trouble with the mouse - it just freezes in the guest after an undefined period (might work before the freeze for several days) - until I right click the hardware mouse within the freeze of the cursor, then it unfreezes.
Which device? usb-tablet? usb has tracepoints too ...
cheers,
Gerd
Hi Gerd,
thanks a lot!
After some browsing through search result lists, it looks similar to the issue that was reported here:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1323758
I will try the input_* tracepoints if this does not fix it.
I need some feedback from my colleague to check if it was actually fixed by the solution in the bug report on mutiple other systems.
Best regards,
Erik
Quoted 21 lines · Gerd Hoffmann
Hi,
Quoted 3 lines
is there a way to query the current cursor position of the QEMU tablet or QEMU Mouse? Or is there a way to see that the mouse was moved e.g. since the last query?
There are "input_*" tracepoints. Also "info mice" monitor command tells which is the active pointer device.
Quoted 4 lines
I currently have some trouble with the mouse - it just freezes in the guest after an undefined period (might work before the freeze for several days) - until I right click the hardware mouse within the freeze of the cursor, then it unfreezes.
Which device? usb-tablet? usb has tracepoints too ...
cheers,
Gerd