Skip to content

Resolve through EasyEffects to its configured output device - #8713

Closed
tzssangglass wants to merge 1 commit into
omacom:quattrofrom
tzssangglass:fix/easyeffects-output-sink-resolution
Closed

tzssangglass wants to merge 1 commit into
omacom:quattrofrom
tzssangglass:fix/easyeffects-output-sink-resolution

Conversation

@tzssangglass

@tzssangglass tzssangglass commented Aug 28, 2026 •

Copy link
Copy Markdown

Problem

With Easy Effects as the default output ("Process all outputs"), the volume keys, the OSD, and the audio panel slider adjust the virtual easyeffects_sink instead of the physical sink:

  • Loudness doesn't change. With a dynamics plugin in the chain (e.g. autogain), the input-level change is normalized away -- the OSD moves while the speakers stay exactly as loud.

Root cause

omarchy-audio-output-sink resolves a DSP sink's physical output by scanning pactl list sink-inputs for the forwarding stream (matching the sink name, or application.name = "EasyEffects"). Current EasyEffects forwards through direct PipeWire node links (ee_soe_output_level:output_* -> alsa_output...:playback_*), which never appear as PulseAudio sink-inputs at all. The scan finds nothing, so the script falls back to returning easyeffects_sink itself -- exactly the case the header comment warns about: "the display moves while the speakers do not".

Verified live: during active playback through Easy Effects, pactl list sink-inputs shows only the apps playing into easyeffects_sink; no EasyEffects stream toward the physical sink exists.

Fix

EasyEffects persists its configured output device in ~/.config/easyeffects/db/easyeffectsrc ([StreamOutputs] outputDevice=). When the stream scan finds nothing and the selected sink is easyeffects_sink, read the physical sink from there:

  • validated against the live sink list (pactl list sinks short), so a stale/unplugged device falls through to the existing fallback unchanged
  • complements the existing EasyEffects stream matcher -- setups where the forwarding stream does appear keep working exactly as before
  • works whether or not audio is currently flowing (the node links only exist during playback; the config is always there)

Reproduction

# Easy Effects running, Process-all-outputs on, default output = Easy Effects Sink,
# EE output device = speakers, autogain (or any dynamics) in the chain
omarchy-audio-output-sink
# before: easyeffects_sink          <- virtual sink, wrong target for volume
# after:  alsa_output...Speaker__sink  <- physical sink

omarchy-audio-output-volume +5
# before: OSD moves, loudness unchanged (autogain normalizes it)
# after:  loudness actually changes, easyeffects_sink untouched

Verification

Case Result
Default = Easy Effects Sink, playing resolves to physical speaker, keys change real loudness
Default = Easy Effects Sink, idle (no links) same, via persisted config
Default = physical sink (EE off) unchanged (early return)
Missing/stale easyeffectsrc falls back to previous behavior
omarchy speaker-tuning filter chain unchanged (stream scan runs first)

Tested on Omarchy 4.0.1 with Easy Effects 7.x, PipeWire/WirePlumber.

Copilot AI balanced review requested due to automatic review settings August 28, 2026 03:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tzssangglass
tzssangglass marked this pull request as draft August 28, 2026 03:19
The sink-input scan misses EasyEffects because it forwards through
direct PipeWire node links that never appear as PulseAudio streams.
Volume keys and the audio panel then end up adjusting the virtual
easyeffects_sink: the OSD moves while loudness stays put -- an autogain
or limiter in the chain normalizes the change away.

EasyEffects persists its configured output device in easyeffectsrc, so
read the physical sink from there when the stream scan finds nothing.
The device is validated against the live sink list, and anything
unexpected falls through to the existing behavior.
@tzssangglass
tzssangglass force-pushed the fix/easyeffects-output-sink-resolution branch from 6ad5908 to f6eb5ae Compare August 28, 2026 07:38
@tzssangglass
tzssangglass marked this pull request as ready for review August 28, 2026 07:39
@omarchybot omarchybot added the bug Something isn't working label Sep 27, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thank you for tracking this down, @tzssangglass. The diagnosis is right: EasyEffects 8 links ee_soe_output_level straight to the device's playback ports, so the pactl list sink-inputs search finds nothing and the volume keys move easyeffects_sink. #12204 and #9021 report the same thing.

Reviewed at f6eb5aef by Claude Opus 5.5. I read the diff against quattro, its callers (omarchy-audio-output-volume, omarchy-audio-output-switch, omarchy-audio-tuning and the audio panel), and EasyEffects' own source for how it keeps outputDevice. Nothing ran on a worker, for the reason below. There was no second opinion: the reviewer (Codex Medium) answered, but today's review budget was already used up.

Two other open pull requests fix the same bug: #9132 and #13396. Of the three, #13396 looks best, so this one was not tested further:

  • The settings file can name the wrong device. EasyEffects keeps outputDevice up to date in memory. With useDefaultOutputDevice on, which is its default, that happens whenever the default output changes. It only writes easyeffectsrc on a timer while its window is open, and when it quits (saveAll() in src/db_manager.cpp). In service mode the file can therefore name a device EasyEffects has stopped feeding. Say you switch to USB headphones and then back to easyeffects_sink. EasyEffects now plays into the headphones, but the file still names the speakers. They are still plugged in, so they pass the check at bin/omarchy-audio-output-sink:60, and the volume keys change the speakers' volume. Resolve the audio output sink through EasyEffects 8 #13396 reads the live port links first and uses the file only when EasyEffects is idle and has dropped them.
  • No test. Resolve the audio output sink through EasyEffects 8 #13396 adds test/shell.d/audio-output-sink-test.sh, which covers EasyEffects playing, idle, and with its configured device missing, and checks that the existing tuning path still works.

This pull request does handle one case better than #13396. Because it reads the file, it reaches a bluez_output device, while #13396 follows only links to alsa_output sinks. That has already been pointed out on #13396. #9132 follows the links but has nothing to fall back on when EasyEffects is idle.

Choosing between competing fixes is up to the maintainer, so this waits on them.

@omarchybot

Copy link
Copy Markdown
Collaborator

Closing this alternative after #13396 merged into quattro. The merged fix resolves EasyEffects 8 through live ALSA/Bluetooth links with a validated idle settings fallback. This settles the EasyEffects volume-control bug this alternative targets.

Scope checked by GPT-6 in Codex and Codex Medium against the discussion and landed change; review independence is not guaranteed. No tests were rerun for this cleanup.

Omabot on behalf of DHH

@omarchybot omarchybot closed this Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants