GNOME Bugzilla – Bug 735768
PS/2 Keyboard input is delayed in Windows 8.1 guest
Last modified: 2016-03-31 13:22:00 UTC
The PS/2 keyboard input is delayed by 1/4 to 1/3 seconds on a freshly installed Windows 8.1 64-bit, mouse responds fine. Setting it manually (in the libvirt config file) to USB seems to solve it.
(In reply to comment #0) > The PS/2 keyboard input is delayed by 1/4 to 1/3 seconds on a freshly installed > Windows 8.1 64-bit, mouse responds fine. > > Setting it manually (in the libvirt config file) to USB seems to solve it. Can you provide *exactly* what you have changed in the config file? By config file, you mean the .xml file relative to your box under ~/.config/libvirt/qemu/ ?
Yes, that file. I have set “/domain/devices/input[@type=("mouse", "keyboard")]/@bus” to “usb”. But I don't know, if that was the problem or just fixed the symptom.
Ah, so it seems the default input devices setup by libvirt are setup to use ps/2 for some reason. Should be trivial to fix this in Boxes but I'd like to get a 2nd opinion on whether it could cause some other issues if Boxes manually sets up input devices with USB bus or not.
Ouch, this will need a minor change in libvirt-glib too. :(
(In reply to comment #4) > Ouch, this will need a minor change in libvirt-glib too. :( Besides that, it might not be as trivial as I thought. :( If Boxes explicitly adds USB mouse and keyboard to config, libvirt still adds ps/2 devices in addition. :(
Created attachment 287385 [details] [review] vm-configurator: Refactor set_tablet_config() Seperate out most of it into a more generic, set_input_config(), which we will use to setup other input devices in the following patch.
Created attachment 287386 [details] [review] vm-configurator: Set 'USB' bus for input devices Lets explicitly set the bus of input devices to be USB as for some devices libvirt/qemu will choose PS/2 by default and for keyboards (at least), PS/2 is reported to be slower than USB.
Created attachment 287387 [details] [review] vm-configurator: Explicitly assign mouse This is to ensure that we have a USB mouse in new domains. While we have not received any reports of PS/2 mouse (added by libvirt/qemu) being slower than USB mouse, we have had reports about that about PS/2 keyboard vs. USB one. While we are adding USB keyboard, lets add USB mouse too, just to be sure.
Created attachment 287388 [details] [review] build: Require libvirt-gconfig >= 0.2.0 Require git master of libvirt-gconfig to be able to explicitly add keyboard device to new domains.
Created attachment 287389 [details] [review] vm-configurator: Explicitly assign keyboard This is to ensure that we have a USB keyboard in new domains. We have received reports of PS/2 keyboard (added by libvirt/qemu by default) being slower than USB mouse (at least under Windows 8),
Attachment 287385 [details] pushed as f9024d6 - vm-configurator: Refactor set_tablet_config() Attachment 287386 [details] pushed as 5b92a6e - vm-configurator: Set 'USB' bus for input devices Attachment 287387 [details] pushed as 0db6a10 - vm-configurator: Explicitly assign mouse Attachment 287388 [details] pushed as 1423f6d - build: Require libvirt-gconfig >= 0.2.0 Attachment 287389 [details] pushed as f425a36 - vm-configurator: Explicitly assign keyboard
Yikes, this breaks Win XP installer. :(