Received: from eggs.gnu.org ([2001:4830:134:3::10]:54848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvpX9-0006eL-M4 for qemu-devel@nongnu.org; Fri, 22 May 2015 12:10:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvpX6-0000Ji-GZ for qemu-devel@nongnu.org; Fri, 22 May 2015 12:10:51 -0400 Received: from nonada.if.usp.br ([143.107.131.187]:41767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvpX6-0000JG-6w for qemu-devel@nongnu.org; Fri, 22 May 2015 12:10:48 -0400 Message-ID: <5c07634a39eecae39a9f0ba7a8cc58d5.squirrel@nonada.if.usp.br> In-Reply-To: <1432300809.12533.55.camel@nilsson.home.kraxel.org> References: <5541B728.8020404@msgid.tls.msk.ru> <555C73AB.2090408@msgid.tls.msk.ru> <1432288894.12533.43.camel@nilsson.home.kraxel.org> <555F2AC7.80807@msgid.tls.msk.ru> <1432300809.12533.55.camel@nilsson.home.kraxel.org> Date: Fri, 22 May 2015 13:10:45 -0300 From: "Joao Luis Meloni Assirati" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] ABNT2 keys again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: 772422@bugs.debian.org, Michael Tokarev , qemu-devel , "R. Lemos" , Joao Luis Meloni Assirati >> > Anyone having such a keyboard and willing to run some tests? [...] > (c) Then use 'input-events ' to get a input event log > printed to the terminal. Type each missing key once. > > (d) Send me the log (with annotation which key is which). There are two missing keys: / (which is also ? with shift) in the normal keyboard and . in the numpad. Here are the logs for two ABNT2 keyboards: First keyboard: /dev/input/event0 bustype : BUS_USB vendor : 0x45e product : 0x750 version : 273 name : "Microsoft Wired Keyboard 600" phys : "usb-0000:00:1d.1-1/input0" uniq : "" bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP waiting for events 12:44:00.341645: EV_MSC MSC_SCAN 458792 <=3D=3D RETURN released when input-events was run 12:44:00.341645: EV_KEY KEY_ENTER (0x1c) released 12:44:00.341645: EV_SYN code=3D0 value=3D0 12:44:02.389552: EV_MSC MSC_SCAN 458887 <=3D=3D Here, / was pressed 12:44:02.389552: EV_KEY KEY_RO (0x59) pressed 12:44:02.389552: EV_SYN code=3D0 value=3D0 /12:44:02.517537: EV_MSC MSC_SCAN 458887 <=3D=3D Here, / was released 12:44:02.517537: EV_KEY KEY_RO (0x59) released 12:44:02.517537: EV_SYN code=3D0 value=3D0 12:44:04.253486: EV_MSC MSC_SCAN 458885 <=3D=3D Here, . in the numpad was= pressed 12:44:04.253486: EV_KEY KEY_KPCOMMA (0x79) pressed 12:44:04.253486: EV_SYN code=3D0 value=3D0 .12:44:04.381484: EV_MSC MSC_SCAN 458885 <=3D=3D Here, . in the numpad wa= s released 12:44:04.381484: EV_KEY KEY_KPCOMMA (0x79) released 12:44:04.381484: EV_SYN code=3D0 value=3D0 Second keyboard: /dev/input/event15 bustype : BUS_USB vendor : 0x4f3 product : 0x103 version : 272 name : "HID 04f3:0103" phys : "usb-0000:00:1d.3-2/input0" uniq : "" bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP waiting for events 13:00:00.686312: EV_MSC MSC_SCAN 458792 <=3D=3D RETURN released when input-events was run 13:00:00.686312: EV_KEY KEY_ENTER (0x1c) released 13:00:00.686312: EV_SYN code=3D0 value=3D0 13:00:03.182228: EV_MSC MSC_SCAN 458887 <=3D=3D Here, / was pressed 13:00:03.182228: EV_KEY KEY_RO (0x59) pressed 13:00:03.182228: EV_SYN code=3D0 value=3D0 /13:00:03.254226: EV_MSC MSC_SCAN 458887 <=3D=3D Here, / was released 13:00:03.254226: EV_KEY KEY_RO (0x59) released 13:00:03.254226: EV_SYN code=3D0 value=3D0 13:00:04.942163: EV_MSC MSC_SCAN 458885 <=3D=3D Here, . in the numpad was= pressed 13:00:04.942163: EV_KEY KEY_KPCOMMA (0x79) pressed 13:00:04.942163: EV_SYN code=3D0 value=3D0 .13:00:05.030163: EV_MSC MSC_SCAN 458885 <=3D=3D Here, . in the numpad wa= s released 13:00:05.030163: EV_KEY KEY_KPCOMMA (0x79) released 13:00:05.030163: EV_SYN code=3D0 value=3D0 Both keys are fixed with the following patch that I sent previously: --- ui/x_keymap.c~ +++ ui/x_keymap.c @@ -94,7 +94,7 @@ */ static const uint8_t evdev_keycode_to_pc_keycode[61] =3D { - 0, /* 97 EVDEV - RO ("Internet" Keyboards) */ + 0x73, /* 97 EVDEV - /? (ABNT2 Keyboards) */ 0, /* 98 EVDEV - KATA (Katakana) */ 0, /* 99 EVDEV - HIRA (Hiragana) */ 0x79, /* 100 EVDEV - HENK (Henkan) */ @@ -126,7 +126,7 @@ 0, /* 126 EVDEV - I126 ("Internet" Keyboards) */ 0, /* 127 EVDEV - PAUS */ 0, /* 128 EVDEV - ???? */ - 0, /* 129 EVDEV - I129 ("Internet" Keyboards) */ + 0x34, /* 129 abnt2 KP-period */ 0xf1, /* 130 EVDEV - HNGL (Korean Hangul Latin toggle) */ 0xf2, /* 131 EVDEV - HJCV (Korean Hangul Hanja toggle) */ 0x7d, /* 132 AE13 (Yen)*/ Thank you, Joao Luis.