Keyboard mapping error when connecting to RDP session

Forum / NoMachine for Linux / Keyboard mapping error when connecting to RDP session

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49138
    Equester
    Participant

    hello.

    I am using Ubuntu 22.04 on a server machine. I installed nomachine to control this computer remotely.

    However, when I connect to the server computer via simple remote control, the monitor connected to the server computer is 1280×1024, so it was limited to extend the resolution with xrandr.

    So I opened a separate xrdp session in Ubuntu and connected to it with nomachine. I was able to connect at 1920×1080 resolution, but the keyboard behaved strangely. The keyboard arrow keys were all mapped to weird keys, especially the up arrow key, which results in a capture (printscreen).  How can I fix this?

    #49152
    Britgirl
    Keymaster

    Can you show us the output of the ‘setxkbmap -print’ command run inside the xrdp session?

    #49156
    Equester
    Participant

    In gdb(local),

    xkb_keycodes  { include “evdev+aliases(qwerty)” };

    xkb_types     { include “complete” };

    xkb_compat    { include “complete” };

    xkb_symbols   { include “pc+kr+kr(kr104):2+us:3+inet(evdev)” };

    xkb_geometry  { include “pc(pc105)” };

    In an XRDP environment,

    xkb_keycodes  { include “xfree86+aliases(qwerty)” };

    xkb_types     { include “complete” };

    xkb_compat    { include “complete” };

    xkb_symbols   { include “pc+kr+kr(kr104):2+us:3” };

    xkb_geometry  { include “pc(pc104)” };

    I attach the image. Thank you.

    Attachments:
    #49195
    fra81
    Moderator

    Hi,

    it seems that the X11 agent is not detecting correctly the actual XKB rules settings. In fact, xfree86 rules are used in the xrdp session, which are obsolete, instead of the evdev rules, that are now generally used. We will fix that in one of the next updates, but for now, as a workaround, running this command in the xrdp session should do the trick:

    setxkbmap -rules evdev

Viewing 4 posts - 1 through 4 (of 4 total)

This topic was marked as solved, you can't post.