Bug 794653

Summary: Finnish keymap has errors
Product: Red Hat Enterprise Linux 6 Reporter: Atro Tossavainen <redhat-bugzilla>
Component: qemu-kvmAssignee: Markus Armbruster <armbru>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4CC: acathrow, areis, bsarathy, juzhang, michen, mkenneth, myllynen, shuang, sluo, tburke, virt-maint, wdai
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.302.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 07:32:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Atro Tossavainen 2012-02-17 08:23:59 UTC
Description of problem:
Finnish keymap has errors - the key between left shift and Z produces wrong characters

Version-Release number of selected component (if applicable):
0.12.1.2-2.209.el6_2.4

How reproducible:
100%

Steps to Reproduce:
1. Set a virtual host's keymap to Finnish in virt-manager and reboot
2. Alternatively, use virt-viewer with -k fi -vnc
  
Actual results:
Pressing the key produces z, X with shift, | with AltGr

Expected results:
Pressing the key should produce <, > with shift, | with AltGr

Additional info:
First reported by Timo Sirainen for Debian yesterday, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660154

Comment 2 Marko Myllynen 2012-03-02 12:16:26 UTC
> Steps to Reproduce:
> 1. Set a virtual host's keymap to Finnish in virt-manager and reboot
> 2. Alternatively, use virt-viewer with -k fi -vnc
> 
> Actual results:
> Pressing the key produces z, X with shift, | with AltGr
> 
> Expected results:
> Pressing the key should produce <, > with shift, | with AltGr

You'll get the expected results when you'll leave the keymap undefined:

http://lists.nongnu.org/archive/html/qemu-devel/2012-03/msg00262.html
https://bugzilla.redhat.com/show_bug.cgi?id=638523

That being said, if the proposed change will be applied upstream we should include it in the RHEL 6 package, too.

Comment 3 Markus Armbruster 2012-04-04 13:26:50 UTC
Let me elaborate a bit on comment#2.  For a fully functional keyboard, use a VNC client that understands the protocol extension for extended key events, such as virt-viewer, and leave the keymap undefined. Define the keyboard only if you're struck with a VNC client that doesn't understand the extension. This is explained in detail at

http://berrange.com/posts/2010/07/04/more-than-you-or-i-ever-wanted-to-know-about-virtual-keyboard-handling/

Regardless, we should fix keymap bugs.  The patch mentioned in comment#2 didn't go anywhere.  I just chatted with the submitter, and he reposted it:

http://lists.nongnu.org/archive/html/qemu-devel/2012-04/msg00506.html

Once it makes it upstream, we can backport.

Clearly missed the boat for 6.3, though.  Punting to 6.4.

Comment 5 Markus Armbruster 2012-07-16 08:15:59 UTC
Upstream commit 0ef62ccd010b835858e81412e6c0cd52c60950dd

Comment 6 Miya Chen 2012-07-30 16:41:36 UTC
Hi Atro, could you please help verify this bug when it is fixed? It is not easy to get a finnish keyboard in China, thanks.

Comment 7 daiwei 2012-07-31 06:58:54 UTC
I can reproduce this issue with an European layout keyboard(105 keys). Using the same steps in comment 0, can get the same errors.

Pressing the key between left shift and Z ,produces X, z with shift, | with AltGr

So, change to qa_ack+


Regards
daiwei

Comment 11 Sibiao Luo 2012-11-29 10:35:48 UTC
(In reply to comment #0)
> Description of problem:
> Finnish keymap has errors - the key between left shift and Z produces wrong
> characters
Hi Atro, could you help me verify this bug now please? It is not easy for me to get such keyboard.

Best Regards & thanks.
sluo

Comment 12 Sibiao Luo 2012-12-04 04:55:52 UTC
Reproduce this issue on qemu-kvm-0.12.1.2-2.209.el6.x86_64.
host info:
# uname -r && rpm -q qemu-kvm
2.6.32-345.el6.x86_64
qemu-kvm-0.12.1.2-2.209.el6.x86_64
Steps:
1.prepare a European layout keyboard(105 keys) to host.
2.boot a guest with '-k fi -vnc :1'.
eg:# /usr/libexec/qemu-kvm -M rhel6.2.0 -enable-kvm -m 2048 -smp 2 -name test -drive file=/home/RHEL-Server-6.4-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,serial=f82002eb-520c-469b-90c2-663277e90437,cache=none,werror=stop,rerror=stop,aio=native -device ide-drive,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1,bus=ide.0,unit=0 -netdev tap,id=hostnet0,vhost=on -device e1000,netdev=hostnet0,id=net0,mac=00:1a:4a:42:0b:38,bus=pci.0 -k fi -vnc :1 -monitor stdio
3.press the key to generates <> characters.
Results:
after step 3, pressing the key to generates <> characters doesn't work correctly, instead of "<" it shows "z" (press '>|<') and instead of ">" (press shift + '>|<') it shows "X".

Verify this issue on qemu-kvm-0.12.1.2-2.337.el6.x86_64.
host info:
# uname -r && rpm -q qemu-kvm
2.6.32-345.el6.x86_64
qemu-kvm-0.12.1.2-2.337.el6.x86_64
Steps:
the same steps to reproduce.
Results:
after step 3, press '>|<' to produce '<' and press shift + '>|<' to produce '>' correctly.

Base on above, this issue has been fixed correctly.

Comment 14 errata-xmlrpc 2013-02-21 07:32:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0527.html