recept icon indicating copy to clipboard operation
recept copied to clipboard

Remarkable 1 support

Open otanim opened this issue 2 years ago • 1 comments

Hello,

So I read your message about support for remarkable 1, were changing event1 to event0 in recept.cpp, and recompiling should allow using this library: https://www.reddit.com/r/RemarkableTablet/comments/js9pbf/fix_for_the_jagged_line_issue_on_remarkable_2/

However, after finally managing to recompile the project, my Remarkable 1 rebooted and got into an infinite loop of booting: image

I managed to unbrick my device via this tool: https://github.com/ddvk/remarkable-uuuflash

I'm unfortunately not good at C language, it is quite hard for me to program on it, however, if you can assist me with support, I might will be able to prepare this project for the Remarkable v1.

I can confirm that event0 is the pen device:

remarkable: ~/ cat /proc/bus/input/devices 
I: Bus=0018 Vendor=056a Product=0000 Version=0036
N: Name="Wacom I2C Digitizer"
P: Phys=
S: Sysfs=/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0009/input/input0
U: Uniq=
H: Handlers=mouse0 event0 
B: PROP=0
B: EV=b
B: KEY=1c03 0 0 0 0 0 0 0 0 0 0
B: ABS=f000003

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="cyttsp5_mt"
P: Phys=2-0024/input0
S: Sysfs=/devices/soc0/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0024/input/input1
U: Uniq=
H: Handlers=event1 
B: PROP=2
B: EV=f
B: KEY=0
B: REL=0
B: ABS=6f38000 2000000

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/soc0/gpio-keys/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: PROP=0
B: EV=3
B: KEY=8000 100640 0 0 0

However, I don't know how to debug/develop on Remarkable device, i.e.:

  • how to prevent an infinite loop,
  • how to test the library without rebooting the device,
  • how to see stdin of the library,
  • where/how to log error/debug messages.

otanim avatar Dec 08 '22 17:12 otanim

Sounds like you weren't stuck in an infinite loop of booting, xochitl was just failing to start as something was wrong with the recept code. You would need to SSH in over USB to check what it was doing. To test without rebooting, just restart the xochitl service.

Eeems avatar Feb 10 '23 20:02 Eeems