Received: from [140.186.70.92] (port=37540 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8DIf-0000OD-5u for qemu-devel@nongnu.org; Tue, 19 Oct 2010 10:36:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8DGh-0005UF-2t for qemu-devel@nongnu.org; Tue, 19 Oct 2010 10:34:23 -0400 Received: from [93.153.226.188] (port=48717 helo=mail.linux-ink.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8DGg-0005U4-SS for qemu-devel@nongnu.org; Tue, 19 Oct 2010 10:34:23 -0400 Subject: Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap) From: Oleg Sadov In-Reply-To: <20101019093236.GA23535@redhat.com> References: <20101001181428.GA18421@blackpad.lan.raisama.net> <20101006195607.GB20664@blackpad.lan.raisama.net> <4CAD4EC8.5070402@msgid.tls.msk.ru> <1287423046.6764.69.camel@sadov-t.linux-ink.vo> <4CBC9903.4030608@codemonkey.ws> <20101019093236.GA23535@redhat.com> Content-Type: text/plain Date: Tue, 19 Oct 2010 18:16:06 +0400 Message-Id: <1287497766.4005.65.camel@sadov-t.linux-ink.vo> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Michael Tokarev , qemu-devel@nongnu.org 19/10/2010 10:32 +0100, Daniel P. Berrange wrote: > On Mon, Oct 18, 2010 at 01:59:15PM -0500, Anthony Liguori wrote: > > On 10/18/2010 12:30 PM, Oleg Sadov wrote: > > >I don't understand reasons for such locale-default keyboard settings for > > >qemu too, but may be it's useful for someone... > > > > > > > -k only exists to deal with crappy VNC clients. > > > > If you use a good VNC client (like vinagre or virt-viewer) then you > > don't have to use -k. > > Indeed you must *NOT* use -k then, because that disables the extension > that vinagre/virt-viewer rely on for sane keyboard handling. I don't use '-k' option directly -- in my RHEL-based system it's automagically appended to qemu-kvm by libvirt. KVM XML-description, created by standard virt-manager GUI-interface (package virt-manager-0.6.1-12.el5.x86_64), has a 'keymap' attribute of 'graphics' tag, despite that configurator don't have any controls for 'keymap' setting. As I understand, 'default_keymap' function from util.py (package python-virtinst-0.400.3-9.el5.noarch) got information from /etc/sysconfig/keyboard, then keymap searched in 'keytable' dictionary from keytable.py and automatically placed to 'keymap' attribute of 'graphics' tag in virtual-machine XML-description. In our system we have a russian keyboard settings => we've got a XML description like this: and, as a consequence, qemu-kvm running with '-k ru' option. > Regards, > Daniel Sincerely, --Oleg