Repository navigation
Switch speakers to speakerguardd v2 for users - #195
Merged
Merged
Conversation
aurora-audio depends on speakerguardd-v2 (RC8 or later) and aurora-speaker-upgrade beside speakersafetyd and speakerguardd 0.1, and aurora-speaker-upgrade 0.1-0.2 enables its unit by a shipped preset, applied on install and once on the upgrade from the disabled preview (as asahi-scripts does for its units). At the next boot each Mac collects its own tuning, self-checks it silently and switches only on a pass; a refused Mac keeps speakersafetyd and is not retried until the kernel or speakerguardd changes (speakerguardd#125). Twin of fedora-aurora#239. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
# Conflicts: # packages/aurora-audio/PKGBUILD # packages/aurora-speaker-upgrade/PKGBUILD
…C8.2 The switch-on now requires speakerguardd-v2 RC8.2 or later (same-boot switch grants, #134) and the matching aurora-speaker-upgrade. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The switch-on now requires speakerguardd-v2 RC8.4 (speakerguardd ff88f9f9) and aurora-speaker-upgrade 0.1-0.7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move both packages to speakerguardd v2 49b1c107 (speakerguardd#144): aurora-speaker-upgrade switches without the preview confirmation, and the boot unit no longer needs --i-understand-preview (still accepted, no effect). The package descriptions drop the preview notice and docs/speakerguardd-v2-preview.md becomes docs/speakerguardd-v2.md. Both packages stay opt-in; nothing here enables the upgrade unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aurora-speaker-upgrade with the preset becomes 0.1-0.8 and the platform requires speakerguardd-v2 release candidate 9 and that build, so the boot unit the preset enables switches without a confirmation flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Numbered past release candidate 8.5: aurora-speaker-upgrade with the preset is 0.1-0.9 and the platform requires speakerguardd-v2 release candidate 9 (0.39, alarm 32) and that build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Numbered past release candidate 8.6: aurora-speaker-upgrade with the preset is 0.1-0.10 and the platform requires speakerguardd-v2 release candidate 9 (0.40, alarm 33) and that build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
aurora-audio 4.1.aurora2-17 depends on speakerguardd-v2 >= 1.0.0alpha.1-43 and aurora-speaker-upgrade >= 0.1-0.17 beside speakersafetyd and speakerguardd 0.1, which stay installed as the fallback. aurora-speaker-upgrade 0.1-0.17 ships 90-aurora-speaker-upgrade.preset, which enables aurora-speaker-upgrade.service; its install script applies the preset on install and once on the upgrade from a disabled build. At the next boot each Mac switches only when its own tuning passes the silent self-check; a refused Mac keeps speakersafetyd. Both v2 packages move to speakerguardd v2 d2457cf2 (speakerguardd#171, #176, #179, #187, #194). tests/test_pins.py asserts the new defaults and that the legacy stack stays. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Adds speakerguardd#199: the J815 graph is regenerated with the #176 hold sink, so it matches what the session helper links. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Pin speakerguardd main dafc5088 (tag v1.0.0-alpha.2), the first release from main now that v2 is speakerguardd's main line; same tree as v2 86fbf429. speakerguardd-v2 1.0.0alpha.2-1 (pkgrel resets with the new pkgver), aurora-speaker-upgrade 0.1-0.18; aurora-audio depends on both. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
Problem
speakerguardd v2 has been installable by hand since release candidate 9, but no default package pulls it in, so every Arch Linux ARM install still runs the legacy protection (speakersafetyd + speakerguardd 0.1).
Change
aurora-audio4.1.aurora2-17 depends onspeakerguardd-v2>=1.0.0alpha.2-1andaurora-speaker-upgrade>=0.1-0.18, besidespeakersafetydandspeakerguardd.aurora-speaker-upgrade0.1-0.18 ships90-aurora-speaker-upgrade.preset, which enablesaurora-speaker-upgrade.service(aurora-speaker-upgrade run --at-boot). Its install script applies the preset on install, and once on the upgrade from a disabled build (anything before 0.1-0.17).dafc5088, tagv1.0.0-alpha.2, the first release from main now that v2 is speakerguardd's main line).speakerguardd-v2is 1.0.0alpha.2-1 (pkgrel resets with the new pkgver). Since RC9: publish-payload: build with aurora-distributions 2aa2e04 #171 (voicing stops after long exact silence), build-image: retry the package install when a download stalls #176 (speaker path idles while nothing plays), aurora-touchid-rearm 1-4: Touch ID waits for the first password after boot by default #179, speakersafetyd 2.0.1-1.1: no panic on a sense period read after a startup probe #187 (J815 fixture), speakerguardd-v2 RC8.3: back as an opt-in package (not installed by default) #194 (gate answers at once when the device tree has no speaker card), linux-aurora 7.3.0.aurora1-34, aurora-sep 1-25: pin integration/aurora 2b05915f (T8140 deep sleep), mem-only suspend policy #199 (J815 graph with the hold sink). The shippedspeakerguardd-v2README no longer says the package is opt-in.At the next boot after
pacman -Syu, each Mac collects its own tuning, compiles it, runs the silent self-check and switches the kernel's speaker interface only on a pass. A refused Mac keeps speakersafetyd and is not retried until the kernel, speakerguardd or the tool changes.sudo aurora-speaker-upgrade --revertgoes back. speakersafetyd and speakerguardd 0.1 stay installed.Testing
python3 -m unittest discover -s tests: 497 OK.tests/test_pins.pynow asserts that aurora-audio pulls v2 and the upgrade tool, that no other package pulls v2, that the legacy daemons stay, that the preset enables the unit, and that the install script applies it.dafc5088archive sha256 (324338cd…c322) was computed from codeload.alpm_vercmpputs 1.0.0alpha.2-1 above 1.0.0alpha.1-43 and the retired builds.bash -non both PKGBUILDs,sh -non the install script.Still to run
makepkgbuilds ofspeakerguardd-v2,aurora-speaker-upgradeandaurora-audioin CI, then packaged rows on the lab Macs with no playback: revert to legacy, upgrade, startaurora-speaker-upgrade.service(the boot path), then checkstatus, the self-checkverifyand amp faults, then restore. Twins: fedora-aurora#239, nixos-aurora#199.Details
bbd9ed30), so after merging main the diff is only the switch-on and the pin move.Type=oneshot,SuccessExitStatus=1 2(1 = refused, 2 = cannot run yet),TimeoutStartSec=900,WantedBy=multi-user.target. A Mac already on v2 with its bundle does nothing.systemctl --preset-mode=enable-only, so a unit the user already disabled stays disabled. Removing the package disables the unit.Hardware rows
The same upstream (speakerguardd 1.0.0-alpha.2) switch-on path passed on four lab Macs (M1 Pro, M4 Pro, Neo, M2) with the Fedora packages: each Mac started from legacy with an empty store, and the boot unit switched it to v2 with the self-check passing, 0 amp faults and 0 AVC; see aurora-silicon/fedora-aurora#239. This PR's own packaging is covered by its CI build and tests.
Assisted-by: LLM (Claude:Opus 5.5)