Skip to content

speakerguardd: account for sense gaps instead of exiting - #3

Closed
RyanTheTide wants to merge 6 commits into
feat/aurora-edgefrom
aurora-edge/speakerguardd-sense-gaps
Closed

RyanTheTide wants to merge 6 commits into
feat/aurora-edgefrom
aurora-edge/speakerguardd-sense-gaps

Conversation

@RyanTheTide

Copy link
Copy Markdown

What and why

Bumps speakerguardd to aurora-silicon/speakerguardd 13e5aaa, the head of aurora-silicon/speakerguardd#2 (fix/complete-sense-before-unlock).

The pinned daemon (e03febf) could renew the speaker volume lock on partial or stale sense data. #2 counts only complete, finite sense periods as measured. Instead of exiting on a gap, it charges unmeasured time to the thermal model at the worst case. After a long outage it stops renewing the lock, so the kernel drops the speakers to its safe level (20 dB down), and it takes the lock back once sensing recovers. Restarts resume the saved model from /run/speakerguardd/state.

Recipe changes:

  • pkgver 0.1.0.aurora2 -> 0.1.0.aurora3, _commit -> 13e5aaa.
  • The pinned unit now sets StartLimitIntervalSec=60 / StartLimitBurst=5 itself, along with RuntimeDirectory=speakerguardd, so prepare() only adds -C AppleJ700 to ExecStart. The old two replacements would no longer match and would fail prepare().

Verified

  • python3 tests/aurora-edge/metadata.py: 8 tests OK.
  • makepkg --ignorearch --nodeps on x86_64 Arch (rust 1.96.0): prepare() applies, build() succeeds, and check() (cargo test --locked) reports 32 passed and 0 failed. The packaged unit has the AppleJ700 ExecStart, the start limits and the RuntimeDirectory. The aarch64 build was not run in this pass.

Hardware status

Not verified on hardware. The attended fail-safe drills S, E and F (install and quiet electrical check through the state file; kill -9, PipeWire restart and suspend/resume; a 30-minute start/stop soak) are still pending, so this is a draft.

Note: 13e5aaa is on #2's branch, not yet on speakerguardd main. If #2 is squash-merged, re-pin to the merge commit.

🤖 Generated with Claude Code

DjDeveloperr and others added 6 commits October 14, 2026 17:16
Pin the Aurora stack, retain Mesa epoch and legacy boot paths, and isolate audio replacements from stock-name upgrades. Keep source tracking disabled for the review candidates.

Signed-off-by: DjDeveloperr <hey@djdev.me>

Assisted-by: LLM
…hing

5f6c917 merges omacom#301, which leaves the firmware-owned J700 DISP_CPU domain alone; 790d5a81 does not boot the Neo. ALARM's clang18, llvm18 and lld18 install only under /usr/lib/llvm18/bin, so LLVM defaults to that prefix and they are makedepends. The m1n1 floor goes back to 1.6.1, which M1 and M2 users' m1n1-aurora meets, and replaces=linux-asahi goes: it would swap the kernel of every Mac on [omarchy] at its next update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
replaces= on a stock name swaps that package on every machine using [omarchy] at its next update: Mesa on every aarch64 machine, and m1n1, U-Boot, bless and the audio stack of every M1 and M2; on Qualcomm the platform guard would then refuse the whole upgrade. The recipes keep conflicts and provides, so the Neo image installs them explicitly, and replace only the Neo-only draft names. Every recipe carries the apple-silicon platform group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No package ships the MT7932 policy files, so the initcpio hook adds them only when present instead of failing the build. Only US and world-XZ exist, and the radio stays blocked for any other country, such as one set from the timezone at setup; a watcher on regulatory changes switches such a country to the world domain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A first build makes the CL shader compilers Asahi needs; the packaged drivers use them with -Dllvm=disabled and -Dspirv-tools=disabled, so an Arch Linux ARM LLVM or SPIRV-Tools bump no longer leaves the Neo without a GPU until a rebuild. llvmpipe goes with LLVM; softpipe stays. check() refuses a staged library that needs either, and libdisplay-info triggers rebuilds.

The recipe did not build before: arch-meson's --buildtype clashed with -Dbuildtype=release, and its --auto-features enabled demands the VA front end this driver set cannot have. meson setup now takes arch-meson's flags without auto-features, with b_ndebug like Arch's Mesa, and pins the optional features the dependencies follow. makedepends names rust-bindgen, Arch's bindgen package. Mesa's tests stay off: hk_sampler_bias_test undefines NDEBUG and calls nir_validate_shader, so it links only in debug builds.

Built in an Omarchy edge chroot on Arch Linux ARM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin aurora-silicon/speakerguardd 13e5aaa (fix/complete-sense-before-unlock,
aurora-silicon/speakerguardd#2). Only complete, finite sense periods
count as measured; a short gap is charged to the thermal model at the
worst case, a long one hands the speakers to the kernel's safe level
until sensing recovers, and a restart resumes the saved model from
/run/speakerguardd/state.

The pinned unit now sets StartLimitIntervalSec=60 and StartLimitBurst=5
itself, so prepare() only adds -C AppleJ700 to ExecStart.
pkgver 0.1.0.aurora2 -> 0.1.0.aurora3.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

feat/aurora-edge went upstream as omacom#1101, so this base is closed. The sense-gap fix itself (speakerguardd 8f6eb9a) ships in speakerguardd d1bc5a02, which omacom#1330 packages. Closing as superseded. Thanks!

@RyanTheTide
RyanTheTide deleted the aurora-edge/speakerguardd-sense-gaps branch November 6, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants