qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ABNT2 keys again
@ 2015-04-30  5:01 Michael Tokarev
  2015-05-20 11:44 ` Michael Tokarev
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Tokarev @ 2015-04-30  5:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

There's a bug open in qemu bugtracker for several years
already, https://bugs.launchpad.net/qemu/+bug/1038136 .
The solution appears to be trivial (see also some background
at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
but the problem is definitely still here.

Maybe it's a time to address this finally? :)

I don't pretend to understand any significant bit of input
handling, so am asking people who are more knowlegeable in
this area to take a look ;)

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-04-30  5:01 [Qemu-devel] ABNT2 keys again Michael Tokarev
@ 2015-05-20 11:44 ` Michael Tokarev
  2015-05-22 10:01   ` Gerd Hoffmann
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Tokarev @ 2015-05-20 11:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

A (friendly) ping? :)

30.04.2015 08:01, Michael Tokarev wrote:
> There's a bug open in qemu bugtracker for several years
> already, https://bugs.launchpad.net/qemu/+bug/1038136 .
> The solution appears to be trivial (see also some background
> at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
> but the problem is definitely still here.
> 
> Maybe it's a time to address this finally? :)
> 
> I don't pretend to understand any significant bit of input
> handling, so am asking people who are more knowlegeable in
> this area to take a look ;)
> 
> Thanks,
> 
> /mjt
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-20 11:44 ` Michael Tokarev
@ 2015-05-22 10:01   ` Gerd Hoffmann
  2015-05-22 13:10     ` Michael Tokarev
  0 siblings, 1 reply; 15+ messages in thread
From: Gerd Hoffmann @ 2015-05-22 10:01 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel

On Mi, 2015-05-20 at 14:44 +0300, Michael Tokarev wrote:
> A (friendly) ping? :)
> 
> > The solution appears to be trivial (see also some background
> > at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
> > but the problem is definitely still here.
> > 
> > Maybe it's a time to address this finally? :)
> > 
> > I don't pretend to understand any significant bit of input
> > handling, so am asking people who are more knowlegeable in
> > this area to take a look ;)

Anyone having such a keyboard and willing to run some tests?

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 10:01   ` Gerd Hoffmann
@ 2015-05-22 13:10     ` Michael Tokarev
  2015-05-22 13:20       ` Gerd Hoffmann
  2015-05-22 15:03       ` Joao Luis Meloni Assirati
  0 siblings, 2 replies; 15+ messages in thread
From: Michael Tokarev @ 2015-05-22 13:10 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: R. Lemos, 772422, qemu-devel, Joao Luis Meloni Assirati

22.05.2015 13:01, Gerd Hoffmann wrote:
> On Mi, 2015-05-20 at 14:44 +0300, Michael Tokarev wrote:
>> A (friendly) ping? :)
>>
>>> The solution appears to be trivial (see also some background
>>> at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
>>> but the problem is definitely still here.
>>>
>>> Maybe it's a time to address this finally? :)
>>>
>>> I don't pretend to understand any significant bit of input
>>> handling, so am asking people who are more knowlegeable in
>>> this area to take a look ;)
> 
> Anyone having such a keyboard and willing to run some tests?

Adding Cc's.  This has been reported to debian too,
http://bugs.debian.org/772422 (also in Cc).

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 13:10     ` Michael Tokarev
@ 2015-05-22 13:20       ` Gerd Hoffmann
  2015-05-22 13:39         ` Michael Tokarev
  2015-05-22 16:10         ` Joao Luis Meloni Assirati
  2015-05-22 15:03       ` Joao Luis Meloni Assirati
  1 sibling, 2 replies; 15+ messages in thread
From: Gerd Hoffmann @ 2015-05-22 13:20 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: R. Lemos, 772422, qemu-devel, Joao Luis Meloni Assirati

  Hi,

> > Anyone having such a keyboard and willing to run some tests?
> 
> Adding Cc's.  This has been reported to debian too,
> http://bugs.debian.org/772422 (also in Cc).

Ok, so just replying should stick this into the debian bug tracker,
right?

Ok, instructions are here:

(a) Go grab https://www.kraxel.org/cgit/input/ please (could be there
    even is a debian package for this stuff).

(b) Use 'lsinput' to figure which input device is your keyboard (on
    the host machine).

(c) Then use 'input-events <device-number>' 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).

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 13:20       ` Gerd Hoffmann
@ 2015-05-22 13:39         ` Michael Tokarev
  2015-05-22 16:10         ` Joao Luis Meloni Assirati
  1 sibling, 0 replies; 15+ messages in thread
From: Michael Tokarev @ 2015-05-22 13:39 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: R. Lemos, 772422, qemu-devel, Joao Luis Meloni Assirati

22.05.2015 16:20, Gerd Hoffmann wrote
>   Hi,
> 
>>> Anyone having such a keyboard and willing to run some tests?
>>
>> Adding Cc's.  This has been reported to debian too,
>> http://bugs.debian.org/772422 (also in Cc).
> 
> Ok, so just replying should stick this into the debian bug tracker, right?

Exactly, yes.

> Ok, instructions are here:
> 
> (a) Go grab https://www.kraxel.org/cgit/input/ please (could be there
>     even is a debian package for this stuff).

The package on debian is named `input-utils'.

> (b) Use 'lsinput' to figure which input device is your keyboard (on
>     the host machine).
> 
> (c) Then use 'input-events <device-number>' 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).
> 
> thanks,
>   Gerd

Thank you very much for looking at this!

/mjt

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 13:10     ` Michael Tokarev
  2015-05-22 13:20       ` Gerd Hoffmann
@ 2015-05-22 15:03       ` Joao Luis Meloni Assirati
  1 sibling, 0 replies; 15+ messages in thread
From: Joao Luis Meloni Assirati @ 2015-05-22 15:03 UTC (permalink / raw)
  To: Michael Tokarev
  Cc: R. Lemos, Joao Luis Meloni Assirati, 772422, Gerd Hoffmann,
	qemu-devel

> 22.05.2015 13:01, Gerd Hoffmann wrote:

[...]

>>>> The solution appears to be trivial (see also some background
>>>> at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
>>>> but the problem is definitely still here.

This is the patch that works:

--- ui/x_keymap.c~
+++ ui/x_keymap.c
@@ -94,7 +94,7 @@
  */

 static const uint8_t evdev_keycode_to_pc_keycode[61] = {
-    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)*/


[...]

>> Anyone having such a keyboard and willing to run some tests?

I have this keyboard and I can run tests.

Joao Luis.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 13:20       ` Gerd Hoffmann
  2015-05-22 13:39         ` Michael Tokarev
@ 2015-05-22 16:10         ` Joao Luis Meloni Assirati
  2015-05-26  7:58           ` Gerd Hoffmann
  2015-05-26 14:01           ` Gerd Hoffmann
  1 sibling, 2 replies; 15+ messages in thread
From: Joao Luis Meloni Assirati @ 2015-05-22 16:10 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: 772422, 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 <device-number>' 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 <== RETURN released when
input-events was run
12:44:00.341645: EV_KEY KEY_ENTER (0x1c) released
12:44:00.341645: EV_SYN code=0 value=0
12:44:02.389552: EV_MSC MSC_SCAN 458887 <== Here, / was pressed
12:44:02.389552: EV_KEY KEY_RO (0x59) pressed
12:44:02.389552: EV_SYN code=0 value=0
/12:44:02.517537: EV_MSC MSC_SCAN 458887 <== Here, / was released
12:44:02.517537: EV_KEY KEY_RO (0x59) released
12:44:02.517537: EV_SYN code=0 value=0
12:44:04.253486: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was pressed
12:44:04.253486: EV_KEY KEY_KPCOMMA (0x79) pressed
12:44:04.253486: EV_SYN code=0 value=0
.12:44:04.381484: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was
released
12:44:04.381484: EV_KEY KEY_KPCOMMA (0x79) released
12:44:04.381484: EV_SYN code=0 value=0

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 <== RETURN released when
input-events was run
13:00:00.686312: EV_KEY KEY_ENTER (0x1c) released
13:00:00.686312: EV_SYN code=0 value=0
13:00:03.182228: EV_MSC MSC_SCAN 458887 <== Here, / was pressed
13:00:03.182228: EV_KEY KEY_RO (0x59) pressed
13:00:03.182228: EV_SYN code=0 value=0
/13:00:03.254226: EV_MSC MSC_SCAN 458887 <== Here, / was released
13:00:03.254226: EV_KEY KEY_RO (0x59) released
13:00:03.254226: EV_SYN code=0 value=0
13:00:04.942163: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was pressed
13:00:04.942163: EV_KEY KEY_KPCOMMA (0x79) pressed
13:00:04.942163: EV_SYN code=0 value=0
.13:00:05.030163: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was
released
13:00:05.030163: EV_KEY KEY_KPCOMMA (0x79) released
13:00:05.030163: EV_SYN code=0 value=0

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] = {
-    0,         /*  97 EVDEV - RO   ("Internet" Keyboards) */
+    0x73,      /*  97 EVDEV - /?<C2><B0> (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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 16:10         ` Joao Luis Meloni Assirati
@ 2015-05-26  7:58           ` Gerd Hoffmann
  2015-05-26 20:51             ` Joao Luis Meloni Assirati
  2015-05-26 14:01           ` Gerd Hoffmann
  1 sibling, 1 reply; 15+ messages in thread
From: Gerd Hoffmann @ 2015-05-26  7:58 UTC (permalink / raw)
  To: Joao Luis Meloni Assirati; +Cc: 772422, Michael Tokarev, qemu-devel, R. Lemos

  Hi,

> 12:44:02.389552: EV_MSC MSC_SCAN 458887 <== Here, / was pressed
> 12:44:02.389552: EV_KEY KEY_RO (0x59) pressed

'RO'.  Hmm, not very descriptive.  Any idea what this could stand for?

> 12:44:04.253486: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was pressed
> 12:44:04.253486: EV_KEY KEY_KPCOMMA (0x79) pressed

Ok.  Is there a key with ',' too in your numpad?

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-22 16:10         ` Joao Luis Meloni Assirati
  2015-05-26  7:58           ` Gerd Hoffmann
@ 2015-05-26 14:01           ` Gerd Hoffmann
  2015-05-26 15:52             ` R. Lemos
  1 sibling, 1 reply; 15+ messages in thread
From: Gerd Hoffmann @ 2015-05-26 14:01 UTC (permalink / raw)
  To: Joao Luis Meloni Assirati; +Cc: 772422, Michael Tokarev, qemu-devel, R. Lemos

>  static const uint8_t evdev_keycode_to_pc_keycode[61] = {
> -    0,         /*  97 EVDEV - RO   ("Internet" Keyboards) */
> +    0x73,      /*  97 EVDEV - /?<C2><B0> (ABNT2 Keyboards) */

That one looks good.

> -    0,         /* 129 EVDEV - I129 ("Internet" Keyboards) */
> +    0x34,      /* 129 abnt2 KP-period */

That is the *other* dot key, outside keypad.

Patches just sent via git-send-email, test results are welcome.

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-26 14:01           ` Gerd Hoffmann
@ 2015-05-26 15:52             ` R. Lemos
  2015-05-26 21:24               ` Joao Luis Meloni Assirati
  0 siblings, 1 reply; 15+ messages in thread
From: R. Lemos @ 2015-05-26 15:52 UTC (permalink / raw)
  To: Gerd Hoffmann, Joao Luis Meloni Assirati
  Cc: 772422, Michael Tokarev, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

I've tested an unpatched QEMU 2.3.0 (x86_64) with "-k pt_br" option and the
"/?°" key works perfectly.

I have not tested the numpad ".", but I can inform that ABNT2 keyboard does
have "." (dot) and "," (comma) as separate keys: comma (numlock on)
combined with delete (numlock off).

But I found another key that is not working: the "<," ("less than"
"comma"). Right now I cannot give details about its scancode, nor make any
further test.


Em ter, 26 de mai de 2015 às 11:01, Gerd Hoffmann <kraxel@redhat.com>
escreveu:

> >  static const uint8_t evdev_keycode_to_pc_keycode[61] = {
> > -    0,         /*  97 EVDEV - RO   ("Internet" Keyboards) */
> > +    0x73,      /*  97 EVDEV - /?<C2><B0> (ABNT2 Keyboards) */
>
> That one looks good.
>
> > -    0,         /* 129 EVDEV - I129 ("Internet" Keyboards) */
> > +    0x34,      /* 129 abnt2 KP-period */
>
> That is the *other* dot key, outside keypad.
>
> Patches just sent via git-send-email, test results are welcome.
>
> thanks,
>   Gerd
>
>
>

[-- Attachment #2: Type: text/html, Size: 1472 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-26  7:58           ` Gerd Hoffmann
@ 2015-05-26 20:51             ` Joao Luis Meloni Assirati
  2015-05-27 14:11               ` Gerd Hoffmann
  0 siblings, 1 reply; 15+ messages in thread
From: Joao Luis Meloni Assirati @ 2015-05-26 20:51 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: 772422, Michael Tokarev, qemu-devel, R. Lemos,
	Joao Luis Meloni Assirati

Hello,

>> 12:44:02.389552: EV_MSC MSC_SCAN 458887 <== Here, / was pressed
>> 12:44:02.389552: EV_KEY KEY_RO (0x59) pressed
>
> 'RO'.  Hmm, not very descriptive.  Any idea what this could stand for?

RO stands for Romaji, which is japanese with roman letters (transliteration).

>
>> 12:44:04.253486: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was
>> pressed
>> 12:44:04.253486: EV_KEY KEY_KPCOMMA (0x79) pressed
>
> Ok.  Is there a key with ',' too in your numpad?

Yes, there is a separated ',' in the numpad, and when I press it I get

17:48:47.878881: EV_MSC MSC_SCAN 458851
17:48:47.878881: EV_KEY KEY_KPDOT (0x53) pressed
17:48:47.878881: EV_SYN code=0 value=0
^[[3~17:48:47.966876: EV_MSC MSC_SCAN 458851
17:48:47.966876: EV_KEY KEY_KPDOT (0x53) released
17:48:47.966876: EV_SYN code=0 value=0

Apparently the codes are exchanged in ABNT2 numpad.

Thanks,
Joao Luis.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-26 15:52             ` R. Lemos
@ 2015-05-26 21:24               ` Joao Luis Meloni Assirati
  2015-05-27 14:18                 ` Gerd Hoffmann
  0 siblings, 1 reply; 15+ messages in thread
From: Joao Luis Meloni Assirati @ 2015-05-26 21:24 UTC (permalink / raw)
  To: R. Lemos
  Cc: qemu-devel, 772422, Michael Tokarev, Gerd Hoffmann,
	Joao Luis Meloni Assirati

Hello,

> I've tested an unpatched QEMU 2.3.0 (x86_64) with "-k pt_br" option and
> the
> "/?°" key works perfectly.

>From the manpage of qemu:

-k language
   Use keyboard layout language (for example "fr" for French). This option
is only needed where it is not easy to get raw PC keycodes (e.g. on
Macs, with some X11 servers or with a VNC display). You don't normally
need to use it on PC/Linux or PC/Windows hosts.

Do you think that using the -k option is the right solution to this problem?

>
> I have not tested the numpad ".", but I can inform that ABNT2 keyboard
> does
> have "." (dot) and "," (comma) as separate keys: comma (numlock on)
> combined with delete (numlock off).
>
> But I found another key that is not working: the "<," ("less than"
> "comma"). Right now I cannot give details about its scancode, nor make any
> further test.
>
>
> Em ter, 26 de mai de 2015 às 11:01, Gerd Hoffmann <kraxel@redhat.com>
> escreveu:
>
>> >  static const uint8_t evdev_keycode_to_pc_keycode[61] = {
>> > -    0,         /*  97 EVDEV - RO   ("Internet" Keyboards) */
>> > +    0x73,      /*  97 EVDEV - /?<C2><B0> (ABNT2 Keyboards) */
>>
>> That one looks good.
>>
>> > -    0,         /* 129 EVDEV - I129 ("Internet" Keyboards) */
>> > +    0x34,      /* 129 abnt2 KP-period */
>>
>> That is the *other* dot key, outside keypad.
>>
>> Patches just sent via git-send-email, test results are welcome.
>>
>> thanks,
>>   Gerd
>>
>>
>>
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-26 20:51             ` Joao Luis Meloni Assirati
@ 2015-05-27 14:11               ` Gerd Hoffmann
  0 siblings, 0 replies; 15+ messages in thread
From: Gerd Hoffmann @ 2015-05-27 14:11 UTC (permalink / raw)
  To: Joao Luis Meloni Assirati; +Cc: 772422, Michael Tokarev, qemu-devel, R. Lemos

  Hi,

> >> 12:44:04.253486: EV_MSC MSC_SCAN 458885 <== Here, . in the numpad was
> >> pressed
> >> 12:44:04.253486: EV_KEY KEY_KPCOMMA (0x79) pressed
> >
> > Ok.  Is there a key with ',' too in your numpad?
> 
> Yes, there is a separated ',' in the numpad, and when I press it I get
> 
> 17:48:47.878881: EV_MSC MSC_SCAN 458851
> 17:48:47.878881: EV_KEY KEY_KPDOT (0x53) pressed
> 17:48:47.878881: EV_SYN code=0 value=0
> ^[[3~17:48:47.966876: EV_MSC MSC_SCAN 458851
> 17:48:47.966876: EV_KEY KEY_KPDOT (0x53) released
> 17:48:47.966876: EV_SYN code=0 value=0
> 
> Apparently the codes are exchanged in ABNT2 numpad.

No, abnt2 has an additional numpad key.  Most keyboards have only one,
which is KPDOT.  In US kbd layout this actually maps to a dot.  On other
layouts (german for example) it maps to comma.  Probably because
different countries use different chars as decimal separator.  abnt2 is
unique here, it has both comma and dot.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] ABNT2 keys again
  2015-05-26 21:24               ` Joao Luis Meloni Assirati
@ 2015-05-27 14:18                 ` Gerd Hoffmann
  0 siblings, 0 replies; 15+ messages in thread
From: Gerd Hoffmann @ 2015-05-27 14:18 UTC (permalink / raw)
  To: Joao Luis Meloni Assirati; +Cc: 772422, R. Lemos, Michael Tokarev, qemu-devel

On Di, 2015-05-26 at 18:24 -0300, Joao Luis Meloni Assirati wrote:
> Hello,
> 
> > I've tested an unpatched QEMU 2.3.0 (x86_64) with "-k pt_br" option and
> > the
> > "/?°" key works perfectly.
> 
> From the manpage of qemu:
> 
> -k language
>    Use keyboard layout language (for example "fr" for French). This option
> is only needed where it is not easy to get raw PC keycodes (e.g. on
> Macs, with some X11 servers or with a VNC display). You don't normally
> need to use it on PC/Linux or PC/Windows hosts.
> 
> Do you think that using the -k option is the right solution to this problem?

General rule for -k:  If your keyboard layout is messed up try using -k,
otherwise don't bother.

When you use vnc -k might be needed, but whenever that is actually the
case depends on the vnc client.  There is a vnc extension to send raw
keycodes, if the vnc client supports that this gives best results, if it
doesn't you probably need -k for any non-us keyboard layout.

The usual virt-related clients (virt-manager, virt-viewer,
remote-viewer) support that vnc extension.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-05-27 14:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30  5:01 [Qemu-devel] ABNT2 keys again Michael Tokarev
2015-05-20 11:44 ` Michael Tokarev
2015-05-22 10:01   ` Gerd Hoffmann
2015-05-22 13:10     ` Michael Tokarev
2015-05-22 13:20       ` Gerd Hoffmann
2015-05-22 13:39         ` Michael Tokarev
2015-05-22 16:10         ` Joao Luis Meloni Assirati
2015-05-26  7:58           ` Gerd Hoffmann
2015-05-26 20:51             ` Joao Luis Meloni Assirati
2015-05-27 14:11               ` Gerd Hoffmann
2015-05-26 14:01           ` Gerd Hoffmann
2015-05-26 15:52             ` R. Lemos
2015-05-26 21:24               ` Joao Luis Meloni Assirati
2015-05-27 14:18                 ` Gerd Hoffmann
2015-05-22 15:03       ` Joao Luis Meloni Assirati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).