Giter VIP home page Giter VIP logo

Comments (8)

skadge avatar skadge commented on June 30, 2024

Adding the following lines to /lib/udev/hwdb.d/60-evdev.hwdb:

evdev:input:b0018v056Ap0000*
 EVDEV_ABS_00=::20
 EVDEV_ABS_01=::20

Followed by:

$ sudo systemd-hwdb update
$ sudo udevadm trigger /dev/input/event5

And finally restarting remouse fixes the problem.

Two important notes:

  • the value after evdev:input is the modalias of the tablet. You might want to check how it appears on your system: cat /sys/devices/virtual/input/input58/modalias
  • I'm not sure about the actual resolution of the tablet, but 20 units/mm seems not too far off (the resulting behaviour of the tablet was ok)

from remarkable_mouse.

chabad360 avatar chabad360 commented on June 30, 2024

I hate to be a bother, but I'm having this issue as well and it's been a while since this was touched.

from remarkable_mouse.

Evidlo avatar Evidlo commented on June 30, 2024

Maybe something like this is the right approach?

Can someome try adding this in evdev.py?

device.absinfo[libevdev.EV_ABS.ABS_X] = InputAbsInfo(resolution=2531)
device.absinfo[libevdev.EV_ABS.ABS_Y] = InputAbsInfo(resolution=2531)

Not sure if these resolutions are correct. In the example it seems like the resolution is in dpi, which I manually computed. Does the error go away at least?

from remarkable_mouse.

chabad360 avatar chabad360 commented on June 30, 2024

Where would I put it?

from remarkable_mouse.

Evidlo avatar Evidlo commented on June 30, 2024

from remarkable_mouse.

chabad360 avatar chabad360 commented on June 30, 2024

I stuck it over here:

...
   # Enable position, tilt, distance and pressure change events
    device.enable(
        libevdev.EV_ABS.ABS_X,
        libevdev.InputAbsInfo(
            minimum=0,
            maximum=MAX_ABS_X,
            resolution=2531 # <----
        )
    )
    device.enable(
        libevdev.EV_ABS.ABS_Y,
        libevdev.InputAbsInfo(
            minimum=0,
            maximum=MAX_ABS_Y,
            resolution=2531 # <----
        )
    )
...

from remarkable_mouse.

chabad360 avatar chabad360 commented on June 30, 2024

Further testing revealed a slight lack of alignment, but that was fixed with --mode fill. So it seems to have worked (yay)!

from remarkable_mouse.

chabad360 avatar chabad360 commented on June 30, 2024

@Evidlo mmm... it seems like the alignment issues persist, so either the resolution is wrong, or there is something wrong with remap()

from remarkable_mouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.