After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735768 - PS/2 Keyboard input is delayed in Windows 8.1 guest
PS/2 Keyboard input is delayed in Windows 8.1 guest
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.15.x
Other Linux
: Normal major
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-08-31 21:25 UTC by madeit
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vm-configurator: Refactor set_tablet_config() (1.21 KB, patch)
2014-09-29 18:04 UTC, Zeeshan Ali
committed Details | Review
vm-configurator: Set 'USB' bus for input devices (1.05 KB, patch)
2014-09-29 18:04 UTC, Zeeshan Ali
committed Details | Review
vm-configurator: Explicitly assign mouse (1.79 KB, patch)
2014-09-29 18:04 UTC, Zeeshan Ali
committed Details | Review
build: Require libvirt-gconfig >= 0.2.0 (834 bytes, patch)
2014-09-29 18:04 UTC, Zeeshan Ali
committed Details | Review
vm-configurator: Explicitly assign keyboard (1.70 KB, patch)
2014-09-29 18:04 UTC, Zeeshan Ali
committed Details | Review

Description madeit 2014-08-31 21:25:45 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.
Comment 1 Fabiano Fidêncio 2014-09-18 00:52:55 UTC
(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/ ?
Comment 2 madeit 2014-09-23 15:37:13 UTC
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.
Comment 3 Zeeshan Ali 2014-09-29 15:25:55 UTC
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.
Comment 4 Zeeshan Ali 2014-09-29 15:34:05 UTC
Ouch, this will need a minor change in libvirt-glib too. :(
Comment 5 Zeeshan Ali 2014-09-29 15:42:32 UTC
(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. :(
Comment 6 Zeeshan Ali 2014-09-29 18:04:27 UTC
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.
Comment 7 Zeeshan Ali 2014-09-29 18:04:31 UTC
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.
Comment 8 Zeeshan Ali 2014-09-29 18:04:35 UTC
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.
Comment 9 Zeeshan Ali 2014-09-29 18:04:39 UTC
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.
Comment 10 Zeeshan Ali 2014-09-29 18:04:43 UTC
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),
Comment 11 Zeeshan Ali 2014-10-11 17:39:43 UTC
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
Comment 12 Zeeshan Ali 2015-03-31 16:15:39 UTC
Yikes, this breaks Win XP installer. :(