From 44aa5d78d77602d08c416fc03bbc5caf1db68269 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Apr 03 2013 10:17:47 +0000 Subject: Fix USB-tablet not working with some Linux guests (bz #929068) --- diff --git a/0111-usb-tablet-Don-t-claim-wakeup-capability-for-USB-2-v.patch b/0111-usb-tablet-Don-t-claim-wakeup-capability-for-USB-2-v.patch new file mode 100644 index 0000000..905bff0 --- /dev/null +++ b/0111-usb-tablet-Don-t-claim-wakeup-capability-for-USB-2-v.patch @@ -0,0 +1,32 @@ +From 2d3225f34dbe42d215c7809f5f82186eafe7f4c2 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Tue, 2 Apr 2013 19:13:06 +0200 +Subject: [PATCH 1/2] usb-tablet: Don't claim wakeup capability for USB-2 + version + +Our ehci code does not implement wakeup support, so claiming support for +it with usb-tablet in USB-2 mode causes all tablet events to get lost. + +http://bugzilla.redhat.com/show_bug.cgi?id=929068 + +Signed-off-by: Hans de Goede +--- + hw/usb/dev-hid.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c +index 9701048..317b474 100644 +--- a/hw/usb/dev-hid.c ++++ b/hw/usb/dev-hid.c +@@ -236,7 +236,7 @@ static const USBDescDevice desc_device_tablet2 = { + .bNumInterfaces = 1, + .bConfigurationValue = 1, + .iConfiguration = STR_CONFIG_TABLET, +- .bmAttributes = 0xa0, ++ .bmAttributes = 0x80, + .bMaxPower = 50, + .nif = 1, + .ifs = &desc_iface_tablet2, +-- +1.8.1.4 + diff --git a/qemu.spec b/qemu.spec index 62cbe47..cd2984b 100644 --- a/qemu.spec +++ b/qemu.spec @@ -128,7 +128,7 @@ Summary: QEMU is a FAST! processor emulator Name: qemu Version: 1.4.0 -Release: 8%{?dist} +Release: 9%{?dist} # Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped Epoch: 2 License: GPLv2+ and LGPLv2+ and BSD @@ -201,6 +201,8 @@ Patch0108: 0108-iscsi-look-for-pkg-config-file-too.patch Patch0109: 0109-tcg-Fix-occasional-TCG-broken-problem-when-ldst-opti.patch # Fix possible crash with VNC and qxl (bz #919777) Patch0110: 0110-qxl-better-vga-init-in-enter_vga_mode.patch +# Fix USB-tablet not working with some Linux guests (bz #929068) +Patch0111: 0111-usb-tablet-Don-t-claim-wakeup-capability-for-USB-2-v.patch BuildRequires: SDL-devel BuildRequires: zlib-devel @@ -676,6 +678,8 @@ CAC emulation development files. %patch0109 -p1 # Fix possible crash with VNC and qxl (bz #919777) %patch0110 -p1 +# Fix USB-tablet not working with some Linux guests (bz #929068) +%patch0111 -p1 %build @@ -1285,6 +1289,9 @@ getent passwd qemu >/dev/null || \ %endif %changelog +* Wed Apr 03 2013 Hans de Goede - 2:1.4.0-9 +- Fix USB-tablet not working with some Linux guests (bz #929068) + * Tue Apr 02 2013 Cole Robinson - 2:1.4.0-8 - Fix dep on seavgabios-bin