Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.