{"id":13772077,"url":"https://github.com/isaacwisdom/RemarkableLamyEraser","last_synced_at":"2025-05-11T04:31:07.778Z","repository":{"id":39898994,"uuid":"378295286","full_name":"isaacwisdom/RemarkableLamyEraser","owner":"isaacwisdom","description":"Turns the button on the Lamy Pen EMR into an eraser on the reMarkable.","archived":false,"fork":false,"pushed_at":"2024-03-31T08:35:40.000Z","size":667,"stargazers_count":275,"open_issues_count":3,"forks_count":32,"subscribers_count":18,"default_branch":"v1","last_synced_at":"2024-04-14T10:44:31.772Z","etag":null,"topics":["remarkable-tablet"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaacwisdom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-19T00:58:23.000Z","updated_at":"2024-05-20T14:47:30.406Z","dependencies_parsed_at":"2023-02-10T12:40:33.881Z","dependency_job_id":"5f476242-3f4d-4b56-983a-3b8ca11787e0","html_url":"https://github.com/isaacwisdom/RemarkableLamyEraser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacwisdom%2FRemarkableLamyEraser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacwisdom%2FRemarkableLamyEraser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacwisdom%2FRemarkableLamyEraser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacwisdom%2FRemarkableLamyEraser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaacwisdom","download_url":"https://codeload.github.com/isaacwisdom/RemarkableLamyEraser/tar.gz/refs/heads/v1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["remarkable-tablet"],"created_at":"2024-08-03T17:00:59.633Z","updated_at":"2025-05-11T04:31:07.453Z","avatar_url":"https://github.com/isaacwisdom.png","language":"C","funding_links":[],"categories":["Other"],"sub_categories":["Launchers"],"readme":"# RemarkableLamyEraser\nStandalone tool that turns the button on the Lamy Pen into an eraser on the reMarkable.\n\n\n\nAlso confirmed to work with these other styli:\n * Kindle Scribe Pen\n * Samsung S6 S Pen\n * Wacom One Pen CP91300B2Z\n \n*As an alternative, consider using [this](https://github.com/ddvk/remarkable-stylus). (If you're already using ddvk-hacks, I'd defintely reccomend this route. This tool is for people who are looking for a less invasive option, and prefer the unaltered look of the reMarkable interface.)*\n\nThe tool will definitely break when the reMarkable updates. When that happens, just reinstall!\n# Install Instructions\nMake sure your reMarkable is connected to the internet and then run the following command:\n```shell\nsh -c \"$(wget --no-check-certificate https://raw.githubusercontent.com/isaacwisdom/RemarkableLamyEraser/v1/LamyInstall.sh -O-)\"\n```\nNeed more help? Check [here](https://www.joshualowcock.com/guide/how-to-install-the-lamy-al-star-pen-button-eraser-hack-on-the-remarkable-2/).\n\n# Uninstall Instrucions\nMake sure your reMarkable is connected to the internet and then run the following command:\n```shell\nsh -c \"$(wget --no-check-certificate https://raw.githubusercontent.com/isaacwisdom/RemarkableLamyEraser/v1/LamyUninstall.sh -O-)\"\n```\n\n\n# Usage \nPress and hold to erase, release to use as a normal pen. Double click the button to undo. Note that at the moment, double pressing to undo only works for portrait orientation documents.\n\nFurther customization can be done by adding arguments to ExecStart line of the LamyEraser.service file. This can be opened with `nano /lib/systemd/system/LamyEraser.service`.\nThe supported arguments are:  \n`--press`   Press and hold to erase, release to use as a normal pen. *This is the default behavior.*  \n`--toggle`  Press the button to erase, press the button again to swtich back to a normal pen.  \n`--double-press undo` Double click the button to undo. *This is the default behavior.*  \n`--double-press redo` Double click the button to redo.  \n`--left-handed` Use this option if you are using left handed mode.  \nFor example, this line would use the toggle mode and redo on a double click:  \n`ExecStart=RemarkableLamyEraser --toggle --double-press redo`\n\n\nTo apply your config, run these commands:\n``` Shell\nsystemctl stop LamyEraser.service\nsystemctl daemon-reload\nsystemctl start LamyEraser.service\n```\n# How it works\nWhen 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\nthinking you are using the eraser side of the Marker Plus.\n\n# How to build\n\n* Download the latest toolchain for your device from \u003chttps://remarkablewiki.com/devel/toolchain\u003e (e.g. `codex-x86_64-cortexa9hf-neon-rm10x-toolchain-3.1.15.sh`)\n* run that file to install the toolchain (e.g. `sudo sh codex-x86_64-cortexa9hf-neon-rm10x-toolchain-3.1.15.sh`)\n* source the printed environment file (e.g. `source /opt/codex/rm11x/3.1.15/environment-setup-cortexa7hf-neon-remarkable-linux-gnueabi`)\n* compile `main.c` using the `CC` environment variable (e.g. `$CC -O2 main.c`)\n    * if there is an error like `no such file or directory`, copy the command and execute it directly instead of using `$CC`, e.g. `arm-remarkable-linux-gnueabi-gcc  -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/opt/codex/rm11x/3.1.15/sysroots/cortexa7hf-neon-remarkable-linux-gnueabi -O2 main.c`)\n\n# TODO:\n- [x] RM1 support (testers needed)\n- [x] Nice install script\n- [ ] toltec package\n- [x] config file (as opposed to current command line argument system) -__V2__\n- [x] flexible triggers (such as \"click\", \"press and hold\", \"double click\", \"double click and hold\", etc.) -__V2__\n- [x] freely assignable actions (as listed below, able to assign to any trigger above) -__V2__\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacwisdom%2FRemarkableLamyEraser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaacwisdom%2FRemarkableLamyEraser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacwisdom%2FRemarkableLamyEraser/lists"}