没有声音,pulseaudio 似乎坏了,dameon 启动失败

没有声音,pulseaudio 似乎坏了,dameon 启动失败

在其他帖子中找不到此问题的任何解决方案。我在 Ubuntu 上没有声音了。我删除并重新安装了 pulseaudio,但仍然有此问题:

$ pulseaudio --start
E: [pulseaudio] main.c: Daemon startup failed.

$ sudo pulseaudio -k
E: [pulseaudio] core-util.c: Failed to create secure directory 
(/home/louisro/.config/pulse): Permission denied
E: [pulseaudio] main.c: Failed to kill daemon: Permission denied


$ ps -ef | grep pulse
louisro   8703  3418  0 21:45 pts/10   00:00:00 grep --color=auto pulse
$ pacmd list-cards
No PulseAudio daemon running, or not running as session daemon.
louisro@-ThinkPad-T400:~/.config$ lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

重新安装 alsa 和 pulseaudio 也会出现这种情况并破坏我的系统参数,我必须运行sudo apt-get install ubuntu-desktop才能恢复它们:

$ sudo apt-get remove --purge alsa-base pulseaudio
$ sudo apt-get install alsa-base pulseaudio
$ sudo alsa force-reload
Unloading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-conexant snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-page-alloc snd-timer (failed: modules still loaded: snd-hda-codec-conexant snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-page-alloc snd-timer).
Loading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-conexant snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-page-alloc snd-timer.

你能帮忙吗?谢谢

答案1

我建议安装 PiperWire 而不是 PulseAudio,因为它的延迟低并且更灵活。更多信息:https://lwn.net/Articles/847412/

假设您使用的是 Ubuntu 22.04,@1nfern0 已讨论了安装 PipeWire 的正确方法: https://askubuntu.com/a/1339897/1638745

相关内容