From: "Kasai Takanori" Subject: [PATCH] Fix to set keyboard layout of PVFB from configuration file Date: Tue, 30 Jan 2007 20:30:52 +0900 Message-ID: <04ba01c74462$1f0280d0$dab2220a@VF03007L> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_04B7_01C744AD.89396720" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_04B7_01C744AD.89396720 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit Hi All, I sent the patch that selected keyboard layout of PVFB the other day. It has already been committed to xen-unstable.hg. ・xen-unstable.hg : cs13553 [PVFB] Set keyboard layout of PVFB from configuration file. However, I found the problem in this patch. When you do not set keyboard layout of PVFB from configuration file, we can't correctly set keyboard layout. In this case, keyboard input is not accepted. When having investigated, the parameter had not been correctly passed to xen-vncfb. It is because the parameter had not been correctly passed to xen-vncfb. # ps -ef | grep xen-vncfb /usr/lib/xen/bin/xen-vncfb --listen 0.0.0.0 -k --domid 71 --title rhel5b2 ^^^^ This patch is a correction of the problem. Signed-off-by: Takanori Kasai Best Regards, -- Takanori Kasai ------=_NextPart_000_04B7_01C744AD.89396720 Content-Type: application/octet-stream; name="pvfb-fix-set-keymap.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pvfb-fix-set-keymap.patch" # HG changeset patch=0A= # User kasai.takanori@jp.fujitsu.com=0A= # Date 1170140406 -32400=0A= # Node ID 96a4fa3aab04ffcdb3fdeb0fc61d10b5203ebbd7=0A= # Parent 5bb0840984936749b4e99f53931d72a8579d302c=0A= Fix to set keyboard layout of PVFB from configuration file=0A= =0A= Signed-off-by: Takanori Kasai =0A= =0A= diff -r 5bb084098493 -r 96a4fa3aab04 tools/python/xen/xm/create.py=0A= --- a/tools/python/xen/xm/create.py Mon Jan 29 13:22:21 2007 +0000=0A= +++ b/tools/python/xen/xm/create.py Tue Jan 30 16:00:06 2007 +0900=0A= @@ -594,9 +594,9 @@ def configure_vfbs(config_devs, vals):=0A= 'xauthority', 'type', 'vncpasswd' ]:=0A= err("configuration option %s unknown to vfbs" % k)=0A= config.append([k,v])=0A= - for n in iter(dir(vals)):=0A= - if n =3D=3D "keymap":=0A= - config.append(['keymap',vals.keymap])=0A= + if not d.has_key("keymap"):=0A= + if vals.keymap:=0A= + config.append(['keymap',vals.keymap])=0A= if not d.has_key("display") and os.environ.has_key("DISPLAY"):=0A= config.append(["display", os.environ['DISPLAY']])=0A= if not d.has_key("xauthority"):=0A= ------=_NextPart_000_04B7_01C744AD.89396720 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_NextPart_000_04B7_01C744AD.89396720--