Repository navigation
J616s speakers: the J616 UCM and graph, a speakersafetyd profile, warm restarts - #23
Merged
Merged
Conversation
alsa-ucm-conf-asahi 777d704 adds the J616s speaker and headphone jack cards (aurora-silicon/alsa-ucm-conf-asahi#5) and makes the J700 internal microphone follow its jack (#4). Without the J616 verb nothing routes the J616s speakers: "Speaker Playback Mux" stays on Primary, a front-end with no stream on that card, and opening the speaker PCM (device 1) fails with EINVAL in ASoC's DPCM open. Tested on a J616s (7.3.0-aurora-73v, Fedora 45): the verb moves the mux to Secondary and the speaker PCM opens as S24_LE, 6 channels, 48 kHz. The J616 conf files match the tip (sha256 28759ae4ee7a633d..., 57446c187605e870...). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
speakersafetyd has no J616 profile, so on a J616s the daemon never starts
and the kernel keeps the speaker volumes locked at about -100 dB. Add
speakersafetyd-aurora-profiles with apple/j616.conf and a udev rule that
starts speakersafetyd for the AppleJ616 card, as speakersafetyd's own rule
does for the machines it lists.
j616.conf is speakersafetyd's j316.conf with every model value unchanged:
the J616 speakers are the J316's tuning family, and those are the values
speakersafetyd runs on the J316 with its measured V*I power model. Only
the sense channels move. The J616 amps report in their listed order
(LW1, RW1, LW2, RW2, LT, RT), current on channel 2n and voltage on 2n+1,
where the J316 puts its tweeters before the second woofers. This is the
map Jonathan Goyvaerts tested amp by amp on his J616s.
Tested on a J616s (7.3.0-aurora-73v, SELinux enforcing). The daemon loads
the profile and unlocks the volumes. Stopping or freezing it (SIGSTOP)
while a stream plays locks them again within a second ("Speaker volumes
locked: Lock timeout"). Band noise on one amp channel at a time raises the
modelled power of only that speaker's section, and never below zero.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DjDeveloperr
approved these changes
Oct 24, 2026
speakersafetyd writes /run/speakersafetyd/speakersafetyd.flag on its first
start after boot, and a start that finds it assumes the speakers are at
their temperature limit until its model has cooled them. The flag lives in
the unit's RuntimeDirectory, which systemd removes whenever the unit stops,
so every restart within a boot, crashes included, started cold. That is
true on every Mac running speakersafetyd, not just the J616s.
RuntimeDirectoryPreserve=yes can't fix it for this unit: with DynamicUser=
and its CAP_SYS_NICE-only bounding set, systemd moves the directory to
/run/private on the first stop and then fails to set it up again
("Failed to set up special execution directory in /run: Permission
denied"), so the daemon never comes back. Instead a drop-in leaves a
root-owned marker in /run when the daemon stops for any reason, and gives
a start that finds it the daemon's own flag back before it runs. /run is
a tmpfs, so the first start after a reboot is still a cold one.
Tested on a J616s (7.3.0-aurora-73v, SELinux enforcing): after a reboot the
daemon starts cold. After SIGKILL, and after a stop and start, it starts
warm, limits both groups by about 14 dB, and releases them as its model
cools (about 1 s for the tweeters and 8 s for the woofers on silence).
No AVC denials.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sense On our J616s, left woofer 1's current sense reads about half of what the other woofers' do at the same drive, while its voltage reads the same (checked by pairing its current with left woofer 2's voltage and the other way round). Our J316 reads its four woofers alike. Group 1 shares one gain, and the J616 speaker graph feeds both left woofers the same signal, so the group stays limited by a woofer whose sense reads true. Say so in j616.conf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
asahi-audio 78803e1 adds the J616s speaker graph and headphone jack priorities (aurora-silicon/asahi-audio#8), and brings in #7's J700 speaker graph changes (+3 dB make-up gain ending in a brick-wall limiter). The J616 UCM routes the speakers, but without a graph Fedora's asahi-audio leaves the raw speaker device as the default sink, and its volume script holds that route at 100 %. The J616 graph puts its filter sink in front, with a working volume, and hides the raw device. aurora-audio and bankstown now provide and conflict with asahi-audio and lv2-bankstown, which install the same files, so a Fedora Asahi install can move to them (alsa-ucm-conf-aurora already does this for alsa-ucm-asahi). The images never carry the Fedora packages, so nothing changes there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DjDeveloperr
added a commit
that referenced
this pull request
Nov 20, 2026
…pd bridge) kernel-aurora 7.3.0-44 registers apple-clpc's power modes as a platform profile class device on the M5 Pro and Max (T6050) and the M4 Max (T6041). tuned-ppd drives only /sys/firmware/acpi/platform_profile, which a device tree boot never has. aurora-power-budget at ddf5285e stands aside as soon as the class device exists. Together, Power Saver on those Macs would cap nothing. Pin aurora-platform 625caef7 (aurora-silicon/aurora-platform#35). aurora-power-budget now hands each profile to the class device, by the names its choices file lists. It caps the CPU itself only while the kernel does not hold power-saver. Without a class device nothing changes. The pin also brings aurora-platform #28 (the budget waits on D-Bus instead of a timer) and #23 (secboot's execute-window chip ranges as a table, same values). make install-power now also installs aurora-power-modes. Shipping and enabling that is #404's job, so %install removes its two files here. Signed-off-by: Diljit Singh <hey@djdev.me> 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.
The J616s (MacBook Pro 16" M4 Pro) speakers need two userspace pieces that the Fedora images don't have yet: the J616 UCM and a speakersafetyd profile. Without them the speaker PCM can't be routed, and the volumes stay locked.
alsa-ucm-conf-aurora 10-2 moves the pin to alsa-ucm-conf-asahi 777d704. That adds the J616s speaker and jack cards (aurora-silicon/alsa-ucm-conf-asahi#5) and the J700 microphone jack change (#4). The J616 speaker card's "Speaker Playback Mux" defaults to Primary, a front-end with no stream on that card. Until the HiFi verb moves it to Secondary, opening the speaker PCM (device 1) fails with EINVAL. ASoC's DPCM open logs that only once per boot, so it looked like a driver bug in our earlier tests.
speakersafetyd-aurora-profiles 1-1 (new, noarch) ships
apple/j616.confand a udev rule that starts speakersafetyd for the AppleJ616 card, as speakersafetyd's own rule does for the machines it lists. Its sense-PCM ACP_IGNORE rule already covers every macaudio card.Tested on our J616s (7.3.0-aurora-73v, Fedora 45, SELinux enforcing), with both packages built from this branch and installed with dnf. Fedora's alsa-ucm-asahi is replaced through the existing Provides/Conflicts.
aplay -D hw:AppleJ616,1gives EINVAL. With it, the mux is Secondary and the PCM opens as S24_LE, 6 channels, 48 kHz.python3 -m unittestpasses here apart from two tests that need a Linux host (kernel headers, gpg). CI covers those.aurora-audio 4.1-4 moves the pin to asahi-audio 78803e1. That's the J616s speaker graph and headphone jack priorities (aurora-silicon/asahi-audio#8), plus #7's J700 graph change (+3 dB make-up gain ending in a brick-wall limiter), which the Neo picks up too. The UCM alone isn't enough: without the graph, Fedora's asahi-audio leaves the raw speaker device as the default sink, and its volume script holds that route at 100 %. aurora-audio and bankstown 1.1.0-2 now provide and conflict with asahi-audio and lv2-bankstown, which ship the same files. That lets a Fedora Asahi install move to them in one dnf transaction, the way alsa-ucm-conf-aurora already replaces alsa-ucm-asahi. The images never carry the Fedora packages, so nothing changes there.
On our J616s with this PR's CI RPMs (aurora-audio 4.1-4, bankstown 1.1.0-2, speakerguardd 0.1.0-3, alsa-ucm-conf-aurora 10-2; dnf removed asahi-audio, lv2-bankstown and alsa-ucm-asahi, and asahi-platform-metapackage-audio stays satisfied):
audio_effect.j616-convolverthe default sink and hides the raw speaker device.🤖 Generated with Claude Code