Bug 1024390

Summary: tigervnc resets the keyboard mapping
Product: Red Hat Enterprise Linux 6 Reporter: Siddharth <swaikar>
Component: xorg-x11-serverAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.5CC: mkolbas, swaikar, tpelka, vgaikwad
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-15 23:53:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1075802, 1159931    

Description Siddharth 2013-10-29 14:58:09 UTC
Description of problem:
keyboard mapping resets to default keyboard in vncserver

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 6.4

How reproducible:
always

Steps to Reproduce:
1. Install tiger vncserver and configure for user test on server A.   
2. Change keyboard keycode by xmodmap 
    xmodmap -e "keycode 29=z"
3. Now from other system client B connect to server A via vncviewer
 
Actual results:
keyboard setting does not change

Expected results:
keyboard keymap should change

Additional info:

Comment 4 RHEL Program Management 2013-11-03 08:05:09 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 12 Peter Hutterer 2014-11-28 03:28:29 UTC
Please provide more details what behaviour is expected and the exact setup and sequence of commands used on the various hosts/clients. I tried this on an up-to-date RHEL 6.6 and as far as I can tell this is a feature, not a bug.

tigervnc tries to map the keysym into a keycode to provide the right behaviour on the clients. This behaviour ensures that a client connecting with a qwerty keyboard layout on the host can use it as-is, and a client connecting with an azerty layout likewise. No reconfiguration of keyboards is thus necessary.

This is a feature, to achieve the outcome expected in comment #1 you'd have to run the xmodmap on the machine the host vncviewer is running on, so that vncviewer sends 'z', not 'y'.