NoMachine Support

Your questions answered

Knowledge Base

Searching in: Trouble Reports
Filter the search results
Last update:
Searching in: Trouble Reports
ID: TR09Q09412
Added on: 2019-09-25
Last update: 2020-05-15
Affects: 6
Due to be solved in:  6.x
Platform: All Linux Platforms
Product: NoMachine Server
Severity: Minor
Status: Open
Keyboard layout is wrong when sharing a physical desktop

When a physical desktop on is remotely shared, keys input through the client are treated on the server side as a default US keymap is set. The layout looks correct to user typing directly at the console on the server side sharing the desktop.

The command "setxkbmap -layout <required language>" usually fixes the problem.


The problem is due to Xorg ignoring the keyboard options for device "Virtual core XTEST keyboard".

To verify that, execute the following command in a terminal running inside the NoMachine session:

xinput list

to find the number of Virtual core XTEST keyboard device.

Then pass that number to the -i switch of command xkbcomp to query the keymap.

For example, if 'xinput list' returns 5, execute on a single line:

xkbcomp -i 5 -xkb $DISPLAY - | grep "xkb_keycodes|xkb_types|xkb_compatibility|xkb_symbols|xkb_geometry"

Output of this command will be similar to:
xkb_keycodes "evdev+aliases(qwerty)"
xkb_types "complete"
xkb_compatibility "complete"
xkb_symbols "pc+us+inet(evdev)"
xkb_geometry "pc(pc105)"


Then repeat the same for the physical keyboard attached to the computer and compare results for both tests.

Notify me when the TR is closed.