From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] Paravirt framebuffer backend tools [2/5] Date: Tue, 10 Oct 2006 12:46:05 -0500 Message-ID: <452BDC5D.7040003@codemonkey.ws> References: <20060904090150.GC4812@cam.ac.uk> <44FC224D.3090300@bull.net> <20060906091505.GD3257@cam.ac.uk> <44FEB3DE.5070502@bull.net> <20060906171006.GA5306@cam.ac.uk> <44FFCAC0.6060809@bull.net> <20060907083848.GA3078@cam.ac.uk> <45016F8E.1030300@cs.utexas.edu> <20060908141248.GA6845@cam.ac.uk> <45017CCF.9050707@cs.utexas.edu> <87psd4ul5c.fsf@pike.pond.sub.org> <1160499227.5951.35.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1160499227.5951.35.camel@sisko.scot.redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com Cc: Jeremy Katz , "xen-devel@lists.xensource.com" , Anthony Liguori , sos22@srcf.ucam.org, Laurent Vivier List-Id: xen-devel@lists.xenproject.org Stephen C. Tweedie wrote: > Hi, > > Bear in mind that it may simply not be possible. :-( Right, this is my understanding of the problem. I think the best we can do is use a keymap in the host to translate from whatever keycodes we're getting to PC scancodes and then leave it up to the guest to convert the scancodes based on whatever keymap they're using. This is what rdesktop and qemu do. Regards, Anthony Liguori > An example is my UK keyboard connecting to a guest with a US keymap. > For me, "#" is a key on its own (with "~" as the shift-modified key.) > When I type "#", with no modifier pressed, there is simply no way to > translate that to a single keycode on a US keymap and get the "#" ksym > out --- on a US keyboard, "#" requires shift to be held down. > > The only way you'll get such a keypress through is by faking modifiers > on the fly. > > --Stephen