[Bug 343180] New: XEN keymap problem.
https://bugzilla.novell.com/show_bug.cgi?id=343180 Summary: XEN keymap problem. Product: openSUSE 10.3 Version: Final Platform: i586 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: cgriffin@novell.com ReportedBy: nice@titanic.nyme.hu QAContact: qa@suse.de Found By: Other I installed Vindows Vista on Xen by vm-install ran from YaST with the following settings (/etc/xen/vm/windowsvista): ############################################### name="windowsvista" ostype="windowsvista" uuid="cf93a3e0-c33f-50c4-dd3f-b68691418a40" memory=1024 vcpus=1 on_crash="destroy" on_poweroff="destroy" on_reboot="restart" localtime=1 builder="hvm" extid=0 device_model="/usr/lib/xen/bin/qemu-dm" kernel="/usr/lib/xen/boot/hvmloader" boot="c" disk=[ 'file:/mnt/xen/vista.bin,hda,w', 'phy:/dev/cdrom,hdc:cdrom,r', ] vif=[ 'mac=00:16:3e:1a:4d:7d,model=rtl8139,type=ioemu', ] stdvga=0 vnc=1 vncunused=1 apic=0 acpi=1 pae=1 usb=1 usbdevice='tablet' serial="pty" ############################################### I tried to manage this qemu-dm assisted fully virtualized host either via VNC or SDL (changing the config file above), but I realized that the host's keyboard map was incomplete and incorrect. Let's see a sort example from the file /var/log/xen qemu-dm.29632.log: ############################################### Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 501 Warning: no scancode found for keysym 501 Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 507 Warning: no scancode found for keysym 507 ############################################### I figured out that the problem could by corrected by make qemu-dm use some of the keymaps under /usr/share/xen/qemu/keymaps by passing a -key CODE parameter to it. Or am I wrong? I also figured out that I can make xend to pass this parameter to qemu-dm by adding a keymap='CODE' line to the /etc/xen/vm/VM file. So I added the line keymap='hu' to the vm config file, and qemu-vm's command line really changed: milleniumfalcon:/var/log/xen # cat /proc/8046/cmdline | sed y/'\x0'/' '/ /usr/lib/xen/bin/qemu-dm -d 2 -vcpus 1 -boot c -localtime -serial pty -acpi -usb -usbdevice tablet -k hu -domain-name windowsvista -net nic,vlan=1,macaddr=00:16:3e:1a:4d:7d,model=rtl8139 -net tap,vlan=1 -vncunused -vnclisten 127.0.0.1 milleniumfalcon:/var/log/xen # cat /proc/8046/cmdline | sed y/'\x0'/' '/ The keyboard got a bit better but there are still missing keys, "ű" for example. I tried other keymaps with similar results. What may be wrong with these keymaps? Are they defectivein a way? I have no idea. Thist bug report is primarily about the possible errors int these keymap files, but I have other related quetions too: It wold be good to make it possible to change the keymap setting in vm-install if it is necessary at all. Furthermore I do not know where virt-manager gets the information about VMs from. Once I moved every file from /etc/xen/vm to the root directory, restarted virt-manager and in spite of the lack of VM description files it still remebered my guest VM. I also do not know, what keeps the files /etc/xen/vm/VM and /etc/xen/vm/VM.xml in synchron. So, if i add a keymap to the file /etc/xen/vm/VM then that VM will use that keymap if I start if by the xm command. But what happens if i start that VM from virt-manager? Do I also need to add the keymap to the file /etc/xen/vm/VM.xml? Or to a third file? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 Charles Arnold <carnold@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@novell.com AssignedTo|cgriffin@novell.com |plc@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180#c1 --- Comment #1 from Pat Campbell <plc@novell.com> 2007-11-26 13:09:26 MST --- To add a keymap to all vm's see /etc/xen/xend-config.sxp # The default keymap to use for the VM's virtual keyboard. #(keymap 'en-us') Uncomment the keymap line and add in your particular keymap value. For this value to take effect your will need to restart xend. All vm's will now startup with this keymap value unless they have their own vm specific keymap specified. Virt-manager does not currently set a VM's keymap. Virt-manager get it's configuration information from xen-store. Config files are really only used during vm creation. This link should answer your questions: http://www.novell.com/documentation/vmserver/config_options/index.html?page=... To fix the missing keys I will need the following information: Locale setting of DOM0 or the system you are running the vncviewer from An image of what your keyboard looks like Was the domU installed in English or in your locale? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180#c2 Pat Campbell <plc@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |nice@titanic.nyme.hu --- Comment #2 from Pat Campbell <plc@novell.com> 2007-11-27 08:14:42 MST --- Also will need to know what keys don't work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180#c3 --- Comment #3 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-01 15:18:26 MST --- Created an attachment (id=185533) --> (https://bugzilla.novell.com/attachment.cgi?id=185533) My keyboard -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180#c4 --- Comment #4 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-01 15:42:27 MST --- OK, I tried, which keys don't work (and compared their behavior to a windows running on a real computer): In the first round I used hungarian keyboard in X: Section "InputDevice" Driver "kbd" Identifier "Keyboard[0]" Option "Protocol" "Standard" Option "XkbLayout" "hu" Option "XkbModel" "pc102" Option "XkbRules" "xfree86" EndSection and hungarian keymap in domU (set in /etc/xen/vm/windowsvista): (domain (domid 9) (on_crash destroy) (uuid cf93a3e0-c33f-50c4-dd3f-b68691418a40) (bootloader_args ) (vcpus 1) (name windowsvista) (on_poweroff destroy) (on_reboot restart) (bootloader ) (maxmem 1024) (memory 1024) (shadow_memory 9) (cpu_weight 256) (cpu_cap 0) (features ) (on_xend_start ignore) (on_xend_stop ignore) (start_time 1196545660.75) (cpu_time 5.019489163) (online_vcpus 1) (image (hvm (kernel /usr/lib/xen/boot/hvmloader) (acpi 1) (apic 0) (boot c) (device_model /usr/lib/xen/bin/qemu-dm) (display :0.0) (keymap hu) (isa 0) (localtime 1) (monitor 0) (nographic 0) (pae 1) (rtc_timeoffset 0) (serial pty) (stdvga 0) (usb 1) (usbdevice tablet) (vnc 1) (vncunused 1) (xauthority /root/.xauth3NUepG) (notes (SUSPEND_CANCEL 1)) ) ) (status 2) (state r-----) (store_mfn 262142) (device (vif (uuid d9696207-5b8b-d2d8-234d-d6fcb243fc40) (script vif-bridge) (mac 00:16:3e:1a:4d:7d) (model rtl8139) (type ioemu) (backend 0) ) ) (device (vbd (uname file:/mnt/xen/vista.bin) (uuid f0d83d14-0803-8aed-a853-863c986195c4) (mode w) (dev hda:disk) (backend 0) (bootable 1) ) ) (device (vbd (uname phy:/dev/cdrom) (uuid 84f877d5-685a-f3fb-a3b4-46cb2e8025e8) (mode r) (dev hdc:cdrom) (backend 0) (bootable 0) ) ) (device (vfb (vncunused 1) (keymap hu) (type vnc) (uuid 59e32fdd-7851-3787-e13e-dab9f415ebe4) (location localhost:5901) ) ) (device (console (protocol vt100) (location 3) (uuid 1e019686-e8ed-91db-0f31-84766fd33a29) ) ) ) I attached a picture of my keyboard, and I marked the problematic key with their keycodes collected with "showkey -s" and rings around each one. So: -The keys market with green color work when pressed alone or with SHIFT, but they don't work when pressed together with AltGr, when simly nothing happens (except that they eliminate the effect of the next keypress). On the real computer windows this keys work the following way when pressed together with AltGr: Whe I press them once, nothing happens, but when I press any key afterwards, then the character in the bottom-right corner of the key appears on the screen (ˇ˘°˛˙´˝¨¸ respectively). AltGr+3 worsk the same way but that key works correctly on the fully virtualized windows too! -The keys marked with red don't work when pressed alone or with SHIFT, but they WORK correctly when pressed together with AltGr (they display $ and ¤) When pressed alone, the sould give ő and ű. Pressed with Shift they should give Ő and Ű. -The key marked with orange should give í alone and Í when pressed with shift, but it gives j and I respectively. Pressed with AltGr it correctly gives <. It the second round I used en-us keymap both in xorg.conf and /etc/xen/vm/windowsvista (Windows wista was still configured to use hungarian keymap just like in the previous case). This time the green and red keys worked correctly, just like on the Windows XP running on the real computer! This is great, but I can't use my Linux applications this way;) My í key (the one marked with orenge) still malfunctioned and new minor problems came up in the neighborhood of the . key. I tried to correct the problems fiddling with the /usr/share/qemu/keymaps/hu file but that didn't succeed. Is this file in use at all? If yes, what does it do? Does it try to invert the keymap to character code conversion of X? I have one more quoestion: What creates and what uses the XML files in the /etc/xen/vm direcory? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
From Windows XP ALTGR '2' 'e' yields 'ě' character but ALTGR '2' 'a' yeilds
https://bugzilla.novell.com/show_bug.cgi?id=343180#c5 --- Comment #5 from Pat Campbell <plc@novell.com> 2007-12-03 12:51:45 MST --- Created an attachment (id=185676) --> (https://bugzilla.novell.com/attachment.cgi?id=185676) Contains new hu keymap and qemu-dm file Thanks for the details, helps a lot. The XML files are created by vm-install and contain the settings used during install. vm-install is the only application that uses the XML files. The XML files are useful for template installs of other VMs. Attachment has a new hu keymap file and a new qemu-dm executable. Back up your original /usr/lib/xen/bin/qemu-dm and /usr/share/xen/qemu/hu keymap files and then as root untar above from root of file system. You will need to stop any active VMs before untarring. I am curious as to what changes you tried to make to keymaps/hu. Could you attach your version in the next reply. Some of the keys work now but I am not sure what is a valid combination to test. the caron and then an 'a' SLES10 dom0 xterm does decode the ALTGR 'e' and 'a' as the accented character. Give it a try and let me know how this works for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User plc@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c6 Pat Campbell <plc@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|nice@titanic.nyme.hu | Resolution| |FIXED --- Comment #6 from Pat Campbell <plc@novell.com> 2007-12-06 13:15:38 MST --- Send patches upstream to xen-source. Marking as fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User nice@titanic.nyme.hu added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c7 --- Comment #7 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-18 18:07:44 MST --- Please don't send these patches yet, I can still found some keymap problems. Sorry for not responding, but I had to work a lot but this, in turn means that I will send tons of new Xen related bug reports in the near future... So. I tried to test your qemu-dm executable and the hu keymap, but using your qemu-dm the VM was simply unable to start. The console was just totally white. So I tried only the keymap with the following results: -When I use virt-manager's console, then all the keys I marked with green and orange, work correctly! The keys marked with red show no function at all. When I press them alone, together with Shift or AltGr, nothing happens. -When I use a VNC client (tightvnc or krdc/3) the problematic keys behave differently. (I'm afraid that earlier I tested the keyboard only with VNC clients and not with the virt-manager console): -The orange key (í) now works correctly. -Red keys work like before: they don't do anything when presse alone or together with Shift, but they work when pressed with AltGr. -The keys in the green line still work correctly when pressed alone or with shift, but they have issues when pressed together with AtlGr: -'1' which worked correctly, now does nothing. -'2' which was wrong, now works. -'3' which worked correctly, now does nothing. -'4' and '5' still don't work. -'6' now works unlike earlier -'7' which worked correctly, now does nothing. -'8' '9' 'ö' 'ü' and 'ó' now work unlike earlier -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User nice@titanic.nyme.hu added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c8 Tamás Németh <nice@titanic.nyme.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #8 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-18 18:16:42 MST --- OK, just to be sure I tested everything again with the old 'hu' keymap. Now I'n sure that I did't test the keyboard with virt-manager's console. I found that the keys marked with green correctly work with virt-manager even when using the old keymap. Of course these keys behave differently when using the old and new keymap and connecting with an ordinary VNC client (see above). The keys marked with red do everything identically using either the new or the old map. The orage key's (í) functionality is obviously corrected by the new keyboard map both inter virt-manager's console and ordinary vnc clients. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User nice@titanic.nyme.hu added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c9 Tamás Németh <nice@titanic.nyme.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |plc@novell.com --- Comment #9 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-18 18:29:01 MST ---
I am curious as to what changes you tried to make to keymaps/hu. Could you attach your version in the next reply.
OK, I attach my version. I only tried to correct the behavior of the 'í' key by replacing 'Iacute 0x17 altgr' with 'Iacute 0x56 shift' and 'iacute 0x24 altgr' with 'iacute 0x56'. That time it didn't seem to work but now it works: Maybe I forgot to restart something...
Some of the keys work now but I am not sure what is a valid combination to test.
From Windows XP ALTGR '2' 'e' yields 'ě' character but ALTGR '2' 'a' yeilds the caron and then an 'a'
OK, I will test it on a windows running on real machine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User nice@titanic.nyme.hu added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c10 --- Comment #10 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-18 18:30:41 MST --- Created an attachment (id=188158) --> (https://bugzilla.novell.com/attachment.cgi?id=188158) my version of the 'hu' keymap -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User nice@titanic.nyme.hu added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c11 --- Comment #11 from Tamás Németh <nice@titanic.nyme.hu> 2007-12-19 12:55:34 MST --- I've tried something different I changed my X server's keyboard layout from 'hu' to 'us' and the VM's (which runs vista) keymap from 'hu' to 'en-us'. I leaved vista's keyboard setting to be hungarian, and I expected my keyboard to work like a hungarian keyboard. I tested it in virt-manager's console and experienced that the keyboard worked almost perfectly like a physical hungarian keyboard. The keys marked with green and red (and all the unmarked keys I tested) worked exactly like a real computer's keyboard running windows (I compared it.) The only problematic key was the orange one (í) which also worked but typed different characters. I have on more question: What does qemu-dm use the keymap files for? Does it try to reverse the key-to-character encoding done by the X server (and/or vnc client) in order to emulate the keypressings for the fully virtualized VMs? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 User aj@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=343180#c12 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|plc@novell.com | --- Comment #12 from Andreas Jaeger <aj@novell.com> 2008-02-19 05:35:10 MST --- Info provided. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343180 Jason Douglas <jdouglas@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|cgriffin@novell.com |dpmerrill@novell.com QAContact|qa@suse.de |jdouglas@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com