Skip to content
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

Prevent finding PID of xochitl_pdf_renderer when seeking framebuffer #124

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

AngleOSaxon
Copy link
Contributor

Fixes a bug in the Remarkable Paper Pro support when launching the process with a PDF or ePub file open. When one of these files is open the process /usr/bin/xochitl_pdf_renderer is running, causing the findXochitlPID function to fetch its PID instead of /usr/bin/xochitl's PID. Having found the wrong process, the tool is therefore unable to find the framebuffer and exits with failed to get memory range: no mapping found for /dev/dri/card0.

This PR changes the findXochitlPID function to look for exactly /usr/bin/xochitl instead of using contains.

I have not tested this change on a ReMarkable 2.

@owulveryck
Copy link
Owner

LGTM
Thank you very much

@owulveryck owulveryck merged commit faf29d8 into owulveryck:main Dec 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants