libuiohook icon indicating copy to clipboard operation
libuiohook copied to clipboard

libuihook not able to find keyboard/mouse when invoked over SSH on an UDOO Quad

Open tsantor opened this issue 7 years ago • 0 comments

I am using the Node package iohook which leverages libuiohook. The original issue was here for context. However, now that I can run iohook on the UDOO Quad ARM computer locally when run from the terminal on the physical machine, I cannot run iohook when invoking the app from a remote computer via SSH.

I was told this was an libuiohook issue so here I am.

The usage example iohook provides works when run from the terminal on the actual machine with a monitor, keyboard and mouse.

However, when disconnecting the monitor and keyboard (and even with them connected) and SSHing into the UDOO, I get this when running the usage example:

on_library_load [456]: XOpenDisplay failure!
load_input_helper [1907]: XkbGetKeyboard failed to locate a valid keyboard!
PID 7608 received SIGSEGV for address: 0x94
Error: Couldn't find per display information

Also, the intent is for this to be run on an UDOO Quad without a monitor or mouse connected, just a USB button which essentially acts as a keyboard.

Doing the reverse and SSHing into my Mac from the UDOO, I am able to run the usage example remotely on my Mac and press the USB button connected to the Mac and get the keyup event. However, doing the opposite and SSHing into my UDOO from the Mac and running the usage example provides the above error. Any ideas?

tsantor avatar Mar 02 '18 15:03 tsantor