-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reMarkable 2 support #48
Comments
I'll solve this by making my code able to handle any number of battery and charger devices :P It looks like wlan0 is the same, so I wont touch that. |
Battery/Charger should be fixed by fb1ac1c By the looks of it the input devices on the rM2 are:
Which does not match the rM1:
Without having an rM2 to play around with I'm not sure how to make my code dynamically figure out which input to use for which. @ddvk Would you mind checking my battery code on the rM2? My charger code may not detect properly if it isn't reporting as a type of "USB". |
oxide is throwing: erode: |
So we need a different static library for the framebuffer, that will be unsolvable until that's provided. As for the battery, I guess I didn't look too closely at the filetree output. It doesn't have @ddvk What does |
/dev/input/event0 2 3 |
cat /sys/class/power_supply/max77818_battery/status_ex |
That's interesting. I wonder what the other possible values are. |
looks good, id_by_capabilities() is working (and is recommended way to identify the device types, imo). event0 must have different name than 'gpio-keys' (and why it is returning UNKNOWN by_name). these values line up with the stated ones, as well: event0 = button, event1 = stylus, event2 = touch |
Seems that here is some interesting info about the changes of the rM2. Would be really great, if we could that add to some wiki somewhere. For the version check I also stumbled on I also saw that we might be able to find at least some common paths to the evdevs. Are these also present and the same on the rM2?
I doubt that the ones with hardware addresses will work here. But we may be able to use the other ones to have a single path for GPIO and Wacom. My guess would be that on the rM2 these paths would be used for the ones with plaformspecific paths:
|
@LinusCDE the code from above that identifies a device FD based on capabilities is enough because the devices exist at /dev/input/event{0,1,2} on rm1 and rm2 and can be queried; they are just symlinked differently |
reMarkable: ~/ cat /sys/devices/soc0/machine |
I think that would be the preferred way to detect which device you are on. |
So valid way seem to be:
|
From my RM2: reMarkable: ~/ cat /sys/class/power_supply/max77818_battery/status
Discharging
reMarkable: ~/ cat /sys/class/power_supply/max77818_battery/status
Charging
reMarkable: ~/ cat /sys/class/power_supply/max77818_battery/status_ex
USB-C connected
reMarkable: ~/ cat /sys/class/power_supply/max77818_battery/status_ex
Charger not connected I tried with a usb c cable connected to PC and one connected to a power adapter, but both just say 'Charging'/'USB-C connected' |
Interesting, so it's providing duplicate functionality to the charger's sysfs status. |
Oh, I wonder if it does anything about the usb pogo port. I don't have a connector for that. |
@ddvk Have you found the pogo port in sysfs? |
there is /sys/otgcontrol that controls the pogo ports mode (host, gadget), also it is just usb |
My reMarkable 2 has a |
Darn :( What does |
Edit: I believe I am possibly experiencing a side effect of the buffered input bug. And i am using the Toltec version, I will try installing the latest build and letting you know. It doesn’t seem like an issue with the program itself, even Xochitl shows the same touch issues when launched. It also seems that the Application launcher is not filtering the input, ie, if I touch a button in the upper left-hand side of Xochitl, The corresponding app which in my case the process manager will immediately launch on exiting back to oxide. |
Last edit: I have traced the problem to my rm2fb install. Sorry to bother you with troubleshooting. If there is anything you would like me to test on my device in the future let me know. |
@Jcwscience No worries :) Glad to help troubleshoot, even if it's not my code that's at fault. |
This was not tested. Though by viewing the file tree of /sys provided by @torwag (Eeems-Org/oxide#48 (comment) file tree.txt line 3166) it seems that all methods are supported.
This was not tested. Though by viewing the file tree of /sys provided by @torwag (Eeems-Org/oxide#48 (comment) file tree.txt line 3166) it seems that all methods are supported.
On my rM1 from 2018:
|
I think it's getting safer to say that the possible rM1 values are reMarkable 1 and reMarkable Prototype 1 |
Agreed. If anybody finds new values, an issue on libremarkable would be welcome to add that to this internal list as well: https://github.com/canselcik/libremarkable/blob/075c05081c26f0fa47ac609b0d18c90082617f5c/src/device.rs#L25 |
I have the same kind of missed inputs/input lag issue with tarnish enabled. For me, it doesn't seem to be rm2fb because other apps work fine (fingerterm launched with remux with tarnish disabled works fine, but fingerterm launched by oxide is nearly impossible to type on). CPU usage stays below 20% with oxide/tarnish running, so I don't think that's the issue. The input trouble follows me to xochitl launched by oxide too. I have to click anywhere from one to five times on a menu or control to get it to activate, and there's significant lag between a press and the action. Same goes for fingerterm and even oxide/erode itself. |
Very odd. @Witos do you experience this as well? |
Yes, it happened to me with the other launcher (remux),but never with oxide that's why I use it. Xochitl / Koreader launched with remix had such a big lag that they were barely usable. |
@danshick I couldn't ever get the source build of rm2fb to work properly. I'm using the Toltec version, and the oxide v2.1 source build. Seems to have fixed most problems although I am still having an issue where suspending with the tarnish power menu causes the screen to stay white until reboot. |
Everything works for me in terms of Oxide / Tarnish / KOreader / Xochitl apart from issue #135, which is not a deal breaker. I'm using 2.1 oxide and rm2fb head. |
Hmm, v2.1 shouldn't have an issue with suspend anymore. Do you have any reproduction steps that are consistent? Could it be related to #135? |
That sounds like it, I'll see if I can work out the exact circumstances this afternoon and let you know. |
I was trying both oxide/tarnish and rm2fb from toltec testing as of yesterday. And nothibg was needed to trigger. As soon as xochitl was disabled and tarnish was enabled (both with --now), everything lagged hard. As soon as I disabled tarnish and reenabled xochitl, I was back to full speed. Enabling remux (also from testing) didn't cause a slowdown. I guess I should try building HEAD for both repos. I wish we had AUR style VCS repos, but there's probably no chance of building on-device reasonably fast. |
toltec packages are inspired by the archlinux PKBUILD format, so you could in theory build locally and copy over the ipk. Most of our builds are just pulling precompiled binaries though which makes it less usable for what you are wanting. I wonder if rm2fb is the issue here? Maybe on your device the communication with the screen is lagging due to ipc communication slowdowns of some sort? |
oxide 2.1~beta1 fixed the issue |
hey there -- I installed Oxide from zip and installed rm2fb from Toltec. once launching Xochitl, how does one return to Oxide? thanks! |
Hi. Currently the best option seems to use genie. Genie is a systemd-service in the background that can run commands on certain gestures. Here is a good sample config for oxide (paste it to |
I feel like nobody reads the release notes :( |
I feel the same. Everything relaying current information should probably just go into the readme as people will look there. I personally keep to only stating changes and sometimes hint or repeat what I put in the readme. |
FWIW, I read release notes and README, but I'm still having difficulty figuring out how to get oxide to import and launch KOreader. Maybe it's the draft config that I'm not setting up correctly -- I tried to remove the
Regardless, @Eeems, I appreciate the work! N.B. there's a small typo in the Usage section: "Oxide consists of siz applications", I think it should be six applications. |
Have you tried installing KOReader from toltec? It will automatically register the application for you using an oxide application registration file instead of draft. Thanks for letting me know about the typo, I'll go fix it. |
Got it, thanks! |
It's probably safe to say that this can be closed. |
The rM2 has different device pathes and hence it requires some adaption to run oxide on the rM2.
A file-tree of the sys folder rM2 was provided by @ddvk is here:
tree.txt
The text was updated successfully, but these errors were encountered: