omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-audio-tuning fronted-sink ignores community omarchy_speaker_tuning sinks

Open roehrbacher opened this issue 2 months ago • 2 comments

Bug Description

omarchy-audio-output-switch skips the physical sink returned by omarchy-audio-tuning fronted-sink so a speaker-tuning filter is not listed as a second Speakers device. fronted-sink only returns a sink when tuning_match hits a shipped DMI/SKU laptop tuning.

Community plugins (e.g. thefreshoffice/omarchy-speaker-calibrator) already create omarchy_speaker_tuning with playback.props.target.object pointing at the real speakers. On a desktop fronted-sink prints nothing, so Ctrl+^ and the sound menu show Speakers + Headphones + the virtual sink (Pulse description empty → OSD "null"; Quickshell shows the graph title "Calibrated Speakers — Protected"). Selecting the hardware Speakers bypasses the EQ. Games that call Pulse SetDefaultEndpoint can do the same.

Steps to Reproduce

  1. Install a plugin that provides omarchy_speaker_tuning (not an Omarchy SKU tuning).
  2. Run omarchy audio tuning fronted-sink — empty.
  3. Run omarchy-audio-output-switch — rotation includes both the virtual sink and the physical speakers.

Expected Behavior

If omarchy_speaker_tuning is present, fronted-sink should return the sink that filter plays into (omarchy-audio-output-sink omarchy_speaker_tuning / target.object), even when no shipped laptop tuning matched.

Then stock Ctrl+^ and the stock audio panel hide the raw speakers for every community calibrator. Volume keys already resolve through the DSP sink via omarchy-audio-output-sink.

Actual Behavior

fronted-sink requires tuned_hardware_sink → tuning_match → DMI/SKU. No match → empty → three outputs.

Environment

  • Omarchy 4.0.4
  • Desktop USB speakers + USB-C headphones
  • Plugin virtual sink omarchy_speaker_tuning active

Related plugin report: will link after this issue exists.

roehrbacher avatar Sep 16 '26 22:09 roehrbacher

Plugin-side report (naming / third output / leftover pw-record): https://github.com/thefreshoffice/omarchy-speaker-calibrator/issues/1

roehrbacher avatar Sep 16 '26 22:09 roehrbacher

Confirmed on current quattro. fronted-sink checks that an omarchy_speaker_tuning sink exists, but finds the speakers behind it only through a shipped DMI/SKU tuning match (tuned_hardware_sink → tuning_match in bin/omarchy-audio-tuning). With no match it prints nothing, so omarchy-audio-output-switch and the sound menu keep the raw speakers. I reproduced it on an Omarchy worker with real PipeWire: a pw-loopback sink named omarchy_speaker_tuning playing into a separate sink gave an empty fronted-sink.

The fix is up as #15101. fronted-sink now follows the tuning's output stream to the sink it plays into, the same resolution the volume keys already use, and falls back to the shipped match while that stream is unlinked. On the worker the same setup then reported the downstream sink, a new shell test fails on quattro and passes with the change, and the CLI suite and audio shell tests pass.

Codex Medium reviewed the diagnosis and the fix. It agreed the mechanism is real and the change proportionate (its independence from this review is not guaranteed). It also noted that treating a sink Omarchy did not install as a tuning is a policy question, and that question is for the maintainer. This now waits on the maintainer's review of #15101.

omarchybot avatar Oct 12 '26 04:10 omarchybot