Ubuntu 20.04 上声音不起作用。我只在声音设置中看到虚拟输出

Ubuntu 20.04 上声音不起作用。我只在声音设置中看到虚拟输出

我最近在我的 acer swift 3 笔记本电脑上安装了 ubuntu 20.04 lts。声音似乎不起作用。

在声音设置中,我只看到虚拟输出。

这是输出hwinfo --sound

17: PCI 1f.3: 0401 Multimedia audio controller                  
  [Created at pci.386]
  Unique ID: nS1_.8YazuRdW485
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Model: "Intel Multimedia audio controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x34c8 
  SubVendor: pci 0x1025 "Acer Incorporated [ALI]"
  SubDevice: pci 0x136d 
  Revision: 0x30
  Driver: "sof-audio-pci"
  Driver Modules: "snd_sof_pci"
  Memory Range: 0x601d160000-0x601d163fff (rw,non-prefetchable)
  Memory Range: 0x601d000000-0x601d0fffff (rw,non-prefetchable)
  IRQ: 164 (14 events)
  Module Alias: "pci:v00008086d000034C8sv00001025sd0000136Dbc04sc01i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Driver Info #1:
    Driver Status: snd_sof_pci is active
    Driver Activation Cmd: "modprobe snd_sof_pci"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
reyansh@acer:~$ aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

另外,我发现没有找到声卡!

reyansh@acer:~$ cat /proc/asound/cards
--- no soundcards ---

lspci -v并且,声音的输出是,

00:1f.3 Multimedia audio controller: Intel Corporation Smart Sound Technology Audio Controller (rev 30)
    Subsystem: Acer Incorporated [ALI] Smart Sound Technology Audio Controller
    Flags: bus master, fast devsel, latency 32, IRQ 164
    Memory at 601d160000 (64-bit, non-prefetchable) [size=16K]
    Memory at 601d000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: sof-audio-pci
    Kernel modules: snd_hda_intel, snd_sof_pci

任何帮助都将不胜感激。谢谢!

答案1

我找到了解决方法。运行以下命令。

echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf

现在,重新加载 alsa 并重新启动。

sudo killall pulseaudio 
sudo alsa force-reload
sudo reboot

相关内容