You are not logged in.
Pages: 1
ALSA lib pcm_dmix.c:862:(snd_pcm_dmix_open) unable to open slave
problems getting ao_driver_info
you may not have permission to the audio device
and my mpd.conf:
mixer_type "alsa"
mixer_device "dmix"
mixer_control "PCM"
ao_driver_options "dmixer"
Offline
Try setting up sound using Alsa
Mr Green
Offline
Yes I already set up alsa and oss, all the media player can share the soundcard, but mpd can't get started.
Offline
did you add mpd to daemons in rc.conf?
Mr Green
Offline
off cause i did.
I had used mpd for a long time before i install alsa-oss.
I tried all type of mixer_type in /etc/mpd.conf, but all failed.
Offline
The wiki says that dmixer can only be used by one user at a time. Maybe adding "ipc_key_add_uid 0" to asound.conf just before the slave section could help.
Offline
I did already add this line to my asound.conf
ipc_key_add_uid false
I ran mpd before every media players tomorrow, so mpd worked well, but others cant work.
That's why I use alsa-oss now.
But dont know why mpd failed to work with alsa.
Offline
I tried to start mpd with root, then I could only use audio(like xmms) under root account.
But when I set mpd to run with normal user by change user section in the mpd.conf, any other audio program was unable to use sound card, even did root.
i tried to start mpd by just type "mpd" in command line by a normal user, but it said I've no permission to use hardware:
bash-3.1$ mpd
ALSA lib pcm_direct.c:224:(make_local_socket) connect failed: : Invalid argument
ALSA lib pcm_dmix.c:894:(snd_pcm_dmix_open) unable to connect client
Now the problem is ,how can I run mpd as normal user? Because I did not do anything to me by adding the line
ipc_key_add_uid 0
before my alsa slave config.
Offline
So it works fine in root? Have you given your user accounts permission to use audio?
gpasswd -a username audio
You will need to completely log out & then log back in for it to take effect
And then it happened... a door opened to a world... rushing through the phone line like heroin through an addict's veins, an electronic pulse is sent out, a refuge from the day-to-day incompetencies is sought... a board is found.
"This is it... this is where I belong..."
Arch Linux x86_64 | LiCo #213644 | blog / configs
Offline
Yes, Im already in the audio group.
I think the problem now is why i get the following error when I run mpd as a normal user:
bash-3.1$ mpd
ALSA lib pcm_direct.c:224:(make_local_socket) connect failed: : Invalid argument
ALSA lib pcm_dmix.c:894:(snd_pcm_dmix_open) unable to connect client
Offline
what is your soundcard and what modules are loaded??
Offline
nforce c51g, intel_8x0
Offline
if that is the only sound module loaded, then you will have issues with dmix and pcm you may need to modprobe snd_pcm_oss
do you have alsa-oss intalled?
Offline
Yes, only When I logged as root, I can let mpd share oss with other media players.
Offline
Pages: 1