Trying to remap CapsLock to Ctrl, but having odd results

Forum / NoMachine for Linux / Trying to remap CapsLock to Ctrl, but having odd results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44148
    MrCruz
    Participant

    Hello, I’ve been a NoMachine user for many years now, and have absolutely loved it. However, the biggest thorn on its side for me has been it’s inability to simply support keyboard remappings. Up until now, I thought I was missing something in my own systems, but it finally drove me to do a deep dive and think there’s something odd with how NoMachine is handling the Caps Lock.

    Some background, I primarily use NoMachine to access a Windows VM from within my local network from only Arch Linux machines. But in trying to root cause this problem, I created and have confirmed the problem persists with an Ubuntu VM, which I’ll be talking about from now on.

    The basic problem is that while I can successfully remap the keyboards on both the client (Arch Linux laptop+desktop) and the server (Ubuntu VM), the behavior of the CapsLock key appears strange.

    Using xev within the server, when pressing “Ctrl-a”, the button actions all occur as expected:

    • CtrlL is pressed
    • ‘a’ is pressed
    • ‘a’ is released
    • CtrlL is released

    However, when I repeat this same action with a remaped CapsLock key, the following sequence occurs:

    • ‘Remapped’ CtrlL is pressed
    • ‘Remapped’ CtrlL is released
    • ‘a’ is pressed
    • ‘a’ is released

    As soon as ‘a’ is pressed, a released event is created for the ‘Remapped’ CtrlL. I’m not 100% sure this issue is with the server or client, or elsewhere in the system, but I think I’ve done everything I can to isolate it to NoMachine. I’ve even tried different keyboards to test and all OSs and software is up to date.

    Any ideas or next steps would be greatly appreciated. I could even create some exact steps to reproduce the problem. I suspect (but have not yet tested) that this problem would persist if it was configured to be an Ubuntu VM remoting into another Ubuntu VM.

    #44161
    Britgirl
    Participant

    Hi, what happens if you remap only on the client side and not the server? Please try a connection when you have remapped only the Arch side.

    #44169
    MrCruz
    Participant

    That’s actually my typical setup, but no good.

    With Arch remapped (and confirmed with xev) and nxservice restarted, and the Ubuntu VM freshly restarted, the behavior is the same.

    With the client-side remapped CapsLock key, inside the Ubuntu VM, when holding down the Caps Lock, presing the letter ‘a’ generates a KeyRelease event before the letter ‘a’ is registered as pressed.

    #44171
    Britgirl
    Participant

    We would like to reproduce your exact case. Can you tell us (step by step) how you remap those keys on the client side?

     

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

Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.