NoMachine keyboard switch

Forum / NoMachine for Linux / NoMachine keyboard switch

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21638
    dragonlost
    Participant

    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 raspberry

    Exact same problem.

    My log is attachment

     

    #21667
    graywolf
    Participant

    Hello, I think you should rename the file to upload. File names having that suffix are not allowed.

    #21686
    graywolf
    Participant

    Hello, 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?

    #21687
    dragonlost
    Participant

    Hello.

    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)

    #21692
    graywolf
    Participant

    I 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"

    #21694
    dragonlost
    Participant

    For 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

    #21706
    graywolf
    Participant

    So 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.

    #21712
    dragonlost
    Participant

    I 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.

    #21714
    graywolf
    Participant

    Command 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).

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

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