系统发出声音但是pulseaudio访问被拒绝了

时间:2018-05-18 20:52:50

标签: ubuntu audio alsa pulseaudio pulse

我在使用PulseAudio时遇到了问题,而且因为很多天我都有些头疼... 我要在我的系统上发声,没有问题(firefox和Spotify都有效)但我在系统日志中遇到一些问题导致某些软件(在这种情况下剪断)无法加载。

命令'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端口。

我的配置中是否有任何遗漏或似乎不合适的内容?

感谢您的帮助,

此致

76MPaul

1 个答案:

答案 0 :(得分:0)

检查您的主目录权限。

使用

#sudo chown -R $USER:$USER /home/$USER

解决问题。