Repository navigation
Port arch-ipad-rotate-output daemon to C99 - #229
Merged
Merged
Conversation
Replaces the Python 3 desktop/configuration/rotate-output daemon with a zero-dependency C99 binary (desktop/configuration/rotate-output.c, ~40 KB ELF, ~0.5 MiB RSS). Preserves the exact debounced orientation state machine, accelerometer mount-matrix & turning-rate detector, wlr-randr output selection and speaker-transform publishing, monitor-sensor restart logic, and discovery exit behavior. Assisted-by: LLM
This was referenced Dec 6, 2026
# Conflicts: # CHANGELOG.md # Makefile # desktop/install-tree # release/audit.py # tests/package_tree.py # tests/test_package.py
Contributor
|
Merged, thank you Tom! Rotation runs on every board with an accelerometer, so this frees memory almost everywhere. On your branch we merged main in (it now builds next to the other C helpers, and the old Python script is gone from the install list) and added the changelog line. Last one: #230. |
This was referenced Dec 6, 2026
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.
Replaces the Python 3
desktop/configuration/rotate-outputdaemon with a zero-dependency C99 binary (desktop/configuration/rotate-output.c, ~40 KB ELF, linked only with-lm).wlr-randroutput selection & J120 speaker-transform publishing,monitor-sensorrestart logic, and discovery timeout exit.tests/test_rotate_output.pyto run all 14 end-to-end and policy unit tests directly against the compiled C binary.Tested: 44/44 pass (
test_rotate_output.py,test_package_staging.py,test_package.py).