<div dir="ltr"><div>Hi guys,</div>I wanna make a summary about the USB touchscreen redirection offset problem. Hope to be helpful.<div><br><div><b>What is the problem?</b></div><div>Using KVM/QEMU windows10 VM, with spice & QXL enabled, USB touchscreen device redirection does not work as expected. There is some offset. </div><div>More specifically, the behaviour is quite different for different resolutions. </div><div><br></div><div>Case 1: both client OS and guest OS resolution are 1024x768. It works as expected, no offsets.</div><div>Case 2: client OS 1920x1080, guest OS 1024x768, there are offsets, but the proportion seems right. Video record is here:<a href="https://www.youtube.com/watch?v=ic97AClODx0&ab_channel=WalterMitty">https://www.youtube.com/watch?v=ic97AClODx0&ab_channel=WalterMitty</a></div><div>Case 3: Both client OS and guest OS are 1920x1080, there are significant offsets. Video record is here: <a href="https://www.youtube.com/watch?v=2AmDnByUWno&ab_channel=WalterMitty">https://www.youtube.com/watch?v=2AmDnByUWno&ab_channel=WalterMitty</a></div><div><br></div><div><b>What have I done to analyze this problem?</b></div><div>I have tried to capture the USB data packets to prove that the data Guest OS accepted is OK. Record here:<a href="https://www.youtube.com/watch?v=XjmBUiqhnWU&ab_channel=WalterMitty">https://www.youtube.com/watch?v=XjmBUiqhnWU&ab_channel=WalterMitty</a></div><div><br></div><div><b>What have I tried to overcome?</b></div><div>I changed the QEMU <b>vga</b> device type from <b>qxl</b> to <b>virtio </b>or <b>std</b>. The offset is gone. </div><div><br></div><div>However if you access your VM on SPICE remotely, from my experience, the performance of qxl is better than virtio.</div><div>That means if you want to use qxl to support USB touchscreen redirection, the workaround above is not for you.</div><div><br></div><div>With the help of Uri Lublin(<span style="color:rgb(85,85,85);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:0.75rem;font-weight:inherit;letter-spacing:0.3px;white-space:nowrap"><a href="mailto:ulublin@redhat.com">ulublin@redhat.com</a>),</span><span class="gmail-Apple-converted-space" style="font-family:"Helvetica Neue";font-size:13px"> </span><span style="font-family:"Helvetica Neue";font-size:13px"> I prefer to believe there is something buggy between qxl and SPICE-vdagent. For the performance consideration, I need QXL, not virtio. </span></div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue"">Because there is no GPU on my server and I need to access my virtual desktop from the remote. I will try to find a better solution. If you have any suggestions, please let me know.</p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue";min-height:15px"><br></p></div><div>Regards,</div><div>Walter.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 18, 2022 at 9:59 AM Walter Mitty <<a href="mailto:waltermitty121906@gmail.com">waltermitty121906@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>GuestOS: Win10</div><div>Host OS: Ubuntu 20.04</div><div>Client OS: Ubuntu 20.04</div><div><br></div>I enabled usb redirection on a touch screen. The position VM actually rendered has offset from the touching point on screen. I wanna fix it. But I don't know where to start. Could anyone give me some advice please?</div>
</blockquote></div>