feat(kindle): run Hero demo on Paperwhite 5 - #191
Draft
doodlewind wants to merge 1 commit into
Draft
Conversation
Contributor
|
@doodlewind If you need help testing on other devices I have a Kindle Oasis at home this week, I should also be able to fetch a Kindle 5 if my parents haven't trashed it. |
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
kindle-pw5target (309×412 logical pixels at 4× density, host ABI 5) with a standalone ARMv7 musl Rust hostWhy
PocketJS had early e-ink-facing pieces but no complete Kindle runtime or proven Hero path. This change carries the same Hero source through target resolution, native build, deployment, Gray8 framebuffer rendering, FBInk presentation, touch input, and safe device restoration on a Paperwhite 5.
The hardware pass also uncovered and fixes four device-specific failures:
rotate=3even though the visible framebuffer is already uprightpowerdmay remain inscreenSaverwhile the PocketJS framebuffer is visible, suppressing touch events; the launcher now records, verifies, and restorespreventScreenSaverUser/developer impact
bun run kindle build|deploy|run|reload|devnow provides a verified PW5 development loop. Runtime launch exclusively grabs the discovered evdev touchscreen, uses damage-aware DU updates followed by a flashing regional GC16 cleanup, refuses unsupported panel/input/power states, and restores the exact Kindle UI and power-management state on exit.Validation
preventScreenSaver=0bun tools/kindle.ts build --plan=.pocket/kindle-pw5/plan.jsonbun run testtests/kindle-bootstrap.test.ts,tests/kindle-tooling.test.ts)git diff --check