How to fix nomachine caps log toggle

2.8k views Asked by At

Often when using nomachine the functionality of the caps lock key will suddenly toggle. Usually it will revert back to normal after a while. But now I have a situation where it had not reverted back after a few days, nor after restarting my session. Does anyone know a way to fix this?

1

There are 1 answers

3
Larry Martell On BEST ANSWER

A colleague of mine found a solution to this. Running the following python code on the remote Linux/Un*x system fixed the problem:

from ctypes import *
X11 = cdll.LoadLibrary("libX11.so.6")
display = X11.XOpenDisplay(None)
X11.XkbLockModifiers(display, c_uint(0x0100), c_uint(2), c_uint(2))
X11.XCloseDisplay(display)