Repository navigation
speakerguardd-v2: package speakerguardd 1.0, installed everywhere, gated by board - #124
Merged
Merged
Conversation
speakerguardd 1.0 (the v2 branch, 1.0.0-alpha.1 at f06b9697e648) is a new program, so it gets its own split package that installs beside speakerguardd 0.1 and speakersafetyd and enables nothing, as on Fedora: - speakerguardd-v2: the supervisor in /usr/lib/speakerguardd-v2, the sgv2 LV2 bundle in /usr/lib/lv2 and aurora-speaker-tuning. The unit is the upstream one as speakerguardd-v2.service, and the build fails if it ever chains to another daemon. - speakerguardd-v2-replace-legacy: the opt-in. It conflicts with and provides speakerguardd and speakersafetyd, so aurora-audio and the speakersafetyd profiles stay installed, and it enables the unit with a multi-user.target.wants link, so removing it disables the unit again. It has no replaces=, so -Syu never swaps a machine over; pacman takes a package by its exact name before any provider, so nothing pulls it in. aurora-speaker-tuning is based on aurora-audio-dsp by saku (MIT); its notice ships with the licence. Co-authored-by: saku <saku-bruh@proton.me> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gate Parity with fedora-aurora 9af630b: - Pin speakerguardd v2 b1f60b81e975 (speakerguardd#41). - Ship the first-boot wiring self-check as a hard prerequisite of the supervisor. The PKGBUILD checks Requires= and After= on the renamed unit. Ship the session helper as a user unit, with machines.json and the per-machine graphs as data. - The opt-in enables all three units through package-owned links, and each carries ExecCondition=speakerguardd-v2-gate, the same file as on Fedora: they start only on a qualified board (J616s for now), and elsewhere the journal says why. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in the board gate - speakerguardd v2 c9dcc8ce7bf1 is #41 plus #42: a board whose wiring can be derived fails the self-check rather than falling back to a hand map. - The M1 Pro (J316s) and the M2 Air (J413) passed their audible qualification on v2, as the J616s did: 5 minutes at full volume, 0 faults, 0 AVCs, thermal state kept across PipeWire and supervisor restarts, and the self-check passed. The gate now lists exactly those three boards, the same file in all three distributions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
speakerguardd v2 3c18a3527055 adds #43. The closed loop relaxes the limit only on a board whose relaxed closed loop was proven live (the J616s family) and runs capped at the base elsewhere. The plausibility guard is on for every board. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…undle compiles The M2 Air's tuning bundle, collected by the merged installer from its own macOS, does not compile yet with the speakerguardd v2 tuning reader. Two gaps: - its speaker-thiele-small header has a second byte that the reader's one known layout does not describe (the records and checksum are otherwise consistent); - its calibration records name data sources that the default SpeakerInputDataSourceOrder does not bind to its unit channels. The J413's qualification run used hand-made inputs rather than this bundle. A J413 on the opt-in would fail its self-check and stay at the kernel's floor, so the gate lists only the J616s and J316s until the reader handles the J413's bundle and the J413 passes on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
speakerguardd#44 adds automatic provisioning at boot and the fleet gate, so v2 needs no manual step on any Mac (CUTOVER blockers 2 and 3, built for option A). - Pin ebab1e0f7c4e (the v2 merge of #44). - Install everywhere: the platform's audio stack requires speakerguardd-v2 beside speakersafetyd and speakerguardd 0.1, with no conflicts, obsoletes or replaces, and the v2 units are enabled. - Gate by board: upstream's speakerguardd-gate, with upstream's data (gate.json, machines.json unit/qualified), is the ExecCondition of every v2 system unit and, through a drop-in, of the older daemons' units. v2 runs on a gated board whose kernel has "Speaker Protection"; the older daemons run everywhere else. No distribution copy of the gate list any more, and the replace-legacy opt-in is gone. - Ship provisioning (speakerguardd-v2-provision.service), the seat watcher (speakerguardd-v2-seat.path) and the user's graph unit (speakerguardd-v2-graph.service); run upstream's test_provision.py in the package's check. - Rollback: boot a kernel without the v2 interface; the older daemons start again with no package change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
RyanTheTide
marked this pull request as ready for review
November 5, 2026 01:34
speakerguardd#48 derives every per-board value from the Mac's device tree and tuning at run time (wiring.py) and drops machines.json; gate.json now holds the qualified boards per protection unit (spp3: J316s, J413, J616s). #45 makes the v2 units read their configuration optionally, so a board or kernel the gate skips is skipped cleanly, and makes test_provision.py pass when run as root. - Pin 4cffd19b102d (the v2 merge of #45, on top of #48). - Stop installing machines.json; gate.json and wiring.py are the data. - Tests: no machine table is installed, wiring.py is. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: adds speakerguardd#49 (the tuning reader reads the installer's macOS 27 manifest fields) and #50 (test_provision.py runs its stand-in reader without /usr/bin/env). No packaging change. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#51, #52, #53, #54. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, lsm2; spp3: J316s, J413, J616s; lsm2: J700. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#55, #56. The packaged files are unchanged; the vendored Cargo.lock follows upstream. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, lsm2; spp3: J316s, J413, J616s; lsm2: J700. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#58, #59. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3; spp3: J316s, J413, J616s. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Main's aura v1.0.0b5 pin and aurora-kbd-light come in beside the speakerguardd-v2 pin (8d45c2a4); the pin test checks both. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#60, #61. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#63, #64, #66, #67, #69, #70, #71. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#72. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
aurora-audio: main took pkgrel 8 for the J614 microphone graph; the speakerguardd-v2 dependency moves to pkgrel 9. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#73. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 tip: speakerguardd#74. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The v2 kernel interface (linux#922) refuses the "Speaker Protection" lock and every lease write without CAP_SYS_ADMIN, so a supervisor that lost it would sit at the kernel floor. Fail the build if the upstream unit's CapabilityBoundingSet loses it. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
This was referenced Nov 6, 2026
notmysegv
pushed a commit
to notmysegv/alarm-aurora
that referenced
this pull request
Nov 11, 2026
Moves all three boot-chain sources to their newest heads, the same
commits fedora-aurora and nixos-aurora pin.
- linux-aurora 7.3.0.aurora1-29: integration/aurora 15f88e1c (linux#1365),
54 merges (249 commits) after b1c9943b. It still carries linux#1307:
ProMotion panels on M1 and M2 Macs that ran at 60 Hz while set to
120 Hz now run at 120 Hz. New since b1c9943b:
- Wi-Fi: WPA3/SAE offload keeps the requested CCMP cipher (#1058),
and AWDL join scans use the firmware's budgets (#1336).
- Display and GPU: the J713 powers its display domains down while
blanked (#1059). A GPU fence that never signals no longer wedges the
display (#1241). A G17 GPU recovery spares the work of bystander
clients (#1240), and an exiting client's work finishes before its
mappings go (#1360). The M4 Max internal display runs on DCP through
aura's handoff, with the 40-core GPU build (#1345).
- Thunderbolt: XDomains unregister when their domain goes (#1319), and
the NHI no longer starts without its DART (#1150).
- Sensors and power: GPU temperatures on M1 Pro/Max laptops, the J700
and the J413 (#1342, #1351), M1 Pro/Max CPU temperatures and thermal
zones (#1362), M4 Pro GPU temperatures read no data while the GPU is
off (#1331), t600x PMU RTC wake alarms (#1312), and the Magic Mouse
keeps multitouch across sleep (#1317).
- SEP and Touch ID: the host-state store opens only per operation
(#583), every SEP state is reported for aurora-sep status (#1335),
and a capture without a finger logs at info level (#1353).
- Hardware: J704 (14-inch M5 MacBook Pro) and J815 device trees
(#1231, #1361), the J604 boots on its own DT (#1186), J773g PMC and
front USB2 (#1181, #1187), the T8112 EDAC handler (#1320), the M1/M2
Stockholm NFC controller (#1321), the MSR scaler/CSC mem2mem driver
(#1315), and the T6050 (M5 Pro/Max) bare-metal series: PCIe, NVMe,
SMC, PMP, SEP, cpufreq, DRAM floors, ISP camera and USB4 (#937, #936,
#941, #1326, #1325, aurora-silicon#481, #1324, #1253, #1323 and more).
- aura 1.0.0b10-1: main 21a70e6e (aura#135). VERSION says 1.0.0b10 and
no v1.0.0b10 tag exists, so the build now passes AURA_VERSION_TAG,
as Fedora's release_tag and NixOS's release_tag already do. Without
it the git checkout would label itself 1.0.0b10-g21a70e6e. Since b8:
the M4 GPU and DCP handoffs on 26.6.2 firmware for every M4 Mac (b9:
aura#106, aurora-silicon#110), M4 PIODMA gated on firmware (aurora-silicon#116), ACIO v2 USB4
routers kept with their tuning (aurora-silicon#103), T6041 SIO tables (aurora-silicon#120), the
speaker assembly ID (aurora-silicon#121), then the T8140 DCP power chain (aurora-silicon#125),
AOP motion calibration on T6000 and T8112 (aurora-silicon#124), J713 external
displays (aurora-silicon#108), the T6041 display on J614C (aurora-silicon#132), and aura-try
trials that reboot when they cannot start their payload and keep
U-Boot off the watchdog (aurora-silicon#128, aurora-silicon#129, aurora-silicon#135). The source still has no
monitor, so _monitor_free stays 1.
- uboot-aurora 2026.07.aurora8-1: aurora-wip 48c6b2c5 (u-boot#42): the
M4 Max (T6041) boots like the M4 Pro (aurora-silicon#42), and the T6050 (M5 Max,
J714c) boots from NVMe by adopting the ANS session an m1n1 Stage 2
hands over (aurora-silicon#41). Without /chosen/asahi,nvme-adopt nothing changes.
config is refreshed by olddefconfig on 15f88e1 with the toolchain the
package build uses (ALARM clang/lld 23.1.4, Rust 1.99.0, Aurora bindgen
0.73.2, pahole 1.32). It passes validate-config.py and rustavailable,
and keeps Rust, BTF and CTXR_EXECMEM. The result is byte-identical to
the .config CI resolved for b1c9943b in alarm-aurora#216's package
build, apart from that PR's zboot lines and what 15f88e1 adds:
CONFIG_VIDEO_APPLE_SCALER=m, CONFIG_APPLE_DBGVIEW=m and
CONFIG_APPLE_REGVIEW=m (asahi.config), plus two new symbols that stay
off. The rest catches the committed file up with what CI already
builds: the toolchain header, EXECMEM_CONFINE, the IIO trigger support
that the AOP sensors select, and the clang 23 context-analysis
warnings.
No hardware has booted this set.
Supersedes alarm-aurora#196 (aura 1.0.0b10 at 77565065), aurora-silicon#192 (kernel
cb7c7206) and aurora-silicon#219 (kernel 4a22cbb7 with a config refresh).
Signed-off-by: Diljit Singh <hey@djdev.me>
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.
speakerguardd 1.0 (v2 branch, pinned at ebab1e0f7c4e = speakerguardd#44 merged into v2), packaged for CUTOVER blockers 2 and 3 under option A.
Install everywhere. It installs beside speakersafetyd and speakerguardd 0.1, with no Conflicts, Obsoletes or replaces. The platform's audio stack requires it, and its units are enabled.
Gate by board, with upstream data. Upstream's
speakerguardd-gatereadsgate.jsonandmachines.json(unit,qualified). It is the ExecCondition of every v2 unit, and through a drop-in, of the older daemons' units:Every fleet kernel today lacks that interface, so this changes nothing until the kernel lands. Under option A the cutover is then a data change upstream: lsm2/atsp go into
units_at_parity, andrequire_qualified_boardis set false.No manual steps.
/etc/speakerguardd/speakerguardd.conf.Rollback: boot a kernel without the v2 interface. The gate starts the older daemons again, with no package change. On NixOS,
aurora.speakerguardd.v2.enable = falseremoves v2 and the gate. The replace-legacy opt-in is removed.Tested on the M1 Pro (Fedora 45, enforcing). Evidence is in speakerguardd#44.
🤖 Generated with Claude Code