How to force pulseaudio ports to be available

I found a solution for this issue: There is an option in the hda driver to disable the Jack detection. I made a udev rule to enforce this before boot:

/etc/udev/rules.d/jackdetect.rules:

ACTION=="add", SUBSYSTEM=="sound", ATTRS{chip_name}=="ALC898", ATTR{hints}="jack_detect=false"
ACTION=="add", SUBSYSTEM=="sound", ATTRS{chip_name}=="ALC898", ATTR{reconfig}="1"

You can find your chip_name in /sys/class/sound/hwC?D?/chip_name, or use something else as a selector...

See this page for more information: https://www.kernel.org/doc/html/latest/sound/hd-audio/notes.html#hd-audio-reconfiguration


Many cards have profiles, which determine - among other things - which inputs and outputs are available. Your card has the following:

 profiles:
    input:analog-stereo: Analog Stereo Input (priority 60, available: no)
    output:analog-stereo: Analog Stereo Output (priority 6000, available: no)
    output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: no)
    off: Off (priority 0, available: unknown)

and the currently active profile is

active profile: <off>

You can choose a profile in pavucontrol in the Configuration tab, or with pacmd set-card-profile. Choosing one of the two profiles with output in its name should enable the Analog Stereo Output.