RemarkableLamyEraser
Standalone tool that turns the button on the Lamy Pen into an eraser on the reMarkable.
Also confirmed to work with these other styli:
- Samsung S6 S Pen
Install Instructions
SSH into your reMarkable and make a directory to store our files:
cd
mkdir RemarkableLamyEraser
Download the binary from the release page, and the .service file from the project page:
cd ~/RemarkableLamyEraser
wget https://github.com/isaacwisdom/RemarkableLamyEraser/releases/latest/download/RemarkableLamyEraser
wget https://github.com/isaacwisdom/RemarkableLamyEraser/raw/main/RemarkableLamyEraser/LamyEraser.service
Make the binary exectuable, copy the .service file to systemd file, enable, and start it. This means the tool will automatically start on boot:
chmod +x RemarkableLamyEraser
cp LamyEraser.service /lib/systemd/system/
systemctl daemon-reload
systemctl enable LamyEraser.service
systemctl start LamyEraser.service
Uninstall Instrucions
systemctl stop LamyEraser.service
systemctl disable LamyEraser.service
rm -rf ~/RemarkableLamyEraser
rm /lib/systemd/system/LamyEraser.servicea
systemctl daemon-reload
systemctl reset-failed
Usage
When you press the button on the Lamy Pen, an input event with code BTN_TOOL_RUBBER is sent into dev/input/event1. Essentially, this tricks the reMarkable into thinking you are using the eraser side of the Marker Plus. Press and hold to erase, release to use as a normal pen.
Toggle Mode: I also created a mode that toggles between eraser mode and pen mode on the button press. However, due to the way the EMR technology works, the reMarkable can only catch when you've pressed the button on the Lamy pen when it is close to the screen. Personally, I found this made it difficult to use this mode, but if you'd like to switch modes, add --toggle argument in line 6 of the LamyEraser.service file (using nano or whatever). It should look like this:
ExecStart=/home/root/RemarkableLamyEraser/RemarkableLamyEraser --toggle
(Remove the argument to return to press and hold mode.) Then run these commands
cd ~/RemarkableLamyEraser
cp LamyEraser.service /lib/systemd/system/
systemctl stop LamyEraser.service
systemctl daemon-reload
systemctl start LamyEraser.service
TODO:
- RM1 support (testers needed)
- Nice install script
- Some way of changing the toggle mode preference while the service is already running (Anyone have any ideas for this?)
- Double press to undo