pulseaudio未检测到声卡(alsa )

分享于 

4分钟阅读

ubuntu

 

问题:

从18.04> 20.04升级后,pulseaudio无法正确识别笔记本电脑的内部声卡。虽然alsamixer可以显示声卡。


aplay -l


**** Liste der Hardware-Geräte (PLAYBACK) ****


Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC293 Analog [ALC293 Analog]


 Sub-Geräte: 0/1


 Sub-Gerät #0: subdevice #0


Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0]


 Sub-Geräte: 1/1


 Sub-Gerät #0: subdevice #0


Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]


 Sub-Geräte: 1/1


 Sub-Gerät #0: subdevice #0


Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]


 Sub-Geräte: 1/1


 Sub-Gerät #0: subdevice #0


Karte 0: PCH [HDA Intel PCH], Gerät 9: HDMI 3 [HDMI 3]


 Sub-Geräte: 1/1


 Sub-Gerät #0: subdevice #0


Karte 0: PCH [HDA Intel PCH], Gerät 10: HDMI 4 [HDMI 4]


 Sub-Geräte: 1/1


 Sub-Gerät #0: subdevice #0


Karte 1: Dock [USB3.0 Dual Video Dock], Gerät 0: USB Audio [USB Audio]


 Sub-Geräte: 1/1


 Sub-Gerät #0: subdevice #0



HDA Intel PCH是正确的设备,请参见:


lspci


00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM Controller (rev 0b)


00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake)


00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)


00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)


00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)


00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 30)


00:17.0 SATA controller: Intel Corporation Cannon Point-LP SATA Controller [AHCI Mode] (rev 30)


00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #5 (rev f0)


00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f0)


00:1d.1 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #10 (rev f0)


00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)


00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)


00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)


00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 30)


39:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)


39:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)


3a:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)



当我打开pavucontrol,声卡没有显示,我已经尝试了以下操作,然后重新启动:


sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils


sudo apt-get install linux-sound-base alsa-base alsa-utils



不幸的是,没有帮助。


答案1:

我找到了一个解决方法


sudo alsa force-reload



使我的声卡恢复了。我将以下内容的脚本放入启动脚本:


#!/bin/bash


sudo alsa force-reload



并将脚本触发:


sudo chmod +x /etc/rc.local


sudo nano /etc/rc.local



并将该行放入:


sh /path/to/alsa_force_reload.sh




答案2:


sudo alsa force-reload && reboot





相关文章