From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xw6OA-0007py-Sx for qemu-devel@nongnu.org; Wed, 03 Dec 2014 04:38:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xw6O7-00056i-8V for qemu-devel@nongnu.org; Wed, 03 Dec 2014 04:38:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xw6O7-000564-2N for qemu-devel@nongnu.org; Wed, 03 Dec 2014 04:38:23 -0500 Date: Wed, 3 Dec 2014 09:38:07 +0000 From: "Daniel P. Berrange" Message-ID: <20141203093807.GA10160@redhat.com> References: <1417589746-12176-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1417589746-12176-1-git-send-email-arei.gonglei@huawei.com> Subject: Re: [Qemu-devel] [RFC PATCH v2 0/6] Support to change VNC keyboard layout dynamically Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: arei.gonglei@huawei.com Cc: kraxel@redhat.com, lcapitulino@redhat.com, weidong.huang@huawei.com, qemu-devel@nongnu.org, peter.huangpeng@huawei.com On Wed, Dec 03, 2014 at 02:55:40PM +0800, arei.gonglei@huawei.com wrote: > From: Gonglei > > A bonus of this feature is that supporting different > people (in different countries) using defferent keyboard > to connect the same guest but not need to configure > command line or libivrt xml file then restart guest. > > Using a new QMP command: > -> { "execute": "change-vnc-kbd-layout", > "arguments": { "keymap": "de" } } > <- { "return": {} > > I knew sdl and curses are using keyboard layout, but I don't know > whether they both need to support this feature and add some new > qmp command for them? > > If you have some ideas, please let me know. Thanks! FWIW users of VNC are much better off not setting any keymap at all in QEMU, and then using a client (such as GTK-VNC) that supports the raw scancode extension. This takes QEMU out of the key remapping business entirely, so that everything "just works" with no extra configuration required in QEMU. This is what SPICE does by default too. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|