我最近从 18.04 lts 升级到了 Ubuntu 20.04 lts。重启后音频不工作。我尝试重新安装pulseaudio
但alsa
仍然不工作。
sudo apt-get install --reinstall alsa-base pulseaudio
sudo alsa force-reload
仍然不工作。
输出
└─▶ inxi -SMA
System: Host: Wizard Kernel: 5.4.0-26-generic x86_64 bits: 64 Desktop: Gnome 3.36.1 Distro: Ubuntu 20.04 LTS (Focal Fossa)
Machine: Type: Portable System: Dell product: Vostro 2520 v: N/A serial: <superuser/root required>
Mobo: Dell model: 0V1NDP v: A11 serial: <superuser/root required> BIOS: Dell v: A11 date: 02/24/2014
Audio: Device-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel
Sound Server: ALSA v: k5.4.0-26-generic
输出
└─▶ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM75 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
07:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
答案1
以防有人遇到这个问题并寻求解决方案。@Nate 在此链接上提供了唯一的本机解决方案(无需执行任何外部操作)。https://askubuntu.com/a/37609/9598我在这里重现部分内容,以便为您提供有关如何解决此问题的线索。
我 [...] 注意到 ACL 没有设置
/dev/snd
sudo setfacl -m u:$USER:rw /dev/snd/*
然后重新启动计算机。
在终端中运行此命令将解决该问题。
非常感谢迈克尔·巴特勒
答案2
您的扬声器可能会被检测为未插电,从而导致它们被忽略。
临时修复:
sudo apt install pavucontrol
- 跑步
pavucontrol
- 配置选项卡 > 配置文件 > 模拟立体声输出(未插入)(不可用)
扬声器应该可以工作,但当拔下耳机或系统重启时它会重置。
永久修复:
sudo apt install alsa-tools-gui
- 跑步
hdajackretask
- 解析器提示 > jack_detect = no
- 现在申请
- 安装引导覆盖
答案3
我认为我有一个解决你的问题的方法:尝试
sudo alsa force-reload
这使我的声卡恢复了活力。但它无法在重启后继续存在,所以我正在努力使更改持久化... 参见: