funkey / recept

Pen event interception for line smoothing on the reMarkable 2 tablet
MIT License
163 stars 13 forks source link

Pen event mapping by external process / library (custom filters) #12

Closed LoganDark closed 2 years ago

LoganDark commented 2 years ago

My RM2 suffers from an issue where in specific spots of the display, the drawing tools are slightly offset from the physical tip. So much so that the line appears next to the tip.

image image

Due to this I want to make another program that uses recept to fix the misalignment in the miscalibrated portions of the display. However, recept doesn't support custom filters yet :( so I'm opening this issue to track that.

Some ideas:

LoganDark commented 2 years ago

I recently discovered that LD_PRELOAD supports multiple libraries in a row, so this actually isn't the issue I thought it was

funkey commented 2 years ago

I think the easiest solution would probably be to directly apply the offset in recept and compile a custom version that fixes your issue. This way, you don't have to chain several LD_PRELOADs together.

LoganDark commented 2 years ago

I don't actually use ReCept - I just saw that it already did something that I wanted to do (intercept pen events and modify them), and thought about using it to achieve what I wanted.

FYI, this is not a simple offset. Different regions of the display have different error and therefore a much more complex calibration sequence is needed. Extending ReCept's codebase to support this directly would be a bit niche, especially since a companion app is required to collect the calibration data anyway.