所以我最近从 Windows 换到了 Ubuntu,但遇到了声音问题。我根本没有声音。我正在使用 NVidia 驱动程序,所以我知道这可能会导致问题,但我想知道是否有任何解决方案。我alsamixer
看起来像这样:
如果我这样做,aplay -l
我会得到:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
我无法更改 S/PDIF 的音量,按alsamixer
F6 时只能显示 Nvidia 卡。请帮忙。
编辑:当我使用时lspci -vnn | grep -iA4 audio
我得到:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10)
Subsystem: Dell Device [1028:0949]
Flags: bus master, fast devsel, latency 32, IRQ 16
Memory at a5518000 (64-bit, non-prefetchable) [size=16K]
Memory at a5200000 (64-bit, non-prefetchable) [size=1M]
Kernel driver in use: sof-audio-pci
Kernel modules: snd_hda_intel, sof_pci_dev
00:1f.4 SMBus [0c05]: Intel Corporation Cannon Lake PCH SMBus Controller [8086:a323] (rev 10)
Subsystem: Dell Device [1028:0949]
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1)
Subsystem: Dell Device [1028:0949]
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at a3080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
答案1
答案2
好像你加载了错误的驱动程序Kernel driver in use: sof-audio-pci
尝试snd_hda_intel
用以下命令覆盖它:
sudo driverctl list-devices
您应该会看到您的音频设备,因为0000:1028:0949
如果您写入已加载的驱动程序以确保无误,您还可以缩短搜索时间:
sudo driverctl list-devices | grep sof-audio-pci
然后将设备上加载的驱动程序替换为snd_hda_intel
sudo driverctl set-override 0000:1028:0949 snd_hda_intel
现在您应该没问题了,输入killall pulseaudio
以刷新它或重新启动系统以使其生效。
如果您没有driverctl
实用程序,请安装它:
sudo apt install driverctl