(feature request) add a default profile attribute.
For my use on my laptop, I usually want to have a flat response for all headphones, HDMI or whatever external system I attach to them (by the way - this may be interesting - is the current auto profile switching code respecting the port? Because when I use the normal audio-out from the laptop sound card, I also do not want it to switch to the heavily correct speaker output...).
So it would be extremely helpful if I could save a "neutral" profile, and make it the default, and only have it switch to effectively being active when the speakers are being used (or some other random bad headphone that may need correcttion). All other output paths would by default fall back to this default profile.
As an added bonus - if the profile would also save the state of the "being active" setting, we could maybe even spare a few cycles by routing around the whole processing path. Of course this wouldn't work if your personal preferences of a default is different from neutral (say you like a bit of added low end all the time), but for the neutral flat response case it could be a nice addon.
Thanks, this is a very useful direction.
The current output-preset switching is based on the PipeWire/WirePlumber node identity, so it does not yet fully distinguish ports such as laptop speakers vs headphones on the same sound card. I agree that a default/fallback preset plus port-aware matching would make this workflow much better.
I investigated the port-aware route data and found a WirePlumber introspection issue that affects reading those route properties safely from Python. I opened an upstream WirePlumber issue/MR for that:
- https://gitlab.freedesktop.org/pipewire/wireplumber/-/work_items/945
- https://gitlab.freedesktop.org/pipewire/wireplumber/-/merge_requests/828
Once that is resolved, or once Mini EQ has a safe compatibility path, I’d like to add this in a future release: a default preset fallback, with specific overrides for outputs/ports that need correction.
https://gitlab.freedesktop.org/pipewire/wireplumber/-/merge_requests/828
This is now merged upstream but I need to wait for the next Wireplumber release.
Mini EQ 0.5.0 now includes the first part of this workflow.
There is a new Default Preset fallback: when an output has no linked preset, Mini EQ can fall back to the configured default preset instead of accidentally carrying over an auto-applied correction from the previous output. Manual preset choices and unsaved edits are preserved, so the app should be less surprising when switching outputs.
This should cover the common “use neutral/default unless this output has its own correction” case.
There are still two parts I would keep open for follow-up:
- Port-aware matching, for cases like laptop speakers vs headphones on the same sound card. This depends on using the newer WirePlumber route data safely from Mini EQ, The relevant upstream fix has landed, but I still need to wait for it to be available in a WirePlumber release before depending on it.
- Saving/restoring the “active” routing state as part of a default profile, so a truly neutral default could bypass the EQ path.
So I’ll keep this issue open for now, but 0.5.0 should already make this workflow much more usable.
Very cool, can't wait to try it out when I am back at my laptop. I am really happy that finally someone took it on himself to bring this basic feature in a usable form to the users - I have been using easy effects for years now, and it is a really capable tool, but it is just too complicated that this would ever be usable for "normal" people. Mini-eq should and does go the way of having a really user friendly tool for the 99% case
Small update: Mini EQ 0.7.0 is out now.
This should cover the main workflow you described:
- 0.5.0 added the Default Preset fallback.
- 0.7.0 adds port-aware auto preset links, so Mini EQ can now distinguish ports like speakers vs headphones on the same output device when PipeWire exposes that route data.
- If Mini EQ cannot see a port for a device, it falls back to the normal output/default preset behavior instead of trying to guess.
This also moved the app to pipewire-gobject 0.3.5 for the PipeWire registry, metadata, and route data, which made this possible without depending on WirePlumber GI for this path.
I’ll leave this issue open for a bit in case you want to try it on your setup.
For my setup, where I have a Laptop with a 3.5mm headphone output, it seems to be stuck on scope Headphones, even when they are pulled out and the speaker take over...
I shoud add that looking at pwvucontrol the system switches correctly between the Headphone and Speaker port.
This may or may not be helpful (didn't have to time to look into it myself, so please disreard it as AI slop if it is - as in fact it is a quick check done by gemini-cli):
- Missing "Active" Port Detection: Currently, the system identifies ports by looking at the available routes on an audio device, but it doesn't explicitly check which one is marked as active by PipeWire. When multiple ports are reported (like both Speakers and Headphones on a single sound card), the system might pick the first one it sees or rely on a less accurate match, rather than the one currently producing sound.
- Static Preset Trigger: The application currently only triggers an automatic preset change when the audio device name changes (e.g., switching from your internal card to a USB DAC). However, when you plug in headphones, the device name often stays the same while only the port on that device changes. The current code doesn't consider a port change to be an "output change," so it stays on the previous preset.
Ah, and one more thing - the cycle saving on a default preset is maybe not worth it, but would still be neat. The problem I see from a UI standpoint with this is the following:
To have a neutral fallback, I currently have to save a neutral preset AND THEN make it the default. Having a "I am not active" toggle being part of a saved preset is - regardless of it being default or not - only ever a sensible thing to do when the preset in question is in fact NEUTRAL. So it could potentially add a lot more confusion than it would help in saving a few cycles. I fear that this idea would only make sense if the whole default mechanism would actually be implemented differently (at least on the UI level) - one would need to be able to say "Use my presets only for the device/port they are meant to be used for, otherwise falling abck to not processing OR alternatively use this preset", but you cannot have both. That would then take away the need for the user to have the abstract though of "Ah, I want to only have my equalizer set for certain devices, well, how about creating a preset for the sole purpose of not having any effect" which is again something that feels natural for me, but not for non-programmers. Just my 2 cents here..
Mini EQ 0.7.2 is out now with a fix for the case you reported: the app now treats a port change on the same hardware output as an output-preset scope change, so switching between built-in speakers and headphones should re-run the auto preset handling instead of staying on the previous port scope.
I also tightened the fallback wording around unmatched outputs, but I did not add the “inactive preset” idea from the last comment because I agree that would be a confusing model. The better direction is still: linked presets for specific output/port scopes, and an explicit unmatched-output fallback behavior.
Release: https://github.com/bhack/mini-eq/releases/tag/v0.7.2
I’ll keep this issue open until you have a chance to try it on the laptop setup where pwvucontrol switches correctly between Headphones and Speaker.
P.s. I don't have a setup like your one so I am trying to simulate it best effort
I am on seakers, then plug in the headphones. It stayson scope Speakers, until I turn off "System-wide equalizer", in which moment it switches to headphones and to being neutral . If I turn it on again, it stays there correctly. pulling the headphone out needs the toggling off and on again to make the "LaptopSpeaker" profile be aktivated and the scope change back to Speaker.
Thanks again for the detailed report. I have prepared a Flathub test build from the current 0.7.4 release candidate so we can verify this on the hardware that reproduces it before I publish the final GitHub/PyPI/Flathub release.
This build includes two relevant changes:
- it watches PipeWire route changes on the active output device, so speakers/headphones changes on the same sound card should re-run auto preset handling;
- it includes the latest system-wide EQ startup fix.
If you are willing to test it, please install the Flathub test build with:
flatpak install --user https://dl.flathub.org/build-repo/283437/io.github.bhack.mini-eq.flatpakref
Then run the test branch explicitly:
flatpak run --branch=test io.github.bhack.mini-eq
Could you try this sequence?
- Start on laptop speakers with the speaker scope/preset active.
- Leave System-wide EQ enabled.
- Plug in headphones and check whether the scope changes to headphones without toggling System-wide EQ.
- Unplug headphones and check whether the scope changes back to speakers, again without toggling System-wide EQ.
If it still sticks on the previous scope, please tell me the scope label shown before and after each plug/unplug step. If it works, I’ll publish this as the next stable patch release.
initial situation: mini-eq is not running, audio goes through to the speakers:
Now I start the "test" mini-eq flatpak. This has a profile defined for the speaker output:
flatpak run --branch=test io.github.bhack.mini-eq
filter-chain PipeWire EQ ready: mini_eq_sink -> alsa_output.pci-0000_00_1f.3.analog-stereo
The System-wide eq is still turned off after startup. I change it to on. Console output:
routed 1 stream(s) to mini_eq_sink
system audio routed to mini_eq_sink
Seems to be OK. Unfortunately, the sound didn't change. Only after I toggle the A/B compare switch off and on, I hear the signal actually being processed.
I am now putting in the headphones - no change on mini-eq. Scope is still on Speakers. In pwvucontrol it looks like this:
Extremely weird: In the moment I took that screenshot, something happened on the pipewire side that made mini-eq realise somechange and made it switch to the Headphones scope (and change to a neutral processing). But I see in the pipewire graph that taking a screenshot for a split second pops up a pipewire node. Somehow this triggered mini-eq to update. But anyhow - pwvucontrol is able to immediately recognice scope changes.
Unplugging will also stay on the Headphones port. Again doing some random screenshot made mini-eq aware of changes and it changed back to the Speakers.
Hope this helps.
Thanks, is this with the test/candidate version right?
in any case thanks for the screen. Can you make another stress test on your setup with this?
Use the new Flathub test build 283523, not the old 283437 one:
flatpak install --user https://dl.flathub.org/build-repo/283523/io.github.bhack.mini-eq.flatpakref
flatpak run --branch=test io.github.bhack.mini-eq
No change regarding the startup bug - enabling the system eq is still not enough to start processing event though routing seems to be fine - I need to toggle off/on the A/B comparison to make it work.
Still, it only changes the port in mini-eq after I do a random screenshot (or I thing any other thing that triggers some event in pipewire and as a result in mini-eq)
So essentially no change - I deinstalled the old flatpak --user install and installed your new version and used your command to run the app. About also says mini-eq 0.7.4.
Thanks, that confirms the previous test build still missed the real trigger.
I pushed a new candidate that changes the two remaining parts to be event-driven rather than timing based:
- Mini EQ now refreshes the port scope when PipeWire reports route parameter serial changes on the active output device.
- After routing a stream to
mini_eq_sink, Mini EQ re-applies the current filter controls when PipeWire creates the link to the virtual sink. That should avoid needing the A/B toggle to make processing audible.
The new Flathub test build is 283556:
flatpak install --user https://dl.flathub.org/build-repo/283556/io.github.bhack.mini-eq.flatpakref
flatpak run --branch=test io.github.bhack.mini-eq
Could you please retry the same two checks?
- Start Mini EQ, enable System-wide EQ, and check whether the current curve is audible immediately without toggling A/B.
- With System-wide EQ still enabled, plug/unplug headphones and check whether the scope changes between Speakers and Headphones without taking a screenshot or causing another unrelated PipeWire event.
This is still a draft/test build, not the final release, so if this works I’ll use it as the basis for the stable patch release.
This seems to do the trick!
Processing starts immediately, and also port changes are recogniced the moment I put the headphone jack in.