Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA + apulse: MPD running as mpd user blocks pulse
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
AaylaSecura
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 122

PostPosted: Tue Nov 11, 2014 8:23 pm    Post subject: ALSA + apulse: MPD running as mpd user blocks pulse Reply with quote

Greetings! I am using ALSA with dmix and apulse (for skype only). When I run MPD from the init.d script (as user 'mpd') it blocks sound from skype - skype gives an error:
Code:
ALSA lib /media/tmp/tmpfs/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm_dmix.c:989:(snd_pcm_dmix_open) unable to create IPC semaphore
[apulse] [error] do_connect_pcm, snd_pcm_open, Permission denied
[apulse] [error] do_connect_pcm, snd_pcm_open, Permission denied

and starts up, but there is no sound from it and it hangs (hangs as in shows me as online, but I cannot send or receive messages and also the skype process keeps running even after I quit skype, until I send it SIGKILL).
All other applications (firefox, mplayer, etc.) use ALSA and they play fine along side MPD.
When I run /usr/bin/mpd as my user, there is no such problem. I know that MPD using PulseAudio can block all other applications from playing when it's been started from the init.d script, but in my case MPD is using ALSA, so I don't think this should happen.
The relevant part of my mpd.conf is:
Code:
audio_output {
        type            "alsa"
        name            "ALSA sound card"
        mixer_type      "software" # tried with both software and Master
}

and my asound.conf is:
Code:
pcm.dmix51 {
   type dmix
   ipc_key 1024
   slave {
      pcm "hw:0,0"
      rate 48000
      channels 6
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}
pcm.dmix2 {
   type dmix
   ipc_key 1024
   slave {
      pcm "hw:0,0"
      rate 48000
      channels 2
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}
pcm.!default {
   type asym
   playback.pcm {
      type plug
      slave.pcm "dmix51"
   }
   capture.pcm {
      type plug
      slave.pcm "hw:2,0"
   }
}
pcm.duplicate {
   type plug
   slave.pcm "dmix51"
   slave.channels 6
   route_policy duplicate
}


Any ideas why it happens/how to fix or should I just stick to running MPD as my user?

P.S. I forgot to mention I'm using amd64 with app-emulation/emul-linux-x86-qtlibs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum