Forum / NoMachine for Linux / NoMachine keyboard switch
- This topic has 8 replies, 2 voices, and was last updated 5 years, 9 months ago by graywolf.
-
AuthorPosts
-
March 4, 2019 at 09:14 #21638dragonlostParticipant
Hello !
I have exact same problem :
https://forums.nomachine.com/topic/remote-terminals-have-the-wrong-keyboard-layout
I tried to connect but each time the layout of the keyboard changes to be in US (a normal layout is French).
I tried :
Ubuntu Amd64 -> Ubuntu raspberry
Ubuntu Raspberry -> Ubuntu Amd64
Android -> Ubuntu Amd64
Android -> Ubuntu raspberryExact same problem.
My log is attachment
March 5, 2019 at 12:46 #21667graywolfParticipantHello, I think you should rename the file to upload. File names having that suffix are not allowed.
March 7, 2019 at 13:21 #21686graywolfParticipantHello, in log I see you connected to share the physical display.
So do you have a remote display with a French layout and when connecting by NoMachine it switches to US? Did I understand it correctly?
May I ask you:
1. Does the problem occur in the login screen or in the desktop environment?
2. Which is the desktop in use (Gnome, KDE, Xfce, …)?
3. Which is the display manager (GDM, KDM, SDDM, LightDM, …)?
4. The precise version of Ubuntu in use?March 7, 2019 at 16:19 #21687dragonlostParticipantHello.
Yes, you understood well.1. In desktop environment ( I am in auto login)
2. My desktop is Ubuntu Mate Bionic armhf (but same problem in Ubuntu mate amd64)
3. GDM (but same problem in lightDM on my amd64 computer)
4. Ubuntu Mate Bionic (18.04.2) armhf (same problem on my computer, Ubuntu mate Bionic 18.04.2 Amd64)
March 8, 2019 at 12:16 #21692graywolfParticipantI think that physical keyboard has correct layout (French) while virtual keyboard used by NoMachine has US layout. Run a terminal emulator in MATE and type
xinput list
The list of avaialble input device is shown, e.g.:
~$ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Logitech Performance MX id=10 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ USB Keyboard id=8 [slave keyboard (3)] ↳ USB Keyboard id=9 [slave keyboard (3)]
You can see that “Virtual core XTEST keyboard” has id number 5. Pass that number to the -i switch of command xkbcomp to query the keymap:
~$ xkbcomp -i 5 -xkb $DISPLAY - | grep "xkb_keycodes\|xkb_types\|xkb_compatibility\|xkb_symbols\|xkb_geometry" xkb_keycodes "evdev+aliases(qwerty)" { xkb_types "complete" { xkb_compatibility "complete" { xkb_symbols "pc+us+inet(evdev)" { xkb_geometry "pc(pc105)" {
Then repeat for your physical keyboard id and compare results.
Please take a look of input device settings in /etc/X11/xorg.conf and /etc/X11/xorg.conf.d. Dump Mate keyboard-related configuration:
gsettings list-recursively | grep -i "keyboard\|xkb"
March 10, 2019 at 08:52 #21694dragonlostParticipantFor my keyboard :
xkbcomp -i 8 -xkb $DISPLAY – | grep “xkb_keycodes\|xkb_types\|xkb_compatibility\|xkb_symbols\|xkb_geometry”
xkb_keycodes “evdev+aliases(azerty)” {
xkb_types “complete” {
xkb_compatibility “complete” {
xkb_symbols “pc+fr+inet(evdev)” {
xkb_geometry “pc(pc105)” {for my virtual keyboard :
xkbcomp -i 5 -xkb $DISPLAY – | grep “xkb_keycodes\|xkb_types\|xkb_compatibility\|xkb_symbols\|xkb_geometry”
xkb_keycodes “evdev+aliases(qwerty)” {
xkb_types “complete” {
xkb_compatibility “complete” {
xkb_symbols “pc+us+inet(evdev)” {
xkb_geometry “pc(pc105)” {for gsettingd output : see attached
No have xorg.conf or xorg.conf.d
Attachments:
March 11, 2019 at 10:52 #21706graywolfParticipantSo the physical keyboard is set to French while virtual to US. I can’t explain how that occurred. If you like to investigate further you can look into /var/log/Xorg.0.log. By the way, I’d try to fix it by setting French layout in Mate configuration: as the setup looks unique it is supposed to be applied to all keyboards.
Setting French layout in a purposely created config file in xorg.conf.d could be a solution as well.March 12, 2019 at 09:10 #21712dragonlostParticipantI tried to set the keyboard. the layout changes everywhere (physic and virtual). But after a computer restart the virtual keyboard goes back to US layout 🙁 (test with mate configuration and “sudo dpkg-reconfigure keyboard-configuration”).
Do you have another solution?
Can be with xorg.conf.d but i do not know how it works.
March 12, 2019 at 10:25 #21714graywolfParticipantCommand
localectl set-x11-keymap fr
would set the Xorg keyboard layout to French (automatically creating the config file /etc/X11/xorg.conf.d/00-keyboard.conf). -
AuthorPosts
This topic was marked as solved, you can't post.