{"id":13772032,"url":"https://github.com/LinusCDE/rmTabletDriver","last_synced_at":"2025-05-11T04:31:06.783Z","repository":{"id":96746246,"uuid":"178287004","full_name":"LinusCDE/rmTabletDriver","owner":"LinusCDE","description":"A userspace tablet driver on Linux for the reMarkable Paper Tablet","archived":false,"fork":false,"pushed_at":"2020-01-28T03:15:30.000Z","size":18,"stargazers_count":26,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T07:34:32.265Z","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-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusCDE.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":"2019-03-28T21:47:16.000Z","updated_at":"2024-10-10T06:21:32.000Z","dependencies_parsed_at":"2023-06-28T21:10:24.022Z","dependency_job_id":null,"html_url":"https://github.com/LinusCDE/rmTabletDriver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusCDE%2FrmTabletDriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusCDE%2FrmTabletDriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusCDE%2FrmTabletDriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusCDE%2FrmTabletDriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusCDE","download_url":"https://codeload.github.com/LinusCDE/rmTabletDriver/tar.gz/refs/heads/master","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.039Z","updated_at":"2025-05-11T04:31:05.705Z","avatar_url":"https://github.com/LinusCDE.png","language":"C","funding_links":[],"categories":["Other"],"sub_categories":["Template Builders"],"readme":"# rmTabletDriver\n\n[![Mentioned in Awesome reMarkable](https://awesome.re/mentioned-badge.svg)](https://github.com/reHackable/awesome-reMarkable)\n\nThis userspace driver for linux is able to simulate the real tablet input from your reMarkable Paper Tablet on your Linux PC (or VM).\n\nThere are two files. `tabletDriver.c` and `tabletDriver.py`. They both do the same thing. Choose as you wish.\n\nThis is the client side. You can find the server side (to be run on the reMarkable) in [rmWacomToMouse](https://github.com/LinusCDE/rmWacomToMouse).\n\n# Problems\n\nCurrently the driver won't work with the libinput driver. This driver is used on Wayland and often replaces the evdev xinput driver on xorg, providing nearly the same support as the evdev xinput driver.\n\nIf the command `libinput` exists, you'll likely have this driver and probably not the evdev xinput driver.\n\nWhen developing on my laptop (which used the libinput driver) I encountered two issues when checking my fake device using `libinput list-devices`:\n\n- It was missing a stylus button\n- There was no resolution found (which was given in tabletDriver.py)\n\nIt turned out, that the python evdev library wasn't able to send the resolution (probably using an old way for setting abs info). This is fixed as of version 1.2.0.\n\nThus the tabletDriver.c was created. Doing the same but having the ability to specify resolution (can be seen with the `evtest` command).\n\nCURRENT PROBLEM: Since the libinput driver was mainly made for Wayland, the xinput driver isn't the best. So the virual tablet device is added as a keyboard. I currently don't know why and how to fix it. But I haven't given up yet.\n\n\n## libinput workaround\n\nTo still use the tablet, you can install the evdev xinput driver alongside the libinput driver.\nOn most distros it is called something alongside of `xorg-input-evdev` (on Arch it is `xf86-input-evdev`).\n\nThis may cause some devices to STOP WORKING (in my case the touchpad on my laptop).\n\nTo fix this, you either remove the evdev driver again or create a file in `/etc/X11/xorg.conf.d/` and call it for example `90-libinput_override.conf`:\n\n```\nSection \"InputClass\"\n        Identifier \"libinput override fix for Device X\"\n        MatchProduct \"\u003cPRODUCTNAME\u003e\"\n        Driver \"libinput\"        \n```\n\n**DISCLAIMER**: Mistyping something in the file (except the product name in the quotes) can lead to the failure of all graphical UIs (greeter and desktop) and seem like you bricked you computer!\n\nTo get the product name you can install `evtest`, run `evtest /dev/input/event0`, check if input on your failed device produces any output in the terminal, and if not cancel (Ctrl+C) and try with the next number (event1) and so on.\nWhen you found the device, you run the command again and will find the product name in the first few lines of output.\n\nTo apply the changes reboot your computer.\n\n\n## Tablet not working with evdev xinput driver\n\nCreate a file called `/etc/X11/xorg.conf.d/10-evdev.conf` and add [this content](https://gist.github.com/Leonidas-from-XIV/4306072).\n\n\n# Enabling the Tablet in GIMP\n\nIn order to work in GIMP, the device must get enabled under `Edit -\u003e Input devices`.\n\n\n# Calibrating\n\nIt also is a good idea to calibrate the tablet using xinput_calibrator because the tablet screen will be streched to match your screen. That will result in a wrong aspect ratio.\n\nWhen calibration using xinput_calibrator use the pdf, open it on the reMarkable and touch the points there.\n\n(I essentially just recorded the calibration screen, took a screenshot, changed the colors, added borders, and created a pdf from it.)\n\n# Credits\n\nHuge thanks to benthor's [HuionKamvasGT191LinuxDriver](https://github.com/benthor/HuionKamvasGT191LinuxDriver) (found \n[here](https://docs.krita.org/en/reference_manual/list_supported_tablets.html)) as it gave me the final hint on how to get the driver to work with Krita!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinusCDE%2FrmTabletDriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLinusCDE%2FrmTabletDriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinusCDE%2FrmTabletDriver/lists"}