PULSEAUDIO: Unable to connect: Connection refused

Scenario / Question:

Sound stops working and I get the error PULSEAUDIO: Unable to connect: Connection refused

Solution / Answer:

Find out if anything is blocking sound, kill the processes and restart pulseaudio

Blocking Sound:

Run the command to see what processes are using sound:

# fuser -v /dev/snd/* /dev/dsp*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  admin      3686 F.... mixer_applet2
/dev/snd/pcmC0D0p:   admin      4677 F...m npviewer.bin

Kill the processes listed:

# kill 3686
# kill 4677

Restart Pulse Audio:

To restart pulse audio run the following command:

# pulseaudio -k ; pulseaudio -D --log-target=syslog
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
Fabio Milano has written 79 articles for us. Fabio Milano is a certified RHCE, MCP, and CFOI. He runs an IT consulting and services company called RDS Support inc. Website:http://www.rdssupport.com
The information provided is for educational purposes only. All content including links and comments is provided "as is" with no warranty, expressed or implied. Use is at your own risk and you are solely responsible for what you do with it.

2 Comments so far

  1. Alexander on December 7th, 2010

    The above solution appeared just OK. Thanks!
    The only difference is as follows:

    [root@lan108 ~]# pulseaudio -k
    E: main.c: Failed to kill daemon: No such process
    [root@lan108 ~]# ps -e|grep pulse
    3003 ? 00:00:09 pulseaudio
    [root@lan108 ~]# kill -15 3003
    [alex@lan108 ~]$ pulseaudio -D –log-target=syslog
    [alex@lan108 ~]$ gmixer
    (here unmute and ajust volume)
    [alex@lan108 ~]$ aplay /root/build/installed/xfce-4.6.1/orage-4.6.1/sounds/Wall_c.wav

  2. Mitchell on April 19th, 2011

    Thank you Fabio!
    Cannot understand how I lost sound, OpenSuse 11.2.
    It worked after I added asound.conf and started Pulsaudio.

    Mitchell

Leave a reply