【解决Ubuntu18.04没声音:No cards available for configuration】

解决Ubuntu18.04没声音,没声卡可配置/No cards available for configuration

按网上的很多方法都没成功,后来发现虽然安装pavucontrol ,但是在 pavucontrol 的 Configuration 选项里,我的和别人的都不一样,别人至少会显示一张声卡,我的是 No cards available for configuration ,最后网上搜了一大圈找到一个可行的方法(https://stackoverflow.com/questions/61643364/how-to-fix-no-sound-on-ubuntu-18-04),分享出来。

首先安装一下pavucontrol

sudo apt install pavucontrol -y

安装完后,输入 pavucontrol,查看配置/Configuration 选项,如果显示没有声卡可配置或No cards available for configuration,说明问题和本帖一样,可以继续执行以下步骤。

sudo vim修改 /etc/modprobe.d/alsa-base.conf 文件

sudo vim /etc/modprobe.d/alsa-base.conf

i进入编辑模式,在文件最后加上如下几句话,按Esc,输入:wq保存退出:

options snd-hda-intel dmic_detect=0

options snd-hda-intel model=laptop-amic enable=yes

具体作用看原po的意思是:第一行是开启扬声器,第二行是开启内置麦克风
The first line is to enable the speaker, the second for the internal microphone

重启后声音就有了~

你可能感兴趣的:(ubuntu,linux,vim)