LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2018, 09:06 AM   #1
sona1111
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: Disabled
xrdp right modifier keys don't work


Hello,

I have xrdp installed on RHEL7.3 along with the xfce desktop environment. The xorg direct passthrough protocol is being used to login (not xvnc). For a client the windows 7 and windows 10 platforms have been used with the built-in RDP client, but I have also tried a handful of alternative RDP clients with the same result.

As the title states, the right Shift, right CTRL, and right ALT keys do not work through the session. Most of the issue comes from the right Shift ; there are often problems typing passwords. I have tried to edit the keyboard file /etc/xrdp/km-00000409.ini, but the shift keys are already set to the correct keys according to running $ xev (50 and 62 for left and right), so I was not able to accomplish anything meaningful. I tried logging into xrdp session and ran $ xrdp-genkeymap km-00000409.ini , moved it to the /etc/xrdp folder, and restarted the xrdp service, still no improvement. I got the following message in the log file both before and after any changes that I made:

[20180227-18:46:28] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20180227-18:46:28] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file

Also from xev, the problem seems to appear, but I can not think of a solution. Here are the outputs from xev doing some relevant keystrokes:

-press and release left shift
-press left shift, press and release a, and release left shift

Code:
KeyPress event, serial 37, synthetic NO, window 0x2000001, 
    root 0x25e, subw 0x0, time 4159635, (138,16), root:(540,335), 
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyRelease event, serial 37, synthetic NO, window 0x2000001, 
    root 0x25e, subw 0x0, time 4162707, (138,16), root:(540,335), 
    state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyPress event, serial 37, synthetic NO, window 0x2000001, 
    root 0x25e, subw 0x0, time 4175682, (138,16), root:(540,335), 
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyPress event, serial 37, synthetic NO, window 0x2000001, 
    root 0x25e, subw 0x0, time 4178395, (138,16), root:(540,335), 
    state 0x1, keycode 38 (keysym 0x41, A), same_screen YES, 
    XLookupString gives 1 bytes: (41) "A" 
    XmbLookupString gives 1 bytes: (41) "A" 
    XFilterEvent returns: False 

KeyRelease event, serial 37, synthetic NO, window 0x2000001, 
    root 0x25e, subw 0x0, time 4178567, (138,16), root:(540,335), 
    state 0x1, keycode 38 (keysym 0x41, A), same_screen YES, 
    XLookupString gives 1 bytes: (41) "A" 
    XFilterEvent returns: False 

KeyRelease event, serial 37, synthetic NO, window 0x2000001, 
    root 0x25e, subw 0x0, time 4181066, (138,16), root:(540,335), 
    state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
All looks good! Now the problem:

-press and release right shift
-press right shift, press and release a, and release right shift

Code:
KeyPress event, serial 37, synthetic NO, window 0x2400001, 
    root 0x25e, subw 0x0, time 4419644, (406,3), root:(1243,404), 
    state 0x0, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyRelease event, serial 37, synthetic NO, window 0x2400001, 
    root 0x25e, subw 0x0, time 4420357, (406,3), root:(1243,404), 
    state 0x1, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyPress event, serial 37, synthetic NO, window 0x2400001, 
    root 0x25e, subw 0x0, time 4428720, (406,3), root:(1243,404), 
    state 0x0, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyRelease event, serial 37, synthetic NO, window 0x2400001, 
    root 0x25e, subw 0x0, time 4433217, (406,3), root:(1243,404), 
    state 0x1, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyPress event, serial 37, synthetic NO, window 0x2400001, 
    root 0x25e, subw 0x0, time 4433217, (406,3), root:(1243,404), 
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES, 
    XLookupString gives 1 bytes: (61) "a" 
    XmbLookupString gives 1 bytes: (61) "a" 
    XFilterEvent returns: False 

KeyRelease event, serial 37, synthetic NO, window 0x2400001, 
    root 0x25e, subw 0x0, time 4433334, (406,3), root:(1243,404), 
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES, 
    XLookupString gives 1 bytes: (61) "a" 
    XFilterEvent returns: False
So it seems like when using the right shift if another key is pressed it automatically makes the right shift key act as if it was released prior to pressing the 'a' key, so the a remains lowercase. The keymap itself looks like it is working ok. I have no ideas here!

Also, I have tried using x2go on the same system. With x2go the keyboard works fine. However, I switched to xrdp for performance reasons.

Please let me know if there are any other tests or information I could provide in order to work through this!

Thanks for reading.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Custom modifier keys in X insectiod Linux - Desktop 1 06-19-2014 05:16 PM
Problem re-mapping non-standard keys to modifier keys tias42 Linux - General 4 04-09-2011 05:03 AM
mouse keys as modifier keys (ctrl & alt) belda Linux - Desktop 3 06-25-2009 10:37 AM
xfce4 modifier keys question acidream Linux - General 3 10-11-2004 03:17 PM
Using modifier keys for special characters kpfeiffer Linux - Newbie 5 10-19-2002 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration