Reputation: 3756
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?
Upvotes: 2
Views: 2914
Reputation: 3756
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)
Upvotes: 12