You are not logged in.

#1 2023-07-04 15:18:24

Palmitoxico
Member
From: Brazil
Registered: 2015-09-24
Posts: 17

Force Pipewire to redirect audio to an unplugged headphone

The front audio jack of my computer case seems to follow the AC97 connection style, so from what I read it doesn't support jack detection when connected to an HD Audio connector. So it always show as 'unplugged' when seen in pavucontrol.

Ok, so I've tried to manually force the output selection to route the audio to the front jack via pavucontrol. It works, but after some random amount of time (can be from seconds to 10s of minutes) the audio is re-routed to the line-out jack.

I've been searching for a way to disable automatic jack detection with pipewire but couldn't find anything, any tip would highly appreciated.

Thanks,
Augusto.

Offline

#2 2023-07-04 16:02:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,836

Re: Force Pipewire to redirect audio to an unplugged headphone

Set the

["api.acp.auto-port"] = false

property on the device in question assuming you're using wireplumber to disable the automatic port detection. https://wiki.archlinux.org/title/WirePl … e_property

Last edited by V1del (2023-07-04 16:03:53)

Offline

#3 2025-08-13 04:23:39

xcoder
Member
Registered: 2025-08-12
Posts: 2

Re: Force Pipewire to redirect audio to an unplugged headphone

The Wireplumber config file with auto-port turned off sounded good, but the Wireplumber documentation says the setting is already disabled by default.

api.acp.auto-port
Automatically select the highest priority port that is available (“port” is a PulseAudio/ACP term, the equivalent of a “Route” in PipeWire). This is by default disabled because WirePlumber handles the task of selecting and restoring Routes. Enable this in custom configurations where the relevant WirePlumber components are disabled.
Type:  boolean

Here is another solution option if anyone else has problems with automatic jack detection. Install the package alsa-tools. One of the tools in the set is HDAJackRetask. If your audio driver is compatible, the tool allows remapping audio jacks and manual override of automatic jack detection (note it may only work for hardware using snd_hda_intel or similar drivers). In the GUI, check the boxes for "show unconnected pins" and "advanced override". To save your custom settings click the button "install boot override" and authenticate. To check audio jack status, use pavucontrol or run the command below in a terminal.

amixer -c 0 contents 

Offline

#4 2025-08-13 09:56:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,042
Website

Re: Force Pipewire to redirect audio to an unplugged headphone

Thanks for sharing. I'm going to close this old topic now.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB