This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH] Paravirt framebuffer backend tools [2/5]

To: Steven Smith <sos22-xen@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Paravirt framebuffer backend tools [2/5]
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Wed, 06 Sep 2006 19:50:39 +0200
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Laurent Vivier <Laurent.Vivier@xxxxxxxx>, aliguori <aliguori@xxxxxxxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>, sos22@xxxxxxxxxxxxx, Jeremy Katz <katzj@xxxxxxxxxx>
Delivery-date: Wed, 06 Sep 2006 10:41:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060906171006.GA5306@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060904090150.GC4812@xxxxxxxxx> <44FC224D.3090300@xxxxxxxx> <20060906091505.GD3257@xxxxxxxxx> <44FEB3DE.5070502@xxxxxxxx> <20060906171006.GA5306@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20060725)
Steven Smith wrote:
>> If the SDL viewer is using X11 configured with french keyboard, and the 
>> virtual
>> machine is configured with US keyboard, the used keymap will be the US one. 
>> So
>> when I press 'A' on my keyboard I will have 'Q'.
> That kind of sucks.

There is no way around that.

> Not being able to produce every character sucks
> more, but having to configure the keymap in every VM isn't much
> better.

For sane i18n kbd support some translation must be done.

Make the guest think he has an US keyboard and do the translation on the
host isn't going to work.  An US keyboard hasn't an 'Ä' key for example,
so you wouldn't be able to type that character.  Also some characters
are arranged in a different way, for example on a us keyboard you have
';' and ':' sharing one key, whereas on a german one ';' lives together
with ','.  That isn't going to work with host-side translation too.

Thus we *must* do the translation in the guest.  And we must do it in
the guest *only*, otherwise we'll end up with the translation happening
twice which becomes even more messy.

Sending scancodes not keysyms is the only solution to that problem.  Really.


Gerd Hoffmann <kraxel@xxxxxxx>

Xen-devel mailing list