-
Notifications
You must be signed in to change notification settings - Fork 22
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
Tiny refresh glitch #38
Comments
Oh, I should clarify that this weirdness did not happen with KOReader v2020.12. |
can you test once more with KOReader v2020.12 to verify that it works there? it is likely a problem with rm2fb that was exposed in a recent KOReader update, but just want to double check. if anything changed in KOReaders mxcfb code this past month, that could be related. it is likely that we will want to enable debugging mode to see the updates being sent by the client shim and the updates received by the server and then analyze what happens when opening a dialog. is there a task you are tracking this with in KOReader? |
Downgraded koreader to v2020.12, leaving the rm2fb libraries untouched. Problem disappeared. Oh, and I remembered the specific confirmation dialog that's unreadable:
Since reMarkable wi-fi wasn't yet implemented in koreader v2020.12, that "delete" dialog is the easiest reproducible test for both versions. By "enable debugging mode" do you mean just in koreader, or in the rm2fb libraries as well? I'm happy to keep testing/debugging, but I might need a little more n00b guidance :) No, I had not yet created an issue in the KOReader github project. I wasn't sure if it was good manners to immediately create an issue in both projects at the same time, since I wasn't sure where the actual problem is. |
I'm not seeing adding support for wifi on the reMarkable in the v2021.01 or v2021.01.1 release notes. Upon reviewing source I do see code for handling wifi. That said I'm not sure it's going to play nice with Oxide or Xochitl.
Usually not that big of an issue if you track on both projects if you aren't sure where it's coming from. |
https://github.com/koreader/koreader/releases/tag/v2021.01 I don't know if it plays nice with Oxide, since I don't use it. But everything seems to work okay when switching back and forth between KOReader and Xochitl. |
@snelg i just glanced through the commit log, thanks for adding the rM2 features to KOReader! i think that it is possible that KOReader is using the "wait for update" ioctl which is not yet implemented in rm2fb. its connected as mech_wait_update_complete in koreader-base, not sure what it is exposed as in lua. one thing to do is test on rM1 to verify the behavior is working there (which i think it will be). for debugging purposes, there is a DEBUG flag: https://github.com/ddvk/remarkable2-framebuffer/blob/master/src/client/main.cpp#L136 in rm2fb. setting DEBUG will show client:sync when the wait for last update ioctl is sent and it will show the dirty rectangles (in the server) sent by the client. |
I don't have an rm1 to test with, so someone else will have to look at that. I built rm2fb with DEBUG flag defined. Here are the output differences when I press the "Delete" button in the long-press book title popup.
(Visual reference, showing v2021.01.1: https://imgur.com/a/ack5fMa ) |
i think it must be the wait ioctl ("CLIENT: sync"). we can put a small sleep (500ms - 1s) in the wait for update ioctl (also in the client cpp file linked above) which would reduce the frequency of this happening, but long term we will have a way for server to signal to clients when an update is completed. |
Yes, your suggested quick-and-dirty hack works well enough for my purposes. Even as low as 100ms worked for my personal test cases, so that's what I'm using on my rm2 for now. But I only use KOReader, so my test cases are fairly limited. |
that would be really helpful! i didn't want to ask before being sure it works relatively well (and gets code review), but if you have cycles, i'm happy to have help |
this is now merged into toltec stable |
I don't know enough low-level details to diagnose whether this is a KOReader issue, an rm2fb issue, or some combination of both.
KOReader v2021.01
rm2fb v0.0.2
Sometimes KOReader info boxes pop open only half-formed. I can consistently reproduce it with the "Network Info" message, showing here:
https://imgur.com/a/Mq1fWOl
After the half-mangled message appears, I can swipe to move it a little bit, causing it to cleanly refresh (also shown in the brief clip).
Not a huge deal for my day-to-day usage, although I did have it happen once with a confirmation dialog, so I couldn't read the "yes/no" option buttons until I carefully moved the dialog a bit.
The text was updated successfully, but these errors were encountered: