cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 61ecb3c995018bc9ec901d376004c1d092d166ff Mon Sep 17 00:00:00 2001
9ae3a8
From: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Date: Wed, 1 Jun 2016 12:24:01 +0200
9ae3a8
Subject: [PATCH 1/3] hw/input/hid.c Fix capslock hid code
9ae3a8
9ae3a8
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Message-id: <1464783841-27701-2-git-send-email-kraxel@redhat.com>
9ae3a8
Patchwork-id: 70522
9ae3a8
O-Subject: [RHEL-7.3 qemu-kvm PATCH 1/1] hw/input/hid.c Fix capslock hid code
9ae3a8
Bugzilla: 1256741
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9ae3a8
RH-Acked-by: Thomas Huth <thuth@redhat.com>
9ae3a8
9ae3a8
From: Dinar Valeev <dvaleev@suse.com>
9ae3a8
9ae3a8
When ever USB keyboard is used, e.g. '-usbdevice keyboard' pressing
9ae3a8
caps lock key send 0x32 hid code, which is treated as backslash.
9ae3a8
Instead it should be 0x39 code. This affects sending uppercase keys,
9ae3a8
as they typed whith caps lock active.
9ae3a8
9ae3a8
While on x86 this can be workarounded by using ps/2 protocol. On
9ae3a8
Power it is crusial as we don't have anything else than USB.
9ae3a8
9ae3a8
This is fixes guest automation tasts over vnc.
9ae3a8
9ae3a8
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
9ae3a8
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
(cherry picked from commit 0ee4de5840ccc1072459ec68062bfb63c888a94d)
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/input/hid.c | 2 +-
9ae3a8
 1 file changed, 1 insertion(+), 1 deletion(-)
9ae3a8
9ae3a8
diff --git a/hw/input/hid.c b/hw/input/hid.c
9ae3a8
index 14b3125..db45c89 100644
9ae3a8
--- a/hw/input/hid.c
9ae3a8
+++ b/hw/input/hid.c
9ae3a8
@@ -41,7 +41,7 @@ static const uint8_t hid_usage_keys[0x100] = {
9ae3a8
     0x07, 0x09, 0x0a, 0x0b, 0x0d, 0x0e, 0x0f, 0x33,
9ae3a8
     0x34, 0x35, 0xe1, 0x31, 0x1d, 0x1b, 0x06, 0x19,
9ae3a8
     0x05, 0x11, 0x10, 0x36, 0x37, 0x38, 0xe5, 0x55,
9ae3a8
-    0xe2, 0x2c, 0x32, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e,
9ae3a8
+    0xe2, 0x2c, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e,
9ae3a8
     0x3f, 0x40, 0x41, 0x42, 0x43, 0x53, 0x47, 0x5f,
9ae3a8
     0x60, 0x61, 0x56, 0x5c, 0x5d, 0x5e, 0x57, 0x59,
9ae3a8
     0x5a, 0x5b, 0x62, 0x63, 0x00, 0x00, 0x00, 0x44,
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8