Skip to content

Fix reStream.sh/restream binary issues for RM2 firmware 3.27+ - #131

Draft
kalihale wants to merge 5 commits into
rien:mainfrom
kalihale:restream-error-fixes
Draft

Fix reStream.sh/restream binary issues for RM2 firmware 3.27+#131
kalihale wants to merge 5 commits into
rien:mainfrom
kalihale:restream-error-fixes

Conversation

@kalihale

@kalihale kalihale commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes the 3.27 memory-offset regression (skip_offset) and an orphan restream process left running on the reMarkable after reStream.sh exits (can now exit with ^C)
    • RM2 sometimes changes memory offset of framebuffer after running for a while - not sure why, but a restart fixes it, so no need to change skip_offset from the 3.24 version.
  • Adds fix for pen tracking, now renders as one solid dot vs. being scattered in three places

Test plan

  • sh -n reStream.sh (syntax check)
  • cargo build for src/main.rs
  • Manually verify reStream.sh connects and streams from an RM2 on firmware 3.27+
  • Manually verify -c/cursor tracking is correctly aligned on 3.27+

kalihale and others added 3 commits June 12, 2026 12:42
Fixes the 3.27 memory-offset regression and orphan restream process
on exit, adds a --pen-orientation flag to correct cursor alignment
on fw 3.27+ with graceful fallback for older on-device binaries, then
removes pen-orientation handling entirely (both the reStream.sh glue
and the restream binary's PenOrientation logic) since it proved
unnecessary in practice.
@Eeems

Eeems commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This appears to change the default from landscape to portrait, and remove the --portrait flag and replace it with --landscape. This will break any existing workflows people have with this script where they depend on the --portrait flag. It's also missing from the summary.

This also breaks compatibility with being installed via vellum by removing /home/root/.vellum/bin from the path, also missing from the summary of changes.

@kalihale

kalihale commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

@Eeems Thanks for the catch! Reverted those changes and added fix for pen tracking.

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