Ubuntu

Ubuntu 20.4 停止辨識音頻驅動程序

  • February 23, 2021

我有一個集成到主機板音效卡,在最近的更新或軟體安裝之前,它與 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 個月沒有活動。

感謝這篇文章。我能夠通過以下方式恢復驅動器:

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

後來我遵循了 Ubuntu 指南建議的完整程序:

sudo aplay -l

隨後重新啟動已解決問題。

2021-02-23 編輯

在另一次自動更新後問題再次出現,我不得不重新應用相同的修復程序。在我看來,額外的模組不會自動安裝,您需要手動添加它們。

引用自:https://unix.stackexchange.com/questions/630541