Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 552600

Summary: Fix typo in keymap definitions in Xen
Product: Red Hat Enterprise Linux 5 Reporter: Paolo Bonzini <pbonzini>
Component: xenAssignee: Michal Novotny <minovotn>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4CC: areis, fdanapfe, leiwang, llim, minovotn, qwan, tburke, virt-maint, xen-maint, ykaul
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: xen-3.0.3-107.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 547642 Environment:
Last Closed: 2011-01-13 22:20:00 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:
Bug Depends On: 521835, 547642    
Bug Blocks: 514498    
Attachments:
Description Flags
Definition typo fix
none
dead_breve key works in guest none

Description Paolo Bonzini 2010-01-05 16:17:52 UTC
The same issue is present in Xen's qemu.

+++ This bug was initially created as a clone of Bug #547642 +++

Description of problem:
The keycode of the 'AltGr'key on german keyboards is not recognized in the internal vnc client of virt-manager.

Version-Release number of selected component (if applicable):
virt-manager-0.6.1-8.el5

How reproducible:
Always

Steps to Reproduce:
1. start virt-manager and open the local console of a VM
2. press the 'AltGr' key on keyboard
3.
  
Actual results:
After pressing and releasing the key the following error messages appear:

atkbd.c: Unknown key pressed (translated set 2, code 0x0 on isa0060/serio0).
atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x0 on isa0060/serio0).
atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.

Expected results:
Pressing the 'AtlGr' key should not produce an error message.

Additional info:
/etc/sysconfig/keyboard contain the following on host and guest:
KEYBOARDTYPE="pc"
KEYTABLE="de-latin1-nodeadkeys"

The VNC settings gor the guest specify the german keymap:
<graphics type='vnc' port='5900' autoport='yes' keymap='de'/>

--- Additional comment from crobinso on 2009-12-15 09:34:02 EDT ---

Is this KVM or Xen?

--- Additional comment from fdanapfe on 2009-12-15 10:17:20 EDT ---

This is KVM.

--- Additional comment from crobinso on 2009-12-15 18:13:00 EDT ---

I'm not really sure where the bug would be, but I know that issues like this are sometimes qemu problems, so reassigning to kvm.

--- Additional comment from kraxel on 2010-01-05 10:30:16 EDT ---

Created an attachment (id=381775)
fix

Qemu problem indeed, qemu simply can't handle the ISO_Level3_Shift modifier.
Picked a few bits from latest upstream version to fix it.

Comment 2 Michal Novotny 2010-03-15 12:52:09 UTC
(In reply to comment #0)
> The same issue is present in Xen's qemu.
> 
> +++ This bug was initially created as a clone of Bug #547642 +++
> 
> Description of problem:
> The keycode of the 'AltGr'key on german keyboards is not recognized in the
> internal vnc client of virt-manager.
> 
> Version-Release number of selected component (if applicable):
> virt-manager-0.6.1-8.el5
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1. start virt-manager and open the local console of a VM
> 2. press the 'AltGr' key on keyboard
> 3.
> 
> Actual results:
> After pressing and releasing the key the following error messages appear:
> 
> atkbd.c: Unknown key pressed (translated set 2, code 0x0 on isa0060/serio0).
> atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.
> atkbd.c: Unknown key released (translated set 2, code 0x0 on isa0060/serio0).
> atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.
> 
> Expected results:
> Pressing the 'AtlGr' key should not produce an error message.
> 
> Additional info:
> /etc/sysconfig/keyboard contain the following on host and guest:
> KEYBOARDTYPE="pc"
> KEYTABLE="de-latin1-nodeadkeys"
> 
> The VNC settings gor the guest specify the german keymap:
> <graphics type='vnc' port='5900' autoport='yes' keymap='de'/>
> 
> --- Additional comment from crobinso on 2009-12-15 09:34:02 EDT ---
> 
> Is this KVM or Xen?
> 
> --- Additional comment from fdanapfe on 2009-12-15 10:17:20 EDT ---
> 
> This is KVM.
> 
> --- Additional comment from crobinso on 2009-12-15 18:13:00 EDT ---
> 
> I'm not really sure where the bug would be, but I know that issues like this
> are sometimes qemu problems, so reassigning to kvm.
> 
> --- Additional comment from kraxel on 2010-01-05 10:30:16 EDT ---
> 
> Created an attachment (id=381775) [details]
> fix
> 
> Qemu problem indeed, qemu simply can't handle the ISO_Level3_Shift modifier.
> Picked a few bits from latest upstream version to fix it.    

Well, I don't think we need it because I was unable to reproduce this problem on current version of Xen package and when I saw it was not reproducible I did have a look to the keymap definitions in both keymaps file and the vnc_keymap header file and the code is currently present here as well so I recommend closing this one as a dup...

Michal

*** This bug has been marked as a duplicate of bug 547642 ***

Comment 3 Paolo Bonzini 2010-03-15 13:02:23 UTC
Sorry Michal for not telling the whole story -- I had left this bug open because "dead_breve" is misspelled "dead_brev" in Xen.

It's altgr-shift-4 on the Czech keyboard. e.g. dead_breve+a = ă

Comment 4 Michal Novotny 2010-03-15 13:06:47 UTC
Created attachment 400208 [details]
Definition typo fix

Thanks Paolo, this is the fix of this typo and since this typo was in the header file, I did some testing and it appears to be OK now. This is not the key I am usually using so I didn't know - thanks for the instructions.

Michal

Comment 5 Michal Novotny 2010-03-15 13:20:05 UTC
I'll rename this one since the new title is more precise.

Michal

Comment 9 Qixiang Wan 2010-08-24 13:12:02 UTC
Created attachment 440649 [details]
dead_breve key works in guest

Verified with xen-3.0.3-115.el5.
host:
RHEL-Server-5.5 x86_64
guest:
RHEL-Server-5.5 i386

set guest to use 'de' keymap (Czech is not supported by qemu vnc), the dead_breve key works in guest (see the attachment).

Comment 11 errata-xmlrpc 2011-01-13 22:20:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0031.html