-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media keys have wrong keycode in XRDP session #1725
Media keys have wrong keycode in XRDP session #1725
Comments
It appears that this might be the case because the rdpKeyboard.c file does not contain the XF86keysym.h file is not defined there. Would it be possible to add this file and recompile from source? It simply looks like a list of definitions but I'm not sure if they will be picked up automatically or if something else needs to use them?... (by C programming is quite rusty since I haven't used it in quite a long time :( ) |
I faced with similar problem with keycodes in xRDP session in Ubuntu 18.04/20.04 in microsoft/vscode#111579. VSCode wiki suggests that it is probaly wrong mapping on the xRDP side. For example, corresponding output from VSCode build-in Developer: Toggle Keyboard Shortcuts Troubleshooting command when I press Divide on Numpad and then PageUp:
xev output for the same keys:
xrdp is using My RDP client is standard Windows 10 RDP client (mstsc.exe) Unfortunally, I can't check output when I physically sitting in front of my keyboard but I'll update this comment when I do (but probable that will not be soon). |
Any update on this? I have the same issue with Ubuntu 20.04 and Hyper-V's advanced session (which uses RDP) |
No significant progress, but I'll report what I've found so I can pick up on it later. Logging into the console of an Ubuntu VM with an X server gives me the following keycodes and keysyms according to
In an xrdp session, the same keys give me this:-
Stepping through the code, I'm getting the following values from the Windows client in TS_FP_KEYBOARD_EVENT PDUs:-
So it looks like the processing of the FASTPATH_INPUT_KBDFLAGS_EXTENDED is somehow going wrong. Sorry I can't be more help at present. |
OS: Lubuntu 20.04
Hyper-V vsock connection
It appears that the media keys have the wrong key codes when using the xrdp session (but they work fine with the basic session in Hyper-V)...
in the xrdp session the keycodes received for the media keys are wrong
The xrdp-genkeymap (in the xrdp session) command generated a new .ini file which was not the same as the default km-**409.ini that came by default, however this still did not work.
I attempted to set the key codes manually in the km-**409.ini file based on the output of 'xmodmap -pk' (in a basic session),
and
I don't know how to fix the wrong keycode issue for this..
The text was updated successfully, but these errors were encountered: