matteodelabre/vnsee

Send pen input with pressure and tilt information

matteodelabre opened this issue · 2 comments

Would be useful for using drawing apps such as Krita or xournalpp through VNC.

A solution could be to use the GII protocol extension, but we need to investigate how many VNC servers support it first: https://vncdotool.readthedocs.io/en/0.8.0/rfbproto.html#gii-client-message.

At least basic input from the pen would still be a good first approximation.
Done: Initial support for pen input emulated with mouse events. No support for pressure or tilt sensitivity yet.

A stopgap solution for linux machines is to use https://github.com/Blub/netevent. Here is a summary of how to do so:

  • install netevent on the host machine

  • make sure uinput is enabled in the kernel and that user has permission to
    access /dev/uinput

  • unzip and copy this binary netevent.zip to the remarkable, possibly within your $PATH

  • edit the following configuration file changing user to the correct username
    and put it in a suitable location in the remarkable

device add mymouse /dev/input/by-path/platform-30a20000.i2c-event-mouse
output add myremote exec:ssh user@10.11.99.2 netevent create
grab on
use myremote
  • when starting vnsee also run the following command:
netevent daemon -s /path/to/the/configuration/file netevent-command.sock

TODO:

  • streamline the process
  • make netevent available through toltec