Fix takeover mode on OS 3.28 (EPFramebuffer::swapBuffers ABI change)#18
Open
frapeti wants to merge 1 commit into
Open
Fix takeover mode on OS 3.28 (EPFramebuffer::swapBuffers ABI change)#18frapeti wants to merge 1 commit into
frapeti wants to merge 1 commit into
Conversation
On reMarkable OS 3.28, libqsgepaper dropped EPContentType from the QRect swapBuffers overload. libquill.so built for 3.27 fails at launch with: symbol lookup error: undefined symbol: _ZN13EPFramebuffer11swapBuffersE5QRect13EPContentType12EPScreenMode... Resolve both the legacy and 3.28+ mangled symbols via dlsym at runtime so one libquill.so works on 3.27 and 3.28+. Link libdl for dlsym. Tested on Paper Pro (Ferrari) OS 3.28.0.162 — riddle opens in takeover mode without crashing or rebooting the tablet. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On reMarkable OS 3.28+, opening The Diary in takeover mode (via AppLoad) fails immediately and can reboot the tablet:
This is not an AppLoad/xovi issue — the hashtab loads fine. reMarkable changed the vendor e-paper API: the
EPFramebuffer::swapBuffers(QRect, …)overload on 3.28 no longer takesEPContentType.…swapBuffersE5QRect13EPContentType12EPScreenMode……swapBuffersE5QRect12EPScreenMode…Prebuilt AppLoad bundles shipping
libquill.socompiled against 3.27 symbols therefore crash on 3.28.Fix
swapBufferssymbols at runtime viadlsyminquill_c.cpp.-ldlwhen buildinglibquill.so.libquill.soworks on 3.27 and 3.28+.Verification
Tested on Paper Pro (Ferrari), OS 3.28.0.162:
libquill.sointo the existing v0.3.0 AppLoad bundleriddle: the diary is open— no symbol lookup error, norm-emergencyrebootRelease note
After merge, rebuild and republish the AppLoad bundle (
./build-takeover.sh && scripts/make-bundle.sh) so installs pick up the newlibquill.so. Existing users on 3.28 can hot-swap onlylibquill.soas a quick fix.Made with Cursor