-
-
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
Need new keyboard layout : Keyboard layout changes on client connection loss #3348
Comments
This seems to be down to the Czech keyboard layout not being supported. The keyboard identifier for the Czech keyboard (from here) is 00000405. This can be seen from the xrdp.log log file which shows a fallback to the US keyboard:-
We're no longer supporting xrdp v0.9.x apart from security fixes. However, I can put a patch together for you for v0.10.x, which would probably work for v0.9.x. Would you be interested in trying that? |
Sure, @matt335672, I'd be happy to ^^ |
Thanks. I'm looking at the Windows layout for the Czech keyboard (code 0405) here:- https://www.kbdlayout.info/kbdcz The GNOME layout from a screenshot is here:- These look different to me (but I'm not a Czech speaker). Is this what you'd expect in moving from Windows to GNOME, or am I missing something? |
Yes, the Windows and Linux keyboard layouts are different. I don't know why that is, but it seems to be a Linux-wide difference not exclusive to GNOME. The Linux variant of the Czech layout is the same on Arch with Plasma and Debian without a GUI, too. It's most likely just a difference for the sake of there being a difference. It doesn't really matter in day-to-day typing. |
I've got a PR #3358 out for V0.10 to add the Czech keyboard. It won't go into the next v0.10.x release which is imminent, but it will go into the next release, whatever that is. To use retro-fit this to v0.9.x
--- a/xrdp/xrdp_keyboard.ini
+++ b/xrdp/xrdp_keyboard.ini
@@ -60,6 +60,7 @@ layouts_map=default_layouts_map
rdp_layout_us=0x00000409
rdp_layout_us_dvorak=0x00010409
rdp_layout_us_dvp=0x19360409
+rdp_layout_cz=0x00000405
rdp_layout_dk=0x00000406
rdp_layout_de=0x00000407
rdp_layout_es=0x0000040A
@@ -88,6 +89,7 @@ rdp_layout_pt=0x00000816
rdp_layout_us=us
rdp_layout_us_dvorak=us(dvorak)
rdp_layout_us_dvp=us(dvp)
+rdp_layout_cz=cz
rdp_layout_dk=dk
rdp_layout_de=de
rdp_layout_es=es
@@ -127,6 +129,7 @@ layouts_map=default_layouts_map
rdp_layout_us=us
rdp_layout_us_dvorak=us(dvorak)
rdp_layout_us_dvp=us(dvp)
+rdp_layout_cz=cz
rdp_layout_dk=dk
rdp_layout_de=de
rdp_layout_es=es In summary, all lines with a @Chesters-CZ - please try that and let us know how you get on. |
Thank you, this fixed the issue. |
Thanks @Chesters-CZ I've changed the title of this issue so other people may be able to find it. |
xrdp version
0.9.21.1
Detailed xrdp version, build options
Operating system & version
Debian GNU/Linux 12 (bookworm)
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
?
What desktop environment do you use?
GNOME
Environment xrdp running on
Dell PowerEdge R510 server with MGA G200eW WPCM450 GPU
What's your client?
Remote Desktop Connection (C:\WINDOWS\system32\mstsc.exe) running on a Windows 11 machine
Area(s) with issue?
Keyboard / Mouse
Steps to reproduce
✔️ Expected Behavior
Keyboard layout after step 1 should be the same as after step 4 (for me, Czech QWERTZ)
❌ Actual Behavior
The layout after step 1 is correct - Czech QWERTZ
The layout after step 4 is different - English QWERTY or some kind of cyrillic layout
Anything else?
Keyboard layout gets fixed after logging out and logging back in. The keyboard layout in the Gnome settings stays unchanged:
xrdp-sesman.log
xrdp.log
xorg.conf.txt
Github does not accept the .conf filetype, so I appended .txt.
The text was updated successfully, but these errors were encountered: