<font color='black' size='2' face='arial'>Hi,<br>
<br>
Thanks for your reply.<br>
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>
From: Marc-André Lureau <mlureau@redhat.com><br>
To: jkwek1 <jkwek1@aol.com><br>
Cc: spice-devel <spice-devel@lists.freedesktop.org><br>
Sent: Sun, May 31, 2015 2:32 pm<br>
Subject: Re: [Spice-devel] keypress-delay issue<br>
<br>
<div id="AOLMsgPart_1_76f554ce-ffb7-48b9-9a33-b1f56690d477" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">
<pre style="font-size: 9pt;"><tt>
Hi
----- Original Message -----
> Hi all,
>
> I've noticed a typing
delay in my VM's through the SPICE protocol when typing
> emails or text files.
It's noticeable to the point that it is hurting my
> typing speed and is
contributing to more mistakes (as the letters appear
> after the slight delay).
I'm running Fedora 21 on the host and VM and the VM
> resides locally
(localhost). Searches on the matter brought me to a couple
> of threads on this
list where people had similar issues:
>
>
<a href="http://lists.freedesktop.org/archives/spice-devel/2012-October/011317.html" target="_blank">http://lists.freedesktop.org/archives/spice-devel/2012-October/011317.html</a>
>
<a href="http://lists.freedesktop.org/archives/spice-devel/2014-June/016992.html" target="_blank">http://lists.freedesktop.org/archives/spice-devel/2014-June/016992.html</a>
>
It was discussed several time in the past, last I remember the issue is
mainly with Windows guests,
There are some hints to solve it in this
page:
<a href="http://serverfault.com/questions/624690/windows-guest-on-kvm-qemu-suffers-horrible-key-lag" target="_blank">http://serverfault.com/questions/624690/windows-guest-on-kvm-qemu-suffers-horrible-key-lag</a>
<br>
</tt><font size="2"><font face="Arial, Helvetica, sans-serif">Yes I saw this too when researching. However my guest is Fedora 21, not Windows.</font></font><br>
<tt>
(iirc,
using a usb keyboard would solve it too)
<br>
</tt><font size="2"><font face="Arial, Helvetica, sans-serif">I did see this also and played around with changing the input type of the keyboard to USB in my xml file. However it appears that QEMU creates the PS/2 keyboard regardless and thus I end up with two keyboards and not sure which it is using. I saw the same lag with this approach.</font></font><br>
<tt>
> As far as I can tell, there's no
way to configure this through the various
> spice clients I have available to
me; the only option for me is to recompile
> spice-gtk with a different value
for keypress-delay. I would love to see an
> option to configure this or change
the code to auto-tune it to disable it on
> localhost connections. Any thoughts
on implementing this?
I am not convinced at this point that the
keypress-delay is problematic. Do you have a particular use case, or simply text
typing?
<br>
</tt><font size="2"><font face="Arial, Helvetica, sans-serif">Use case is any sort of regular typing in a VM, whether in gedit, vi in a terminal window, or typing an email in a browser window. It is a slight but noticeable delay when typing in the VM vs. on the physical host. The VM is running locally so I don't need there to be any delay to compensate for network conditions. <br>
<br>
In the link from 2014 I previously posted, the person who recompiled with 10ms value for keypress-delay saw a huge improvement in the overall feel. My hope for a solution is that the keypress-delay can be auto-tuned based on network conditions or user configurable. Thank you for considering this.</font></font><br>
<tt>
thanks
<br>
<br>
<font size="2"><font face="Arial, Helvetica, sans-serif">Thanks,<br>
<tt><font face="Arial, Helvetica, sans-serif">Jared Kwek</font></tt><br>
</font></font></tt></pre>
</div>
<!-- end of AOLMsgPart_1_76f554ce-ffb7-48b9-9a33-b1f56690d477 -->
</div>
</font>