我正在运行 Ubuntu 18.04 LTS。我曾经USB 音频静音低于 35%问题。所以我按照上面的说明进行操作这里修复了这个问题。修复成功了。但现在内置扬声器不再工作了。
user@hp-elitedesk:~$ pactl list short sinks
0 alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
另一方面,PulseAudio 确实检测到了该卡:
user@hp-elitedesk:~$ pactl list short cards 0
alsa_card.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00 module-alsa-card.c 1
alsa_card.pci-0000_00_1f.3 module-alsa-card.c
这样做sudo alsa force-reload
没有效果。如何才能让我的内置扬声器再次工作?
看来这不是第一次有人在关注 Chris Jean 的帖子后内部扬声器停止工作。我在这个问题发生了同样的事情。ALSA 似乎也检测到了该卡。
更新
我检查了输出pacmd dump
并看到了以下内容:
### Configuration dump generated at Fri Oct 5 14:16:21 2018
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-switch-on-connect
load-module module-udev-detect
load-module module-alsa-card device_id="1" name="usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00" card_name="alsa_card.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="0" name="pci-0000_00_1f.3" card_name="alsa_card.pci-0000_00_1f.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-bluez5-discover
load-module module-native-protocol-unix
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-cli-protocol-unix
set-sink-volume alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo 0x7f79
set-sink-mute alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo no
suspend-sink alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo no
set-source-volume alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo.monitor 0x10000
set-source-mute alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo.monitor no
suspend-source alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo.monitor no
set-source-volume alsa_input.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-mono 0x66a9
set-source-mute alsa_input.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-mono no
suspend-source alsa_input.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-mono yes
set-card-profile alsa_card.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00 output:analog-stereo+input:analog-mono
set-card-profile alsa_card.pci-0000_00_1f.3 off
set-default-sink alsa_output.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-stereo
set-default-source alsa_input.usb-C-Media_Electronics_Inc._Microsoft_LifeChat_LX-3000-00.analog-mono
### EOF
因此,很明显,set-card-profile
命令是问题所在,因为它没有加载配置文件。因此,我在输出中寻找配置文件定义,pactl list
然后运行:
pacmd set-card-profile alsa_card.pci-0000_00_1f.3 output:analog-stereo+input:analog-stereo
这解决了问题并带来了接收器组。但我不想每次启动后都运行它。有解决方法吗?我意识到在加载 pulseaudio 时一定出了问题。因此,我从终端运行它:
user@hp-elitedesk:i3$ pulseaudio
E: [pulseaudio] alsa-mixer.c: [/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common:129] Invalid value for volume-limit
E: [pulseaudio] alsa-mixer.c: [/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common:129] Invalid value for volume-limit
E: [pulseaudio] alsa-mixer.c: [/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common:129] Invalid value for volume-limit
因此,Chris Jean 帖子中建议的添加编辑volume-limit
导致了问题。我删除了该行,然后就没问题了。另一方面,删除该行导致低于 35% 的音频静音再次出现。
有人知道修复/解决方法吗?看起来如果我想修复音频静音问题,那么我需要将该命令添加到某个启动脚本中。