omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

j313 (M1 Air) built-in mic delivers digital silence: aurora-audio mic graph captures from a node that never exists (alsa_input.platform-sound.RawMics) — hardware verified working

Open andrew-roci opened this issue 1 week ago • 13 comments

Machine: MacBook Air (M1, 2020), j313 / MacBookAir10,1 · Omarchy 4.5.0-3 · kernel 7.2.11-14-1-ARCH · aurora-audio 4.1.aurora3-3 · triforce-lv2 ≥0.2.0 · PipeWire 1.6.9 · WirePlumber 0.5.18

Symptom

The built-in microphone delivers pure digital silence to every app; Chromium call UIs (Google Meet/Hangouts) show the microphone as not connected. The "MacBook Microphone" source (omarchy_asahi_mic) exists, is unmuted, at 84% volume, and is the default source — but a 2 s capture from it yields RMS 2, peak 54 (of 32767): null data, not room noise.

Pipeline (aurora-audio j313 mic graph)

/usr/share/asahi-audio/j313/mic.json defines a filter chain: 3 mic-array channels → mixers (gain 2) → triforce LV2 beamformer → boostInter (gain 7.25) → boostFinal (gain 7.25) → 120 Hz highpass → effect_output.j313-mic (Audio/Source, priority 2005), which Omarchy's omarchy-audio-asahi-mic-map remaps to omarchy_asahi_mic.

The graph's capture.props sets:

"target.object": "alsa_input.platform-sound.RawMics"

RawMics is created by a WirePlumber rule (/usr/share/wireplumber/wireplumber.conf.d/99-asahi.conf) matching the HPAI card: api.alsa.path = "~hw:AppleJ[0-9][0-9][0-9]HPAI,0".

Root cause found live

alsa_input.platform-sound.RawMics does not exist on any boot — the chain captures from a node that is never created, so everything downstream is digital silence.

Evidence:

  • pw-dump shows no RawMics node (and no RawSpeakers either) — the 99-asahi.conf monitor.alsa.rules never produced nodes this boot.
  • The HPAI card is registered in PipeWire (alsa_card.platform-audio.1.auto, active profile HiFi, "sources: 1, available: yes") — yet no source node is ever created from it.
  • omarchy-asahi-mic.service logs "No Asahi DSP microphone is present; user service will retry if an array appears" on every boot — Nov 7, Nov 8, Nov 15, and the current one. The mic has never worked since install.
  • The hardware itself is fine: direct ALSA capture arecord -D hw:1,0 -d 2 (macaudio "Primary" PCM, which carries the built-in mics) returns real audio (RMS 142, peak 28006 in a normal room). The DSP chain fed by the missing node outputs nulls; the second PipeWire source (alsa_input.platform-sound.HiFi__Headset__source, internal-mic port) outputs absolute zeros (RMS 0).

This reproduces on clean boots too — it is not related to the unclean-poweroff failure in #19162 (same machine, different bug).

Possibly related: PipeWire journal shows spa.alsa: hw:AppleJ313,1p: snd_pcm_avail after recover: Broken pipe occasionally (playback side).

The open question / suggested fix

Two candidate readings — guidance on the intended j313 topology would settle it:

  1. The HPAI source node should exist but WirePlumber never creates it (card registered, HiFi profile active, 1 source available, yet no node). If so, this is a WirePlumber/alsa-monitor bug or a missing piece for the HPAI (aop_audio) PCM on j313.
  2. j313's mics are actually on the macaudio "Primary" PCM (hw:1,0 — verified working), and j313/mic.json should target that node instead of the HPAI-derived RawMics. If so, the j313 config targets the wrong device.

Either way, on j313 the shipped mic graph is dead on arrival: the graph processes nothing and the only usable capture (hw:1,0) is left unwired. As an interim workaround I can confirm a user-session filter chain capturing hw:1,0 with a gain stage (raw level is ~-47 dBFS; the shipped graph compensates with ~+46 dB total: 2× mixers, beamforming, 7.25² boosts) works — happy to test any patch against it.

andrew-roci avatar Nov 19 '26 22:11 andrew-roci

GPT-6 in Codex (high effort) read the report, the software versions supplied, and the linked discussion in #19162. My initial classification is hardware compatibility, but the second classifier returned no usable result, so classification remains unsettled and no class label was added.

The configured reviewer passed its availability check; no second review of the microphone diagnosis ran. No hardware reproduction or tests were run, and no fix was drafted. This is waiting for classification review before verification can proceed.

omarchybot avatar Nov 19 '26 23:11 omarchybot

Update after deeper investigation — the breakage is one layer deeper than the missing RawMics node:

Every PipeWire ALSA capture node on this machine delivers digital silence, while raw ALSA capture on the same PCMs works. Measured today:

PCM raw arecord PipeWire node
hw:1,0 (macaudio "Primary", carries the built-in mics) RMS 142, peak 28006 — real audio alsa_input.platform-sound.HiFi__Headset__source → RMS 0
hw:0,0 (HPAI aop_audio mic-array PCM, 3ch/48k) RMS 14107 — hot signal pro-audio node alsa_input.platform-audio.1.auto.pro-input-0 → RMS 2
snd-aloop bridge (raw mic → loopback playback) RMS ~14100 crossing the loopback (peak-verified) PipeWire node on loopback capture → RMS 0

So on this system, PipeWire's ALSA capture path returns silence on all devices while raw ALSA works on the same PCMs. This is consistent with the mic having never worked since install: omarchy-asahi-mic.service logs "No Asahi DSP microphone is present" on every boot since Nov 7 (install was Nov 5), and the system default source (omarchy_asahi_mic) → digital silence → browser call UIs show the mic as dead.

Workarounds attempted today, all failed:

  1. context.objects adapter node on hw:1,0 + filter-chain boost — adapter factory unavailable in the pipewire core process → pipewire crash-loops (reverted).
  2. WirePlumber rule forcing the HPAI pro-audio node to S16_LE/3ch — rule matched (rename applied) but node kept delivering silence.
  3. snd-aloop bridge (raw mic → loopback playback, PipeWire node on loopback capture, 3ch-aligned) — data verified crossing the loopback via raw reads, but the PipeWire node still returns zeros.

Only working interim: external/USB mic or a wired headset (jack headset mic via alsa_input.platform-sound.HiFi__Headset__source — untested but that node + port is the standard path).

Happy to test patches; the raw-ALSA-vs-PipeWire-node discrepancy above should be reproducible on any j313.

andrew-roci avatar Nov 20 '26 07:11 andrew-roci

Follow-up with a decisive experiment (h/t to the reporter's own observation that they weren't speaking during the captures):

The earlier "hardware works" claim was wrong. Stimulus-response test — a full-volume 440 Hz tone was played through the speakers while capturing both PCMs:

PCM silence baseline during loud tone verdict
hw:0,0 (HPAI aop_audio, 3ch) RMS 13633, peak 32767 RMS 13633, peak 32767 bit-identical garbage — deaf to acoustic stimulus
hw:1,0 (macaudio Primary, 2ch) RMS 119, peak 28006 RMS 119 deaf to acoustic stimulus

The raw captures deliver constant full-scale garbage that does not respond to sound at all (three aop channels even have identical RMS — uninitialized/repeating buffer data, not three distinct mics). So on j313 the built-in mic capture is non-functional at the driver/DSP level: this is not a routing or session-manager issue, and none of the attempted workarounds (session filter chains, dedicated profiles, snd-aloop bridging) can produce a working microphone.

Interim for affected users: external/USB mic or a wired headset. The report above (RawMics never created, silent PipeWire nodes) remains accurate, but the bottom line changes: this needs a kernel/driver-level or asahi-audio-level fix for the j313 mic capture path — userspace configuration cannot restore mic function on this machine.

andrew-roci avatar Nov 20 '26 15:11 andrew-roci

Same hardware and versions here (J313 / M1 Air, 7.2.11-14-1-ARCH, aurora-audio 4.1.aurora3-3, PipeWire 1.6.9, WirePlumber 0.5.18, Omarchy 4.5.0-3), same symptom: digital silence (peak 0, −120 dBFS), even though the capture PCM is RUNNING and hw_ptr is advancing.

Cause on my machine: the Secure Enclave driver wasn't loaded (lsmod | grep apple_sep was empty). This looks like the root cause described in omacom/linux-aurora#180 and the workaround from #18285 (J293). Per that PR, the SEP is in the mic data path on M1-family Macs, and without it the AOP PDM capture runs on constant input.

Read-only workaround that fixed it:

sudo modprobe apple_sep xart_writes=0 provision_keybag=0
systemctl --user restart wireplumber pipewire pipewire-pulse

The kernel log confirms xART: ... writes disabled. The default mic immediately went from exact zeros to real room noise (about −44 dBFS RMS).

To keep it across reboots:

echo "options apple_sep xart_writes=0 provision_keybag=0" | sudo tee /etc/modprobe.d/apple-sep.conf
echo apple_sep | sudo tee /etc/modules-load.d/apple-sep.conf

It still works after a reboot. On J313, plain modules-load.d was enough; I didn't need the delayed systemd unit from #18285.

Note: the xart_writes=0 provision_keybag=0 options matter. Per #180, loading the module with default options can write to the shared xART store. This is probably a duplicate of omacom/linux-aurora#141, to be fixed properly by #180 once it's released.

BraedenKilburn avatar Nov 21 '26 17:11 BraedenKilburn

Confirmed working on my J313 too (same machine/stack as the original report: MacBook Air M1 2020, omarchy 4.5.0-3, kernel 7.2.11-14-1-ARCH, aurora-audio 4.1.aurora3-3).

Applied exactly the recipe from the comment above — apple_sep with the read-only options, audio stack restart — and the internal mic went from digital silence to live audio through PipeWire. Set the working node as default source; speech and snap transients verified in captures.

Two notes for anyone following:

  1. Keep the xart_writes=0 provision_keybag=0 options — the SEP's xART store is shared between macOS and Linux on dual-boot machines; this makes the Linux side strictly read-only toward it (kernel log confirms: xART: ... writes disabled).
  2. On my machine the node that came alive is alsa_input.platform-sound.HiFi__Headset__source (the platform-sound card's internal-mic capture; description misleadingly says "Headset Microphone" — UCM artifact, it carries the internal mic array when no jack headset is plugged). The aurora-audio j313-mic software-DSP chain is still inert (its RawMics target node never appears), but with the SEP driver loaded the platform-sound capture path itself works, so the default mic is functional.

andrew-roci avatar Nov 21 '26 21:11 andrew-roci

Additional data point from a second J313 (same machine/stack — MacBook Air M1 2020, omarchy 4.5.0-3, kernel 7.2.11-14-1-ARCH, aurora-audio 4.1.aurora3-3):

Applied the fix from the comment above (apple_sep with xart_writes=0 provision_keybag=0, audio stack restart). The SEP initializes correctly (T8103/J313 platform profile, xART: ... writes disabled) — but the internal mic array remains silent: stimulus test with the user making noise next to the laptop shows the aop PCM ignoring acoustic stimulus (constant near-zero / constant full-scale garbage depending on read path), same as before loading the module.

What DOES work on this unit: a wired 3.5mm headset's mic, through alsa_input.platform-sound.HiFi__Headset__source (the default source Omarchy sets). So on J313, apple_sep alone doesn't revive the internal array — either your working "default mic" was a headset/other path, or there's an additional state difference on the units.

Not blocking anything for us (headset works; #19711 covers the separate backlight floor). Leaving apple_sep persisted since it's likely a prerequisite for eventual internal-mic support and is in read-only mode. Full machine notes can be shared if useful.

andrew-roci avatar Nov 21 '26 21:11 andrew-roci

Classification is now agreed as bug and compatibility. GPT-6 High in Codex read all follow-ups, compared #17602, #18443 and linux-aurora#141, and checked the current Mac microphone mapper. Your later stimulus test withdraws the initial evidence that raw capture works. The second J313 remaining silent after SEP initializes also leaves the cause unresolved; the reported missing RawMics/DSP graph needs investigating alongside the raw capture failure. A working wired headset does not establish that the internal array works.

@andrew-roci, please share the following separately for each J313, identifying which one previously recovered. With jack, USB and Bluetooth audio devices disconnected and the lid open, does capture respond to speech and snaps? Please include the exact capture command, PCM/node name, sample format and analysis format for each result, plus /proc/asound/cards, arecord -l, the HPAI PCM's hw_params during capture, pactl get-default-source, pactl list sources and pw-dump from that same session. From the failing unit, please also include the current kernel/package versions, the apple_sep module parameters, and this boot's kernel messages mentioning apple_sep, xART or AOP, together with journalctl --user -b -u omarchy-asahi-mic -u wireplumber -u pipewire --no-pager. Those distinguish the physical input, capture format, SEP bring-up and missing DSP graph without another routing workaround.

linux-aurora#180 remains an open candidate for the SEP startup problem; its current head has not been verified here against this report. No Apple hardware reproduction or tests ran, and no patch was drafted or marked verified. This was my diagnostic review alone: Opus 5.5 High returned a weekly-limit message and failed the subsequent availability check, so no diagnostic second opinion completed. This is waiting on the per-machine observations above.

omarchybot avatar Nov 23 '26 14:11 omarchybot

Same machine and stack (J313 / MacBookAir10,1, Omarchy 4.5.0-3, linux-aurora 7.2.11.aurora14-1, aurora-audio 4.1.aurora3-3), reproduced and fixed on this unit.

apple_sep was not loaded at boot, and nothing blacklisted it. Loading it with the read-only options from #18285 plus an audio restart brought the built-in mic up:

sudo modprobe apple_sep xart_writes=0 provision_keybag=0
systemctl --user restart wireplumber pipewire pipewire-pulse

Kernel log after load:

apple_sep 242400000.sep: xART: APFS-resolved .gl extent (base 0x4d4000); 170 slots, 11 live records, ...; writes disabled

Persisted for the next boot with /etc/modprobe.d/apple-sep.conf (options apple_sep xart_writes=0 provision_keybag=0) and /etc/modules-load.d/apple-sep.conf (apple_sep). Not reboot-verified on this machine yet.

Measured with pw-record --format s16, no headset, USB or Bluetooth input connected:

source before apple_sep after
omarchy_asahi_mic (DSP remap, default) peak 97, null data speech 17 s: peak 6087 (-14.6 dBFS), RMS 560 (-35.3 dBFS); idle RMS 157
alsa_input.platform-sound.HiFi__Headset__source peak 0 peak 0, still exact zeros

Per-second RMS tracked speech from 5 s to 21 s (288-947) and dropped to 120-205 while idle, so this is live audio, not constant buffer data.

One correction to the report: alsa_input.platform-sound.RawMics does exist on this machine, and it did before the fix. pw-link -l shows RawMics:capture_AUX0..2 -> audio_effect.j313-mic:input_AUX0..2 -> effect_output.j313-mic -> input.omarchy_asahi_mic. The graph was wired the whole time and passed digital silence until the SEP came up, so on this unit it is not a missing-node or wrong-target problem: the array simply produces no samples without apple_sep.

That also suggests the "hardware verified working" claim and the later stimulus test both point at the same missing prerequisite rather than a dead capture path.

simonteague6 avatar Nov 24 '26 02:11 simonteague6

@simonteague6, your unplugged before/after captures show speech-responsive audio through omarchy_asahi_mic after loading apple_sep, with RawMics already linked beforehand. That supports a missing SEP startup prerequisite on your J313; a missing or wrongly targeted RawMics node does not explain that unit. Please confirm after a cold boot whether the persisted settings load apple_sep with xart_writes=0 provision_keybag=0 and the same source still captures speech.

@andrew-roci’s second J313 remaining silent after SEP initializes is still unresolved. The per-machine capture formats, graph and boot diagnostics requested above are still needed for that unit; another machine’s recovery does not establish its cause. linux-aurora#180 remains an open candidate for the SEP startup problem, and its current head has not been verified against this report.

GPT-6 High in Codex read the new measurements, current microphone mapper and upstream SEP changes. No Apple hardware reproduction or tests ran, and no patch was drafted or marked verified. This was my diagnostic review alone: Opus 5.5 High hit its weekly limit and failed the subsequent availability check; the panel availability check answered, but no diagnostic second opinion completed. This remains waiting on the hardware observations above.

omarchybot avatar Nov 24 '26 02:11 omarchybot

Confirmed after a cold boot (full shutdown, power on; uptime 1 minute at capture).

apple_sep comes up from modules-load.d with no manual modprobe:

apple_sep 242400000.sep: SEP platform profile: T8103/J313
apple_sep 242400000.sep: xART: APFS-resolved .gl extent (base 0x4d4000); 170 slots, 11 live records, max revision 27904, 0 malformed, 0 duplicate, 0 repaired; writes disabled

lsmod: apple_sep 376832 0. /sys/module/apple_sep/parameters/ only exposes sensor_spi_mode on this kernel, so the writes disabled line is how I confirmed xart_writes=0 took effect (the default allows writes, per linux-aurora#180).

Machine state at capture, with no jack, USB or Bluetooth audio device connected:

$ cat /proc/asound/cards
 0 [AppleJ313HPAI  ]: aop_audio - MacBook Air J313 HPAI
 1 [AppleJ313      ]: macaudio - MacBook Air J313

$ arecord -l
card 0: AppleJ313HPAI, device 0: ... [aop_audio]
card 1: AppleJ313, device 0: Primary
card 1: AppleJ313, device 2: Speaker Sense

$ pactl get-default-source
omarchy_asahi_mic

The default source is omarchy_asahi_mic ("MacBook Microphone"), unmuted at 100%. pactl list sources lists it alongside alsa_input.platform-sound.HiFi__Headset__source ("Headset Microphone") and effect_output.j313-mic ("MacBook Microphone (Mono)").

Capture:

pw-record --target omarchy_asahi_mic --rate 48000 --channels 2 --format s16   # 30 s
  • peak 2778 (-21.4 dBFS), overall RMS 273 (-41.6 dBFS)
  • 50 ms RMS spans roughly 50 at quiet moments to 794, median 107
  • loudest 3 s window (5.5 s): peak 2184, RMS 370
  • bursts at 3.1 s and 5.5-7.5 s have a 2.5-3 kHz spectral centroid, consistent with voice rather than flat broadband noise

Levels are lower than the pre-reboot session (peak 6087, RMS 560) but the structure is the same. I cannot verify the content of the file, only that the path passes live, input-responsive audio rather than a fixed buffer.

alsa_input.platform-sound.HiFi__Headset__source over the same 30 s: peak 0, RMS 0.00, exact zeros as before.

hw_params during that capture:

card 0 pcm0c: MMAP_INTERLEAVED, FLOAT_LE, 3 ch, 48000, period 1024, buffer 32768
card 1 pcm0c: MMAP_INTERLEAVED, S32_LE,   1 ch, 48000, period 1024, buffer 32768

RawMics is present and linked on this boot (pw-link -l shows all three AUX captures into audio_effect.j313-mic), and journalctl --user -b -u pipewire -u wireplumber has no capture errors, only an unrelated UPower percentage warning.

One correction to the report's reasoning: omarchy-asahi-mic.service still logs "No Asahi DSP microphone is present; user service will retry if an array appears" at 00:15:01, about 45 s after boot, and the mapping works anyway. That line marks the mapper starting before the array/DSP graph exists, not a microphone that never works, so it should not be read as evidence of a dead capture path.

So: the persisted settings load apple_sep with the read-only options on a cold boot, and the same source still captures live input afterwards.

simonteague6 avatar Nov 24 '26 06:11 simonteague6

@simonteague6, this answers the cold-boot follow-up: you report that apple_sep loads automatically, the kernel logs writes disabled, and omarchy_asahi_mic still produces input-varying audio with external inputs disconnected. Your note that you could not verify the recording's content limits what the measurements establish, but they do show that the reported recovery survives a cold boot on this unit.

The mapper's “No Asahi DSP microphone is present” message describes what it found at that moment. I checked its --watch service and retry loop: it can map the DSP source after that message, so the line alone does not establish a persistent failure. Your linked RawMics graph and later capture are consistent with that behavior.

@andrew-roci, the second J313 you reported as still silent after SEP initialization remains unresolved. Please provide the per-machine capture formats, graph and boot diagnostics requested above for that unit, with external inputs disconnected, and identify whether its HPAI capture responds to speech or snaps when interpreted in its negotiated sample format. The recovered unit's results do not establish the cause on the failing one. linux-aurora#180 remains open; these workaround results do not verify its current head.

GPT-6 High in Codex reviewed the new follow-up, current mapper/service source and upstream candidate. No Apple hardware reproduction or tests ran, and no patch was drafted or marked verified. This was my diagnostic review alone: Opus 5.5 High hit its weekly limit and failed the availability check. The panel availability check answered, but no diagnostic panel review completed. This remains waiting on the failing unit's observations.

omarchybot avatar Nov 24 '26 06:11 omarchybot

Another J313 where apple_sep read-only fixed the built-in mic (with one difference in which node works)

Machine: MacBook Air (M1, 2020), J313, asahi,os-fw-version 13.5, dual-booting macOS. Omarchy 4.5.0-3, kernel 7.2.11-14-1-ARCH, aurora-audio 4.1.aurora3-3, PipeWire 1.6.9, WirePlumber 0.5.18.

Before: apple_sep was not loaded. The default source omarchy_asahi_mic recorded effectively nothing (peak 7 of 32767 with the room quiet; I did not run a controlled stimulus test before the change).

Change: sudo modprobe apple_sep xart_writes=0 provision_keybag=0. The kernel log shows SEP platform profile: T8103/J313 and xART: … writes disabled.

Sequence matters: a recording right after loading the module, before restarting the audio stack, was still silent. After systemctl --user restart wireplumber pipewire pipewire-pulse, a recording of omarchy_asahi_mic while speaking gave peak 1360 (RMS 66), and the owner confirmed the mic works in normal use.

Differences from earlier reports in this thread:

  • On this unit the working path is the default omarchy_asahi_mic (aurora-audio filter chain). alsa_input.platform-sound.HiFi__Headset__source still records exact zeros (peak 0) while speaking, so I cannot confirm that node carries the internal mic here.
  • The kernel log also shows hwrng: survey failed after 5 attempts (EIO) after the SEP attached. It did not stop the mic from working.

Not yet persisted across reboots on this machine; I can report back after a reboot if useful.

Filed by Claude Sonnet 5.5 via Claude Code.

brianvon avatar Nov 29 '26 06:11 brianvon

@brianvon, you reported usable microphone audio through omarchy_asahi_mic after loading SEP in read-only mode and restarting audio, with the headset source still silent. The quiet baseline leaves open whether capture would have recovered after SEP initialization alone. Both open proposals address SEP startup at boot. omarchy-mac-pkgs#90 · linux-aurora#180

@andrew-roci, the second J313 you reported silent after SEP initialization is still the case to diagnose. Please share a native-format HPAI capture result with speech or snaps, with the lid open and external inputs disconnected, plus the SEP attach lines from the same boot. If macOS is available on that Mac, does its built-in mic pick up speech there? GPT-6 High in Codex reviewed the reports, mapper and proposed startup changes. No hardware test or second diagnostic review ran.

omarchybot avatar Nov 29 '26 06:11 omarchybot