Repository navigation
Ship speakerguardd as the one speaker protection (draft, gated on speakerguardd 27) - #121
Closed
RyanTheTide wants to merge 1 commit into
Closed
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
…akerguardd 27) Aurora ships speakerguardd, not speakersafetyd. Pin the unified 0.1.13-rc.2 (speakerguardd PR 27), whose profiles cover the J616s, and: - start it from udev for each qualified card (AppleJ616 now; the J700 stays on speakerguardd's own rule); - conflict with and replace speakersafetyd and speakersafetyd-aurora-profiles, so pacman swaps them in one transaction; - drop the J700 feedback-guard condition, which only existed to keep speakersafetyd off the Neo; - depend on speakerguardd from aurora-boot and aurora-audio. The swap never leaves a speaker unprotected: until speakerguardd takes a card's volume lock, the kernel keeps that card at its safe level. Draft: speakerguardd 27 must pass its listening gates (Ryan present) and merge first, then this needs a J616s boot with speakerguardd active on its j616 profile, speakersafetyd absent and zero errors. Assisted-by: LLM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Superseded by the speakerguardd v2 packaging, which ships speakerguardd 1.0 on all three distros. Closing. |
This was referenced Nov 9, 2026
Closed
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.
DO NOT MERGE until aurora-silicon/speakerguardd#27 (0.1.13-rc.2) is qualified, which needs the listening gates with Ryan present, and merged. After that, the pin moves to the merged commit.
Why
Ryan: Aurora ships speakerguardd, and speakersafetyd should not be installed. Today the J616s runs speakersafetyd with speakersafetyd-aurora-profiles
j616.conf. The packaged speakerguardd 0.1.12 (0287029) only hasj700.conf, its unit is patched to-C AppleJ700, and its udev rule only wants AppleJ700. The J616 profile only exists in the 0.1.13-rc.2 line.Change
speakerguardd0.1.13rc2 at add7f961 (the speakerguardd 27 head), with thesources.jsonpin and sha256 updated. This drops the AppleJ700-only unit patch, because the RC unit names no card.96-speakerguardd-aurora.rules: udev wants speakerguardd for each qualified card, AppleJ616 for now. Add a card only together with its listening-gate qualification.conflicts/replacesspeakersafetydandspeakersafetyd-aurora-profiles, so pacman swaps them in one transaction.50-j700-guard.conf/use-feedback-guardspeakersafetyd condition.tools/preserve-recordings.Safety
The speakers are never unprotected during the swap: until speakerguardd takes a card's volume lock, the kernel keeps that card at its safe level. That covers removal, start, restart, failure and the 5-in-60 s start limit.
Open point for review: Macs with no qualified speakerguardd entry in the rule lose speakersafetyd, so they stay at the kernel safe level, which is quieter, until they are qualified and listed. The alternative is to keep speakersafetyd on those boards until each is qualified.
Tests
The repo suite passes, except for 2 macOS-clang UAPI tests that also fail on main. Not built or booted yet.
To prove: on the J616s, speakerguardd is active with apple/j616.conf, speakersafetyd is absent, the speaker sink is present and gated, and there are 0 errors. No playback beyond Ryan's listening gates.
Mirrors still to do: fedora-aurora (speakerguardd + speakersafetyd-aurora-profiles specs) and nixos-aurora.
Assisted-by: LLM
🤖 Generated with Claude Code