-
Notifications
You must be signed in to change notification settings - Fork 23
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
rm2fb waveforms don't support qtswikipedia #17
Comments
That would hint at A2/DU being used. GL16/GC16 should handle this just fine. And AUTO should make the right choice on its own, too. Which probably indicates that something changed in the EPFrameBuffer API or something, because I assume the stock software does have the ability to display more than 2 or 4 shades of gray ;)? |
Has there been any communication on rM's part about an updated SDK for the rM2? So we'd get to see the new version of this. |
Yes, they've released it: reMarkable/linux#7. It doesn't have any libraries for interacting with the framebuffer. Just the old rM1 libraries. |
Huh, yeah, same old version of that header :/. |
two pieces of note are:
in KOReader+rm2fb, book cover images look fine to me - but maybe i should try using a test image that i know what its supposed to look like. |
|
AFAICT, 0 shouldn't actually work. It's You generally want 1 (DU), 2 (GC16) or 3 (GL16). enum WaveformMode {
Initialize = INIT,
Mono = DU,
Grayscale = GL16,
HighQualityGrayscale = GC16,
Highlight = UNKNOWN
};
Which is consistent with the actual |
Those constants used to match with the actual MXCFB constants: https://github.com/NiLuJe/FBInk/blob/5d5e8f0210a1afb6709c499179f1d2cacd70e0af/eink/mxcfb-remarkable.h#L139-L159 (c.f., strace logs) |
Dunno. I'm able to use waveforms: 0, 1, 2, 3 and 8 (maybe 8 is debugging?). 0: slower than 1 I thought UpdateMode -> UpdateFlags, but now not sure. If I set mode=8, updateFlags = 1, it flashes all the queued dirty regions on the screen when doing a repaint, and i can see 20 - 30 small regions (5x5) per update when drawing a line (which corresponds to the regions i'm sending over as dirty) |
You interpretation of 1, 2, 3 makes sense. 0 should be broke as all hell (or at best useless in practice), unless they fudge it internally to something else ( I don't recall if we ever tested 8, but if we commented it out in FBInk, it was probably broken ;). My best guess as far as
|
i checked master and the it still doesn't render links properly, even though multiple fixes were applied to waveform handling |
talking with bokluk the other day, we think that SWTCON is not properly drawing the blue channel (and ignoring some blue bits). one way to work around is to convert to grayscale before displaying in your app, the other is to fix SWTCON code itself (unlikely). for this issue, i would consider it success when we fix qtswikipedia's links to show up |
@raisjn is this still an issue? |
@raisjn poke? |
from @dps: remarkable-wikipedia doesn't show links correctly.
https://rmkit.dev/rm2fb/qtwikipedia <--- test binary with built in page
https://rmkit.dev/rm2fb/qtwikipedia.png <--- what is in the buffer
but what shows up on screen is that the link is invisible.
i tried using waveforms 0, 1, 2, 3 and none of them showed the link for me
The text was updated successfully, but these errors were encountered: