我的扬声器在 Windows 上运行良好,我刚刚尝试让它们在 Ubuntu 上运行,但“虚拟输出”是我唯一列出的输出设备。我重新安装了 Ubuntu,遇到了一些问题,但还是无法修复。有什么建议吗?
ALSA 信息:http://alsa-project.org/db/?f=3f026652460a271930b3e5a3e1a3aea0620c7024
版本:Ubuntu 20.10
设备:Acer Swift 315-52
命令:
aplay -l #1
alsamixer #2
alsamixer -c 0 #3
lspci -v #4
lspci -nnk | grep -A2 Audio #5
输出:
aplay: device_list:274: no soundcards found... #1
cannot open mixer: No such file or directory #2
invalid card index: 0
try `alsamixer --help' for more information #3
#(outputs the same result even if a different index number is used (0,1,2,3,...))
00:1f.3 Multimedia audio controller: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
Subsystem: Acer Incorporated [ALI] Sunrise Point-LP HD Audio
Flags: fast devsel, IRQ 255
Memory at df1a8000 (64-bit, non-prefetchable) [disabled] [size=16K]
Memory at df180000 (64-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: <access denied>
Kernel modules: snd_hda_intel #4
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)
Subsystem: Acer Incorporated [ALI] Sunrise Point-LP HD Audio [1025:1272]
Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21) #5
尝试 1:
apt-get install git
git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio
sudo apt install pavucontrol
除了“虚拟输出”之外,脉冲音频音量控制中没有列出任何输出设备。
尝试2:
pulseaudio -k && sudo alsa force-reload
pacmd list-cards
0 card(s) available.
我的 Acer 笔记本电脑 BIOS 中没有可供更改的声音设置
尝试3:
sudo chmod 666 /etc/modprobe.d/alsa-base.conf
echo 'options snd-hda-intel model=acer-mode1' >> /etc/modprobe.d/alsa-base.conf
sudo chmod 644 /etc/modprobe.d/alsa-base.conf
我需要在我的 alsa-base.conf 文件中添加什么类型的模型
https://ubuntuforums.org/showthread.php?t=1669330
撤销:
sudo chmod 666 /etc/modprobe.d/alsa-base.conf
sudo sed -i '$ d' /etc/modprobe.d/alsa-base.conf
sudo chmod 644 /etc/modprobe.d/alsa-base.conf
(也可以在 chmod 666 之后和 chmod 644 之前手动编辑文件)
尝试4:
sudo gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf
然后替换文章中列出的部分并重新启动
尝试 5:
答案1
从 22.04 升级到 22.10 后我遇到了同样的问题。
跑步
sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
systemctl --user restart pipewire-session-manager
解决了这个问题。