Evidlo / remarkable_mouse

use your reMarkable as a graphics tablet
GNU General Public License v3.0
506 stars 48 forks source link

Support for Lamy pen #49

Open fikovnik opened 3 years ago

fikovnik commented 3 years ago

I'm using the Lamy pen with my rM1 and it works great. It has an extra button that is mapped to eraser tool in rM. I was wondering if it would be possible to use it also for the remarkable_mouse?

From remarkable-hacks#19 I got this info:

In /dev/input/event0 you get:

    type: 1 code: 331 value: 1 on button down
    type: 1 code: 331 value: 0 on button up

Would it be possible to support these events so in xournal++ I can map it to an eraser tool as well.

Evidlo commented 3 years ago

Have you tried it with the --evdev option?

fikovnik commented 3 years ago

I tried, but that does not work at all:

sudo remarkable-mouse --key ~/.ssh/remarkable --evdev
[sudo] password for krikava:
connected to 10.11.99.1
Created virtual input device '/dev/input/event18'
Error setting orientation: b'unable to find device reMarkable tablet stylus\n'
Error setting monitor: b"unable to find device 'reMarkable tablet stylus'\n"
Error setting pressure threshold: b'unable to find device reMarkable tablet stylus\n'
Error setting fit: b'unable to find device reMarkable tablet stylus\n'

Without evdev it works.

Evidlo commented 3 years ago

Is this on Wayland? --evdev only works on X11 right now.

fikovnik commented 3 years ago

No, this is on X11. I'm using arch with dwm.

On Thu, Feb 11, 2021, 10:09 PM Evan Widloski notifications@github.com wrote:

Is this on Wayland? --evdev only works on X11 right now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Evidlo/remarkable_mouse/issues/49#issuecomment-777792292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC3PEXNYO6J3H6FSJHSFIDS6RBPBANCNFSM4XM6EV7A .