我在使用 PulseAudio 时遇到问题,而且很多天让我有些头疼......我必须在我的系统上发出声音,这没有问题(firefox 和 Spotify 都可以)但我在 syslog 中有问题导致某些软件(在这种情况下为剪辑)无法加载。
命令'tail -f /var/log/syslog'给我以下结果:
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: Home directory not accessible: Permission denied
May 15 22:54:01 paulm-serveur pulseaudio[12853]: [autospawn] core-util.c: Home directory not accessible: Permission non accordée
May 15 22:54:01 paulm-serveur pulseaudio[12853]: [autospawn] lock-autospawn.c: Impossible d'accèder au verrou autonome.
May 15 22:54:01 paulm-serveur pulseaudio[12853]: [pulseaudio] main.c: Failed to acquire autospawn lock
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: Home directory not accessible: Permission denied
May 15 22:54:01 paulm-serveur pulseaudio[12856]: [autospawn] core-util.c: Home directory not accessible: Permission non accordée
May 15 22:54:01 paulm-serveur pulseaudio[12856]: [autospawn] lock-autospawn.c: Impossible d'accèder au verrou autonome.
May 15 22:54:01 paulm-serveur pulseaudio[12856]: [pulseaudio] main.c: Failed to acquire autospawn lock
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
May 15 22:54:01 paulm-serveur snips-audio-server[12849]: Home directory not accessible: Permission denied
和 'journalctl -b -r _COMM=pulseaudio' :
mai 15 22:58:03 paulm-serveur pulseaudio[13842]: [pulseaudio] main.c: Failed to acquire autospawn lock
mai 15 22:58:03 paulm-serveur pulseaudio[13842]: [autospawn] lock-autospawn.c: Impossible d'accèder au verrou autonome.
mai 15 22:58:03 paulm-serveur pulseaudio[13842]: [autospawn] core-util.c: Home directory not accessible: Permission non accordée
所以我在网上闲逛,关注无数的主题和教程,清除并重新安装脉冲,alsa ......但是没有任何接缝可以工作......正如你可能会问的,这里是我的主文件夹的权限:
root@paulm-serveur:/home/paulm# ls -la /home
total 12
drwxr-xr-x 3 root root 4096 mai 5 18:05 .
drwxr-xr-x 24 root root 4096 mai 11 21:23 ..
drwxr-xr-x 28 paulm paulm 4096 mai 15 22:41 paulm
我的用户属于以下组:
paulm@paulm-serveur:~$ groups
paulm sys adm cdrom sudo audio dip video plugdev lpadmin pulse pulse-access sambashare _snips pulse-rt
我在脉冲配置上添加了一些修改:
/etc/pulse/daemon.conf
daemonize = yes
/etc/pulse/default.pa
load-module module-alsa-sink device=hw:1,7
load-module module-alsa-source device=hw:0,3
我的 asound.conf 是:
pcm.!default {
type pulse
hint.description "Default Audio Device"
}
ctl.!default {
type pulse
}
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
我的声音输出是 Nvidia 卡上的 HDMI 端口。
我的配置中有什么遗漏或似乎不合适的吗?
谢谢你的帮助,
问候,
76M保罗