安装 nix 并重新启动后,我遇到了一个奇怪的错误:我的声卡被找到了(我认为),但我的系统只显示了一个虚拟输出。在此之前,声音工作正常。
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xa1518000 irq 150
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ 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
但pavucontrol
只显示虚拟输出并且没有声音。
操作系统:Kubuntu 19.04
答案1
当我出现类似症状时(在 manjaro 中),这使它再次发挥作用:
mv ~/.pulse/client.conf ~/.pulse/client.conf.old
killall pulseaudio
pulseaudio --start --log-level=4 # or logging out and in should work as well
并等待几秒钟。
我曾经遇到过(现在仍然遇到)由于音频插孔而产生的问题,而不是因为 nix,所以这可能不适合您。