Ubuntu 20.4 停止识别音频驱动程序

Ubuntu 20.4 停止识别音频驱动程序

我有一个集成到主板的声卡,它与 Ubuntu 20.4 完美配合,直到最近更新或安装软件(不完全确定是哪一个以及何时发生):

lspci -v | grep -A7 -i "audio"                                       21ms 
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
    Subsystem: ASRock Incorporation 200 Series PCH HD Audio
    Flags: bus master, fast devsel, latency 32, IRQ 11
    Memory at df140000 (64-bit, non-prefetchable) [size=16K]
    Memory at df120000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>

00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
    Subsystem: ASRock Incorporation 200 Series/Z370 Chipset Family SMBus Controller
--
01:00.1 Audio device: NVIDIA Corporation GP108 High Definition Audio Controller (rev a1)
    Subsystem: NVIDIA Corporation GP108 High Definition Audio Controller
    Flags: bus master, fast devsel, latency 0, IRQ 10
    Memory at df080000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>

我最终得到了Dummy Output并跟随官方声音故障排除指南。看来 Ubuntu 不知何故丢失了它的驱动程序:

System:    Host: ubuntu Kernel: 5.8.0-40-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Audio:     Device-1: Intel 200 Series PCH HD Audio driver: N/A 
           Device-2: NVIDIA GP108 High Definition Audio driver: N/A 

sudo aplay -l                                                        21ms 
aplay: device_list:274: no soundcards found...

按照同一指南中的步骤 5,我得到:

find /lib/modules/`uname -r` | grep snd                               5ms 
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-rawmidi.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-hrtimer.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-pcm.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-hwdep.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-timer.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/seq/snd-seq-virmidi.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/seq/snd-seq-dummy.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/seq/snd-seq.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/seq/snd-seq-midi-emul.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/seq/snd-seq-midi.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-seq-device.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-pcm-dmaengine.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd-compress.ko
/lib/modules/5.8.0-40-generic/kernel/sound/core/snd.ko
/lib/modules/5.8.0-40-generic/kernel/sound/drivers/pcsp/snd-pcsp.ko
/lib/modules/5.8.0-40-generic/kernel/sound/pci/snd-ens1370.ko

遗憾的是,尽管更新了所有软件包,但指南的下一步仍然失败:

sudo apt-get install linux-restricted-modules-`uname -r` linux-generic                                           6ms 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-restricted-modules-5.8.0-40-generic
E: Couldn't find any package by glob 'linux-restricted-modules-5.8.0-40-generic'
E: Couldn't find any package by regex 'linux-restricted-modules-5.8.0-40-generic'

唯一可能报告的类似问题Ubuntu 20.04 集成声卡不工作9个月没有活动。

答案1

多亏了这个邮政。我能够通过以下方式恢复驱动器:

sudo apt install linux-modules-extra-`uname -r`

后来我遵循了 Ubuntu 指南建议的完整过程:

sudo aplay -l

重新启动后问题就解决了。

已编辑 2021-02-23

另一次自动更新后问题再次出现,我不得不重新应用相同的修复程序。在我看来,额外的模块不会自动安装,您需要手动添加它们。

相关内容