我的 Ubuntu 20.04 突然停止输出音频和接收输入。现在,如果我使用蓝牙耳机,我可以听到音频,但“内部声音”和 USB 耳机都无法被识别。
uname -a
输出:
Linux Lab 5.7.4-050704-generic #202006181331 SMP Thu Jun 18 13:33:57 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
在无法确定出了什么问题之后,我运行了这个脚本,我发现 snd-hda-intel 模块肯定没有加载。
wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh
输出为这里
我已经尝试重新安装 alsa 和 pulseaudio,但没有任何改变 :(
编辑:添加更多信息
当我运行
sudo lspci
音频部分时是:00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
我的电脑是 MSI GL62M-7RD
编辑2:添加输出aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
和pacmd list-cards
:
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_1f.3>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xdf320000 irq 128"
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 = "a171"
device.product.name = "CM238 HD Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
off: Off (priority 0, available: unknown)
active profile: <off>
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
答案1
哇。我以为没有声音,但蓝牙在这里也可以用。我有一台华硕 c436f Chromebook。目前无法在 Chomeos 上运行虚拟机,所以我将我的 go 加载到 18.04。它无法识别任何硬件。20.04 识别的硬件刚好足够使用。我尝试了以前版本 Ubuntu 的所有修复程序,但都没有成功。运行命令时你得到了什么sudo lspci
?我得到了很多,但该输出的主要候选是 00:1f.3 多媒体音频控制器:英特尔公司设备 02c8。根据我的研究,这似乎是一个内核问题。我也在用最新的。如果我在其他地方找到解决方案,将在这里通知您。您的硬件平台是什么?
编辑并仅供参考:帮助击败 uefi 的 Mrchromebox 回复了此问题:
这是意料之中的事,只是内置的编解码器/放大器(扬声器/麦克风)无法正常工作。从这里快速浏览一下,似乎驱动程序已包含在内,因此可能只需要从 ChromeOS 复制 Alsa 配置/UCM/固件即可。但我需要仔细看看
如果你还没找到的话,这个可能会对你有帮助。对我没什么帮助,但内容相当全面。 https://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/