machinelevel / sp425-crazy-cow

Add crude keyboard-lettering function to eink tablet
MIT License
77 stars 6 forks source link

Support Remarkable 2 #6

Closed b4be1 closed 3 years ago

b4be1 commented 4 years ago

Hi Eric,

I like the idea of this repository a lot. However, I am not able to connect a Bluetooth keyboard to my Remarkable 2 to experience it. It seems the Bluetooth dongle is not recognized at all by the device. I followed the debug procedure from https://github.com/machinelevel/sp425-crazy-cow/issues/1, but /dev/input/ only contains the pencil input and touchscreen. Any ideas how to debug this or how to proceed in general?

I haven't tried connecting a normal USB keyboard yet, but I will try it tomorrow.

Best, Boris

machinelevel commented 4 years ago

Hi Boris! Thanks for posting this issue. If you have time, please try this binary in the branch 1-multiple-keyboards, to address more complex USB setups. I've succeeded in using it with Bluetooth, but setups do differ.

Also, if that branch does work on the rM2, please let me know! I've just got my trusty rM1, so it'd be good to have a test case.

It may solve the problem simply; I'm using it myself but haven't merged it into the main branch yet, just to avoid disrupting other users.

Let me know if it works for you, and thank you again!

b4be1 commented 4 years ago

Hi Eric,

Thanks for your reply and support. The issue turns out to be rm2-specific. Namely, the USB-C port can only be used for charging (at least at the moment). The only option right now is to use the pogo pins next to the USB-C port to connect the Bluetooth dongle. There is more info on this problem available here https://github.com/ddvk/remarkable-hacks/issues/122#issuecomment-730955977.

Best, Boris

isman7 commented 3 years ago

Hi all, we have been discussing these connectors a lot here: https://github.com/dps/remarkable-keywriter/issues/14, an actual Bluetooth keyboard worked for me using the pogo pins. As Crazy Cow is easy to run than this app I have tested it tonight, and everything works!

rm2-keyboard-crazy-cow

So, technically crazy cow works with remarkable 2 out of the box using the master branch, only you have to build some complex connector.

Edit, detail of the connector:

image

machinelevel commented 3 years ago

Aha that's fantastic! Thanks for this, will add a note to the Readme. Well done!

isman7 commented 3 years ago

Hey! As @b4be1 asked for USB-C support as USB Host, I can confirm you now it is possible, as you can follow in these thread from remarkable-keywriter: https://github.com/dps/remarkable-keywriter/issues/14#issuecomment-796275021. Cheers, Ismael

b4be1 commented 3 years ago

@isman7 thanks for sharing the info. With the USB-C, it is much more usable now.

CrayCJ commented 2 years ago

I'd like to report the following process to be working form me on the rm2 repeatedly:

This is how I got this to work:

  1. SSH to RM2 - the code lines beneath are to be typed into your ssh terminal, or are returned by it...
  2. Attach usb c power cable - without adapter or anything - to usb c port of rm2 to power it. rm2 charges and shows charging icon.
  3. (optional, list usb devices: lsusb --> nothing is returned, as expected.)
  4. Change state of usb port (and - optionally - list usb devices): echo host > /sys/kernel/debug/ci_hdrc.0/role (optional: lsusb return: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub --> the rm2's own usb c port is detected.)
  5. Detach usb c power cable from rm2. As the state of the port was changed to host, the charging icon on the rm2 will NOT disappear now!!
  6. Attach usb c power cable to usb c port of adapter. Attach adapter to usb c port of rm2. (This will charge the rm2 apparently.)
  7. (optional, list usb devices: lsusb return: Bus 001 Device 003: ID 0639:7210 Chrontel, Inc. USB 2.0 Hub Bus 001 Device 002: ID 1a40:0801 Terminus Technology Inc. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub --> the rm2's own usb c port from previously as well as - at least for me - two aditional port, probably the c and a port of my adapter, are detected!)
  8. Attach USB A Keyboard to USB A port of adapter.
  9. (optional, list usb devices: lsusb return as in 7, plus above those: Bus 001 Device 004: ID 09da:0260 A4Tech Co., Ltd. KV-300H Isolation Keyboard --> the keyboard is detected!!
  10. Have fun, type, start any typing applications (like crazy cow, which can be kept running though, i.e. might(!) not have to be stopped and re-started each time), etc.
  11. When done: echo gadget > /sys/kernel/debug/ci_hdrc.0/role --> This is to revert the rm2's usb c port to it's previous state. Without this, the charging icon won't disappear, but the rm2 seems to draw power regardless of the port's state, if a power cable is attached in any way.
  12. Detatch adapter, etc.
  13. Attach and detach power to and from rm2 to make the charging icon disappear.
  14. Repeat...

@machinelevel Many, many thanks for your marvellous piece of software. This is so useful and even works with the different pens!