Fix to set keyboard layout of PVFB from configuration file
PATCH 1/1 Fix to set keyboard layout of PVFB from configuration file
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.Best Regards,
--
Takanori Kasai
# HG changeset patch
# User [email protected]
# Date 1170140406 -32400
# Node ID 96a4fa3aab04ffcdb3fdeb0fc61d10b5203ebbd7 # Parent 5bb0840984936749b4e99f53931d72a8579d302c Fix to set keyboard layout of PVFB from configuration file
tools/python/xen/xm/create.py +3 -3
@@ -594,9 +594,9 @@ def configure_vfbs(config_devs, vals): 'xauthority', 'type', 'vncpasswd' ]: err("configuration option %s unknown to vfbs" % k) config.append([k,v]) - for n in iter(dir(vals)): - if n == "keymap": - config.append(['keymap',vals.keymap]) + if not d.has_key("keymap"): + if vals.keymap: + config.append(['keymap',vals.keymap]) if not d.has_key("display") and os.environ.has_key("DISPLAY"): config.append(["display", os.environ['DISPLAY']]) if not d.has_key("xauthority"):
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel