无法禁用脉冲音频中的端口切换。删除可用端口上的模块开关不再起作用

无法禁用脉冲音频中的端口切换。删除可用端口上的模块开关不再起作用

我的音频插孔损坏了,每隔几秒就会保持连接一小会儿。当输出切换到耳机然后再切换回来时,这会导致发出微弱的噼啪声。

之前的工作是从 /etc/pulse/default.pa 中删除 module-switch-on-port-available。自从我从 16.04 升级到 Ubuntu 18.04 后,这不再起作用。当您检查 pactl 时,模块并未加载,但输出不断变化。

我尝试了很多方法,但似乎没有任何效果。我什至通过删除 alsa-mixer/paths 中的配置文件来禁用耳机。事实上,当我插入耳机时,它们不起作用。但当我拔掉插头时,噼啪声仍然存在。脉冲音频日志一直在说:

(   5.867|   3.700) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged in
(   5.867|   0.000) D: [pulseaudio] device-port.c: Setting port analog-output-lineout to status no
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-stereo to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-stereo+input:analog-stereo to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-21 to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-21+input:analog-stereo to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-40 to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-40+input:analog-stereo to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-41 to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-41+input:analog-stereo to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-50 to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-50+input:analog-stereo to availability status no
(   5.867|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.867|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-51 to availability status no
(   5.868|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.868|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-51+input:analog-stereo to availability status no
(   5.868|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.868|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-71 to availability status no
(   5.868|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.868|   0.000) D: [pulseaudio] card.c: Setting card alsa_card.pci-0000_00_1b.0 profile output:analog-surround-71+input:analog-stereo to availability status no
(   5.868|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
(   5.888|   0.020) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
(   5.888|   0.000) D: [pulseaudio] device-port.c: Setting port analog-output-lineout to status yes

Lineout 是我想要使用的输出。有关如何停止切换或禁用耳机端口的任何想法。

相关内容