Second, I’m sure the startup would be better with systemd done properly. No Audio ( ALSA lib pulse.c:243:(pulseconnect) PulseAudio: Unable to connect: Access denied ) After installing XFCE or MATE as the default Desktop Enviroment all the sudden I lost all my audio. Jul 09 12:52:10 platypus pulseaudio2074: E: pulseaudio pid.c: Daemon already AO: pulse Init failed: Connection refused Failed to initialize audio. First, this is horrendous playback, it’s popping and skipping around in the track, it plays, but RPi needs some more adjustments to the nf to play back properly.
RUN echo "exit-idle-time = -1" > /etc/pulse/nfĬMD pulseaudio -start & while : do mplayer -ao pulse test.mp3 done
#Pulseaudio connection refused install#
Tested it with something like this: FROM resin/%%RESIN_MACHINE_NAME%%-debianĪpt-get install pulseaudio alsa-utils mplayer wget Connection failure: Connection refused pacontextconnect() failed: Connection refused Do you have any idea about how can i fix or even debug this I’m no expert, and it’s very difficult to find good info about PulseAudio on Windows. This particular issue I got fixed by adding exit-idle-time = -1 to /etc/pulse/nf, so it does not stop after the default 20s idle time. Thus it’s most likely configuration issue? I’m seen this error when pulseaudio is started manually, and then after some idle time it exited. I have a feeling that it means that pulseaudio is not actually running at the time you are running pactl. PULSEAUDIO: Unable to connect: Access denied aplay: main:545: audio open error: Connection refused This happens because pulseaudio requires authentication before accepting connections to prevent random people from playing audio on your computer.