qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] VNC key presses not correct
@ 2013-08-15 12:43 Erik Rull
  2013-08-16 13:50 ` Markus Armbruster
  0 siblings, 1 reply; 9+ messages in thread
From: Erik Rull @ 2013-08-15 12:43 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

Hi all,

I'm struggling with the QEMU VNC on qemu-kvm-1.2.0 a bit, the following two
things are not working properly:

1) Shift key pressed and hold for several seconds causes multiple shift key
press + release events => I would expect getting one press, one or more hold and
one release event (minor issue)
2) German Umlaute and german keyboard layouts are not interpreted properly. I
added some debug output into:

static void do_key_event(VncState *vs, int down, int keycode, int sym)
{
    printf("do_key_event1: %d %d %d\n",down,keycode,sym);

and:

void kbd_put_keycode(int keycode)
{
    if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) {
        return;
    }
    if (qemu_put_kbd_event) {
        printf("kbd_put_keycode: %d\n",keycode);
        qemu_put_kbd_event(qemu_put_kbd_event_opaque, keycode);
    }
}


This reports to me when e.g. pressing "#" on a german keyboard:
do_key_event1: 1 4 35
kbd_put_keycode: 4
do_key_event1: 0 4 35
kbd_put_keycode: 132
=> This results into a "3" on the guest side...

And when I press the "3" on the german keyboard, I get the following events:
do_key_event1: 1 4 51
kbd_put_keycode: 4
do_key_event1: 0 4 51
kbd_put_keycode: 132

=> result is a "3", too...

And when pressing one of the Umlaute (ä), I get a keymap error:

Warning: no scancode found for keysym 228
do_key_event1: 1 0 228
kbd_put_keycode: 0
Warning: no scancode found for keysym 228
do_key_event1: 0 0 228
kbd_put_keycode: 128
do_key_event7: 0 0 228

=> why is 228 not transported to the guest? this is definitvely the correct sign
- according to the table in vnc_keysym.h ...
{ "adiaeresis",           0x0e4},

I tested it with several VNC clients - all with the same results.

Any hints and ideas how to get it running properly would be great.

When I use the same system directly via SDL and a real hardware keyboard, it
works perfect - without changing anything in the qemu configuration even with
different keyboard layouts (I tested US/International, German, French and Spain
keyboards)

Thanks.

Best regards,

Erik

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

end of thread, other threads:[~2013-08-23  6:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-15 12:43 [Qemu-devel] VNC key presses not correct Erik Rull
2013-08-16 13:50 ` Markus Armbruster
2013-08-19 16:18   ` Erik Rull
2013-08-21 19:44   ` Erik Rull
2013-08-22  7:13     ` Markus Armbruster
2013-08-22 21:54       ` Erik Rull
2013-08-22 22:26         ` Anthony Liguori
2013-08-23  5:42           ` Markus Armbruster
2013-08-23  6:49             ` Erik Rull

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).