From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: [RFC] keymap support for PVFB Date: Fri, 12 Jan 2007 12:16:53 +0000 Message-ID: <20070112121652.GA5566@redhat.com> References: <009d01c72a36$405dd400$d9b2220a@VF05186P> <87r6u2my8s.fsf@pike.pond.sub.org> <45A5FEB0.4010606@suse.de> <87hcuxh2lk.fsf@pike.pond.sub.org> <45A74399.6080401@suse.de> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <45A74399.6080401@suse.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Hoffmann Cc: Xen-devel@lists.xensource.com, Junko Ichino , Markus Armbruster List-Id: xen-devel@lists.xenproject.org On Fri, Jan 12, 2007 at 09:15:21AM +0100, Gerd Hoffmann wrote: > 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 :-( No, but there's no reason we couldn't come up with an extension. Anthony has already done similar to allow passing of relative mouse co-ords instead of absolute co-ords. Extensions are opt-in, so unless the client has support they'd carry on with normal keysyms, but a client that understood the new extension could switch to scan codes. The important thing is talking to upstream VNC mailing lists about any proposed extension to get buy-in so some of the popular clients implement it. As far as i'm concerned, I'm more than happy to extend the virt-manager VNC client if it could enable better internationalized keyboard handling. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|