#rm-pad

1 messages · Page 1 of 1 (latest)

worthy bluff
#

https://github.com/alvesvaren/rm-pad

I've created a program that allows you to use the rm2 (and possibly the rmpp but I can't test it as I don't have one) as a touchpad + drawing tablet on linux, similar to remarkabe_mouse and remousable, but with basically 0 jank and latency.

Currently it's limited to linux (and only tested on wayland, but should work on xorg), as remarkable_mouse works good enough for me on windows.

Features:

  • Optional automatic connection when plugging in (using a systemd service)
  • Multi touch support + touch gestures
  • Simple and adjustable palm rejection
  • Pen tilt and pressure
  • Very low latency and very polling rate (at least compared to remarkable_mouse)
  • Ability to freeze the tablet while connected, so you do not accidentally press stuff while using it on the PC (also unfreezes automatically if the connection is dropped for any reason)

Maybe someone is interested in it, I've mostly made it for myself but it turned out pretty well :)

There's a PKGBUILD if you're on arch that should handle setting up permissions etc correctly

GitHub

A user-space driver for remarkable tablets on linux, converting it into a seamless libinput touch device and drawing tablet. - alvesvaren/rm-pad

north jetty
#

Ability to freeze the tablet while connected
That is huge

#

Never had any real issues with Remouse, but it was kind of annoying that the tablet was still getting all the inputs

#

But is there any possibility for this to ever run on Windows? One of my primary usecases for this is using it at work because I have a drawing tablet at home, but on the go am limited to the rM2

#

Also, the Input Grab doesn't interfere with what is actually displayed on the screen, yes? So this could theoretically be used at the same time as vnsee to actually be able to see the screen you're drawing on?

worthy bluff
#

Yeah, the freeze just grabs the input devices (sadly causes it to sleep after a while but you can just start it again, probably fixable but not annoying enough yet for me to fix it)

north jetty
#

I'm not sure about this, but can't you just inhibit sleep through systemd?

worthy bluff
worthy bluff
north jetty
#

Fair enough

#

I wonder if this + vnsee could be used to turn the rM into a more or less full fledged touchscreen drawing tablet...

worthy bluff
#

mhm, I've looked at that a bit but I am running the latest remarkable firmware so I haven't really looked at package managers and getting that to work

north jetty
#

I mean, vnsee's mouse input stuff is very barebones, that certainly leaves some room for improvement.
Would you say it's difficult to make your project emulate a touchscreen input instead of a touchpad?

#

Cause if that works then it might be possible to just use vnsee for display out and rm-pad for the inputs

#

-# sorry i'm bombarding you with questions rn i just think this is really neat and am letting the ideas flood out

worthy bluff
#

It would be pretty easy, it's already sending absolute touch events, so changing it to a touch screen would just be telling libinput that it's a touch screen and not a touch pad

north jetty
#

Oh, neat

grand holly
#

Isn't that basically the same thing as netevent? I've been using that sucessfully for a long time now.

worthy bluff
#

that seems pretty similar, I'll have to check that out!

One advantage is that everything is automatically set up for you, so it's just a simple binary that you start, but most of that may possibly be easily done with that too

#

does netevent also EVIOCGRAB the input devices?

grand holly
#

netevent has optional grab (I do not know the exact mechanism behind it), but it is not specifically made for the remarkable

worthy bluff
#

because I had a lot of issues getting that to work, as you basically need some way of creating syscalls on the actual remarkable, so my solution was to cross-compile a binary for the remarkable that I then upload over scp to it and use that to grab the devices

#

afaik you'd probably need to run stuff on the remarkable for it to work, and also handle cleanup if the connection dies or freezes, so you're not stuck with an unresponsive tablet

grand holly
#

netevent needs binaries on both host and device

ionic wedge
north jetty
#

That's kinda genius actually

worthy bluff
#

I wonder how that would work when I've told the kernel that I want exclusive access to the pen device though :O

ionic wedge
worthy bluff
#

my last idea before abandoning it because I didn't really need it, was to double click the power button every X minutes as it seems like it keeps the connection alive for while after starting the sleep

#

and that resets the timer, but it also causes the screen to flicker and is a bit distracting