Error Opening Pcm Device Default Connection Refused
Contents |
Ubuntu etc.) are switching to use PulseAudio by default, and also because nothing is perfect (except freshly made doughnuts!) this page will lead you through a few tests and processes to check your pulseaudio installation is working properly. Is Pulseaudio running? This is the software equivalent of pa_context_connect() failed: connection refused the "is it turned on at the wall" question! You can run the command ps aux pulseaudio alsa | grep pulseaudio to see if there is a pulseaudio process currently running (ignore the grep command if it shows up in the list
Restart Pulseaudio
returned!). If pulseaudio is not running, you can start it by running pulseaudio -D, although it is probably better to understand why it is not running. Different distributions start pulseaudio in different ways, and, as of v0.9.11, pulseaudio will actually autospawn itself whenever anything needs to make use of it. Typically, to start pulse at X11 login and keep it running (so it can detect removable, bluetooth and network sound devices), an XDG .desktop file is used to run the script start-pulseaudio-x11. Please ask your distro support group for more info if you are interested in the startup procedure. Pulse is running but I hear no sound OK, so we know that pulseaudio is running, but when you play something, you don't hear anything. Let's start with the basics: If you have a desktop computer, are your speakers plugged in correctly to the (usually) green socket? Do the speakers still work? (try plugging in your mp3 player to test!). Do you have multiple sound cards, and have you tried the speakers in all of them to make sure you're using the device you think you are? I know the above may be simple and obvious sounding, but please do check this and don't skip this check as it can (and does) happen to the best of us! OK, so we know sound is physically capable of coming out of our speakers. Now you should run pavucontrol and check under the "Output Devices" tab to see if your sound hardware is listed there. If pulseaudio cannot open the hardware device on startup (e.g. due to the device being "hogged" by some other application), then it will automatically load a "NULL sink" for you. This appears to your applications like everything is working correctly but will silently discard all the audio data. This is done because many applications do not like it when sound hardware is not present in pulseaudio. If you find that the "Output Devices" tab shows only the automatic NULL sink, you need to debug what other applications are using your sound hardware on startup or find out why pulse cannot open your hardware. Running fuser /dev/snd/* may give some clues as to what appl
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia Software [SOLVED] sound, mplayer Having https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Users/Troubleshooting/ an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 7 of 7 Thread: sound, mplayer Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 1st, 2010 #1 cucuru https://ubuntuforums.org/showthread.php?t=1418908 View Profile View Forum Posts Private Message Just Give Me the Beans! Join Date Dec 2009 Beans 59 sound, mplayer hello, I cant understand what is happen, when I tried to execute a mp3 file: Code: admin@wimax-server:/usr/local/movies$ mplayer sample.mp3 MPlayer UNKNOWN-4.4.1 (C) 2000-2009 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing sample.mp3. Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [pulse] working around probably broken pause functionality, see http://www.pulseaudio.org/ticket/440 AO: [pulse] Init failed: Connection refused Failed to initialize audio driver 'pulse' [AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0' [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory [AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory [AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name [AO_ALSA] alsa-lib:
Bug #228487: can only have one audio output program working at a time. Edit Remove 46 This bug https://bugs.launchpad.net/bugs/207312 affects 4 people Affects Status Importance Assigned to Milestone pulseaudio http://forums.fedoraforum.org/archive/index.php/t-178735.html (Fedora) Edit New Undecided Unassigned Edit pulseaudio (Ubuntu) Edit Triaged Undecided Unassigned Edit Nominated for Jaunty by Amr El-Sharnoby Nominated for Karmic by Amr El-Sharnoby Also affects project (?) Also affects distribution/package Nominate for series Bug Description My sound always worked, including connection refused after the pulseaudio transition in Hardy. gstreamer-properties sets the default out- and input to pulseaudio, and has done so, sucessfully, for quite a while. After running a full-upgrade on Monday (I had performed none since Friday morning), I noticed that totem-gstreamer had no sound. Other video players that support pulseaudio (xine, mplayer) error opening pcm have no sound when using pulseaudio either. When I run the test in gstreamer-properties, I see the error message from the subject. When setting gstreamer to Alsa, the test succeeds; xine and mplayer sound is also fine when using alsa. There are errors in the logs, grep pulse /var/log/* gives: /var/log/syslog.0:Mar 25 21:26:57 chronic pulseaudio[16432]: alsa-util.c: Error opening PCM device hw:0: Device or resource busy /var/log/syslog.0:Mar 25 21:26:57 chronic pulseaudio[16432]: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0"): initialization failed. /var/log/user.log:Mar 25 21:26:57 chronic pulseaudio[16432]: alsa-util.c: Error opening PCM device hw:0: Device or resource busy /var/log/user.log:Mar 25 21:26:57 chronic pulseaudio[16432]: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0"): initialization failed. /var/log/user.log.0:Mar 19 00:02:07 chronic pulseaudio[6789]: shm.c: shm_open() failed: No such file or directory /var/log/user.log.0:Mar 19 00:02:07 chronic pulseaudio[6789]: pstream.c: Failed to import memory block. /var/log/user.log.0:Mar 19 18:34:46 chronic pulseaudio[8145]: shm.c: shm_open() failed: No such file or directory /var/log/user.log.0:Mar 19 18:34:46 chronic pul
I was trying to get pulseaudio to work with ALSA. I tried the intstruction on the pulseaudio wiki, this page: http://bertrandbenoit.blogspot.com/2007/11/fix-setup-of-pulseaudio-under-gnufedora.html , and idiosync's howto on this forum. Somewhere in the middle of that I messed up the basic ALSA setup and now I can't get alsa to work at all, with or with out pulseaudio. I know that the soundcard still works because OSS still works in amarok and kaffeine. Relevant info: Output of alsamixer *** PULSEAUDIO: Unable to connect: Connection refused alsamixer: function snd_ctl_open failed for default: Connection refused Output of pulseaudio (as normal user) W: polkit.c: Failed to show grant dialog: Unable to lookup exe for caller W: polkit.c: PolicyKit responded with 'auth_admin_keep_always' N: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges: N: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again. N: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user. W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM dmix E: alsa-util.c: Error opening PCM device dmix: No such device E: module.c: Failed to load module "module-alsa-sink" (argument: "sink_name=output device=dmix"): initialization failed. E: main.c: daemon/main.c : Fatal error. Default sink name (output) does not exist in name register. Output of pulseaudio -vv (as root) I: core-util.c: Successfully gained nice level -11. W: main.c: This program is not intended to be run a