Reply To: Intermittent loss of keyboard/mouse

Forum / NoMachine for Linux / Intermittent loss of keyboard/mouse / Reply To: Intermittent loss of keyboard/mouse

#25601
graywolf
Participant

So you have one virtual NoMachine display. You can check input with xev:

  • Connect by NoMachine to the troublesome session.
  • Connect by ssh to the NoMachine server and run this command to find the display number of the session and exporting to terminal: export $(cat /proc/$(pgrep nxclient.bin)/environ | grep -z DISPLAY) (there is only one session, so only one nxclient.bin)
  • Run the xev command in the ssh terminal. The xev white window will show up in the NoMachine session. Try to hover, click, type in the window. Check the results in the ssh terminal.

Then, you can list the apps grabbing the mouse/keyboard:

  • Run the command  xdotool key XF86LogGrabInfo in the ssh terminal.
  • Check the result in session log file. Find it with command  /usr/NX/var/log/node/C-*$(cat /proc/$(pgrep nxclient.bin)/environ | grep -z NX_SESSIONID | cut -f2 -d= )/session
  • You can terminate the grabs with command: xdotool key XF86ClearGrab or kill the grabbing app.