How to fix log toggle nightcaps

Often when using nomachine, the functionality of the keycap lock switches suddenly. As a rule, after a while it will return to normal. But now I have a situation where it didn't come back after a few days or after restarting my session. Does anyone know a way to fix this?

+3


source to share


1 answer


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



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)

      

+11


source







All Articles