不久前,我在音频系统设置 GUI 中弄乱了一些东西(在 Debian 上使用 KDE Plasma)。我不记得我具体做了什么,但我在菜单中按下了一些按钮,删除了我唯一的声音输出。不幸的是,这个变化在重启后仍然存在。
好消息是,我可以通过插入 AUX 电缆再次添加输出。然后我可以通过耳机听到声音。此外,在我取下耳机后,输出仍然没有问题。但是,这意味着每次重新启动时我都必须重新插入 AUX 电缆才能获得输出设备。
现在开始我的调查:在无输出状态下,当我pulseaudio --kill
在命令行中运行时,PulseAudio 立即重新启动,并提示弹出一个窗口No output device
。第一次插入 AUX 时,会显示类似的弹出窗口Built-in Audio Analog Stereo
,其中包含声卡图像。这一切都显示在这个视频第一次 AUX 重新插拔时记录的。我pacmd list-sinks
在重新插拔之前和之后也运行了。视频中显示了这一点,该命令的输出复制如下:
❯ # Before the AUX replug:
❯ pacmd list-sinks
1 sink(s) available.
* index: 0
name: <auto_null>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1000
volume: front-left: 65453 / 100% / -0.03 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 344 KiB
max rewind: 344 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
module: 14
properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
❯ # I will now insert an AUX cable, which for some reason ends up adding an output
❯ pacmd list-sinks
1 sink(s) available.
* index: 1
name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9039
volume: front-left: 72090 / 110% / 2.48 dB, front-right: 72090 / 110% / 2.48 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 2
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC257 Analog"
alsa.id = "ALC257 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xa133c000 irq 148"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9dc8"
device.product.name = "Cannon Point-LP High Definition Audio Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-speaker>
有人能确定为什么我必须重新插入 AUX 才能使此输出设备(或“接收器”)可用吗?或者有人知道我是如何通过按下 GUI 音频菜单中的某些键/鼠标按钮导致此问题的吗?