I'm running current opensolaris bits (~snv_86,  with xvm 3.1.2) + xvm packages 
compiled
from b85 xvm sources.  In dom0, the Xorg server is used, and a german layout usb
keyboard is used. Before I upgraded to b85 xvm, the keyboard layout was ok in 
hvm
domUs (when using the sdl gui).   That is, before an OS is loaded (e.g. inside
Solaris' GRUB) I had to use "en-us" keyboard layout - e.g. 'y' and 'z' keys 
swapped.
And when an OS is running (e.g. inside Solaris or WinXP) the german keyboard 
layout
was OK.

But with xvm b85 the keyboard layout in sdl seems to be completely broken;
both before and after the OS is loaded.  For example I've been unable to 
type the ":" key in Solaris' GRUB / Solaris kmdb.


I think the root cause is this change, which seems to hardcode "en-us"
keyboard layout for qemu-dm.  The original xen code seems to get the
layout from .py config files; why was that changed?

(When I revert that change, hvm keyboard layout is OK, I get pre-b85 behavior)

======================================================

% more xen.hg/.hg/patches/keymap-workaround
Temporary fix. I think we shold probably be defaulting to en-us anyway,
but do we need SMF property for this? Shouldn't it be domain-specific?

diff --git a/tools/python/xen/xend/XendOptions.py 
b/tools/python/xen/xend/XendOptions.py
--- a/tools/python/xen/xend/XendOptions.py
+++ b/tools/python/xen/xend/XendOptions.py
@@ -279,7 +279,8 @@ class XendOptions:
                                      self.vncpasswd_default)
 
     def get_keymap(self):
-        return self.get_config_value('keymap', None)
+         return 'en-us'
+#        return self.get_config_value('keymap', None)
 
 class XendOptionsFile(XendOptions):
 
 
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to