Repository navigation
waze-on-cluster: Android Auto changes wait for the next head-unit start - #284
Merged
Merged
Conversation
patchd never restarts aapd: an aapd started while the head unit runs gets no touch or iDrive controller input until the next head-unit start (#85). Patch, Remove patch, Zoom and the turn card are armed or disarmed at once and shown as pending, with Restart head unit. woc-patch.sh aa-revert says the same instead of suggesting a kill and start. CarPlay is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… waits The app offers Patch, Remove patch, Zoom and the turn card while an Android Auto change waits for the head-unit start, as patchd takes them; that start applies the last. The cluster map row follows what the running aapd runs, so a waiting Zoom or Remove patch keeps it on. The fake patchd answers Android Auto changes as patchd does. patchd's tests cover several changes before one start; unused test helpers and an aapd mention in restartUnit's comment go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ther patchd compares the turn card's crop override with the one the running render read at its start (its WOC_SRC_CROP), not with the file: hiding and showing the card again, or Remove patch then Patch with the card hidden, leaves nothing waiting when the render and aapd already run it. patchd's tests cover the card with a render running and a card change over a waiting Zoom. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e restart Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
patchd never restarts aapd. Android Auto's Patch, Remove patch, Zoom and Hide phone's turn card are armed or disarmed at once and take effect at the next head-unit start: the app shows
Patched after restart/Removed after restartand Restart head unit. Every Android Auto setting can be changed again while a change waits, and that one restart applies the last choice. CarPlay is unchanged.Why: on main, patchd applies an Android Auto change at once by SIGKILLing aapd and starting it again (where recmgr had loaded aapd's entry). An aapd started while the head unit runs gets no touch or iDrive controller input until the next head-unit start (reproduced on a car in #85). A user who pressed Patch after Android Auto's patch had been removed reported exactly that: the patch applied, then Android Auto's screen took no touch.
waze-on-cluster
patchd.js: aapd's target refuses a restart (restartRefused), so every Android Auto change takes the deferred path (the same one a boot without recmgr's aapd entry takes).WOC_SRC_CROP); with no render running, any change of the file waits. Changing a setting back to what already runs leaves nothing waiting.woc-patch.sh aa-revertsays the change takes effect at the next head-unit start and warns never to kill, stop or restart aapd on its own.aapd_test.jschecks that Patch, Zoom, the card and Remove patch leave aapd running and write the pending marker, and that several changes before one start end as the last asked: Patch then Remove patch (nothing waits), Remove patch then Patch (nothing waits), Zoom twice, Zoom and back, Remove patch and Patch over a waiting Zoom, the card hidden and shown again with a render running, a Zoom over a waiting card, each followed by the start.Maps on cluster (app)
runDpiin patchd's status): a Zoom or Remove patch waiting over the running patch keeps it on until the restart; a Patch waiting over a stock aapd shows Off.Rollback: nothing new is stored. A downgrade runs this version's
deactivate(record, plan and copy of aapd.conf removed) and then the earlier release's install.AI: Claude Code, Claude Opus 5.5 (investigation, change, tests, PR).
Tested:
node patch/test/aapd_test.jswith aapd 22.39.3 and its aapd.conf: all 252 checks pass, with the earlier Zoom-spacing check's 10 s window widened locally: on this loaded machine the 240 dpi plan takes over 10 s, and that check fails the same way on unchangedmain.node apps/robertn_waze_cluster/tools/test_control.js: 53/53;test_page.js: all passed.make -k -j4 teston the first commit (stopped before it finished; the PR's CI runs the whole suite): every result it printed passed exceptrecovery_test.js"the real boot step puts back … in about a second" (2.1 s against its 2 s bound on this busy machine; it fails the same way on unchangedmain;recovery.jsis not changed here).Human review: none before opening.
Screenshots: the app on a test unit.
A change waiting for the restart:
The cluster map row while that change waits and the patched aapd still runs:
After, the Android Auto status with the Zoom waiting:
Right after Remove patch:
After, further down the same page: Restart head unit offered.
🤖 Generated with Claude Code