reminder/specificities of my setup:
· aRDP running on Android devices
· RDP server:
xrdp 0.9.21.1
· server-side OS: Raspberry Pi OS 11 (Debian Bullseye) on a Raspberry Pi 4B
· server-side desktop environment: Xfce 4.16
· keyboard layout: bépo
· use a physical keyboard
· didn't know how to set the correct keyboard layout in aRDP once logged in to an RDP session
Hello!
Recently
I tried using aRDP again, and I actually managed to set the correct
layout for my physical keyboard. So I wanted to make some feedback that
may interest you or be helpful for users who connect to a GNU/Linux RDP
server.
1 - There is something strange. In aRDP sessions, if the
keyboard layout is set to "bépo" for both my physical and on-screen
keyboards, then the layout of on-screen keyboards is total mess. If the
layout of my physical keyboard is set to something else, then the layout
of my "bépo" on-screen keyboards is O.K.
2 - For GNU/Linux users who use xrdp (I think the behavior described below comes from xrdp):
2.1
- With my setup, when I log in to my xrdp session, if the Xfce keyboard
settings are set to defaults, the keyboard layout will be the U.S.
qwerty one, even if the default system-wide keyboard layout is set to
something else. So I have to set it manually:
• once and for all (till next time it must be done again):
"Applications" menu > Settings > Keyboard > Layout
Then uncheck « Use system defaults » and pick what you need in the « Keyboard layout » section.
Note that what you set here will be applied also to your local graphical session.
• or each time I log in:
run the «
setxkbmap "fr(bepo_afnor)" » command
(if
you don't want the bépo layout, run the «
man xkeyboard-config »
command, pick the correct model in the left column, and replace «
fr(bepo_afnor) » with it)
Note that in my 1st message, I wrote about the «
setxkbmap ... » command as a poor workaround. Now it works perfectly.
I
also tested LXDE-Pi desktop environment, which has a similar behavior.
Whatever keyboard layout is set, when I log in to my xrdp session, the
keyboard layout is also the U.S. qwerty one. The difference with the
above is that I have to set the correct keyboard layout each time I log
in:
• The easiest way to do:
run the «
setxkbmap "fr(bepo_afnor)" » command (see above)
• Or:
apps menu > Preferences > Keyboard and Mouse > Keyboard > Keyboard Layout
Then
if the layout that appears to be the one set is the one you want, you
have to change it to a random layout first. Then set the layout you want
to use.
2.2 - In my 1st message, all the stuff about
"/etc/xrdp/km-00000xxx.ini" files has nothing to do with keyboard layout
in aRDP sessions. It's only about the keyboard layout used in the login
screen of xrdp.