All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Gerd Hoffmann <kraxel@suse.de>
Cc: Xen-devel@lists.xensource.com,
	Junko Ichino <ichino.junko@jp.fujitsu.com>
Subject: Re: [RFC] keymap support for PVFB
Date: Fri, 12 Jan 2007 11:48:20 +0100	[thread overview]
Message-ID: <87bql4ed1n.fsf@pike.pond.sub.org> (raw)
In-Reply-To: <45A74399.6080401@suse.de> (Gerd Hoffmann's message of "Fri, 12 Jan 2007 09:15:21 +0100")

Gerd Hoffmann <kraxel@suse.de> writes:

>   Hi,
>
>>> I've tried to tackle the same issue by hacking the vnc client side to
>>> send us keysyms no matter what the local keyboard mapping is.  So I can
>>> have any keyboard map loaded on the host, qemu-dm/vncfb sees us keysyms
>>> nevertheless and passes the correct scancodes to the guest OS.
>> 
>> You mean scan codes, don't you?  Key symbols are the XK_a and so
>> forth.
>
> No, keysyms.  This is what the vnc protocol uses, so there is no way
> around that, unfortunaly.  It takes the X11 keycodes and translates
> these to us keymap keysyms using a buildin table, then sends them.  So
> for the server side (from vnc protocol view, i.e. qemu-dm or vnc-fb) it
> looks like a vnc client with us keyboard.
>
>> Passing scan codes in addition to key symbols makes sense.
>
> Does the vnc protocol allow that?  I don't think so :-(

Broken as designed...

Your hack has the advantage that you don't configure the client keymap
into the server, and therefore don't have to kick the server whenever
the client keymap changes.  But when your client receives a funky key
that ordinary US keyboards don't have, you don't have the key symbol
for it.

Hmm, can we make one up then?  I mean it's a hack to begin with, why
not put another hack on top of it?  As long as every key gets its own
key symbol, and the made-up ones don't screw up servers that don't
know of this hack...

>> Would you mind sharing your code when it's ready?
>
> http://www.suse.de/~kraxel/xen/, the vnc client in the "xenwatch" package.

Thanks.

  reply	other threads:[~2007-01-12 10:48 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-28  4:11 [RFC] keymap support for PVFB Junko Ichino
2006-12-28 16:02 ` Ewan Mellor
2007-01-09  0:56   ` Kasai Takanori
2007-01-09  1:07   ` Junko Ichino
2007-01-10 20:18 ` Markus Armbruster
2007-01-11  9:09   ` Gerd Hoffmann
2007-01-11 17:53     ` Markus Armbruster
2007-01-12  8:15       ` Gerd Hoffmann
2007-01-12 10:48         ` Markus Armbruster [this message]
2007-01-12 11:02           ` Gerd Hoffmann
2007-01-12 12:16         ` Daniel P. Berrange
2007-01-11 14:09   ` Junko Ichino
2007-01-11 17:54     ` Markus Armbruster
2007-01-17  6:07       ` Junko Ichino
2007-01-17  7:48         ` Markus Armbruster
2007-01-17  9:39           ` Junko Ichino
2007-01-17 10:21             ` Markus Armbruster
2007-01-17 11:39               ` Junko Ichino
2007-01-17 12:46                 ` Kasai Takanori
2007-01-17 13:25                 ` Markus Armbruster
2007-01-18 12:17                   ` Junko Ichino
2007-01-18 15:01                     ` Markus Armbruster
  -- strict thread matches above, loose matches on Subject: below --
2007-01-12 12:35 Bruce Rogers
2007-01-12 13:32 ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bql4ed1n.fsf@pike.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=Xen-devel@lists.xensource.com \
    --cc=ichino.junko@jp.fujitsu.com \
    --cc=kraxel@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.