[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with 6.5rc1
From: |
Lars Bjørndal |
Subject: |
Problem with 6.5rc1 |
Date: |
Fri, 30 Nov 2007 10:26:24 +0100 |
Halim Sahin <halim.sahin at t-online.de> writes:
> Hi,
> On Mi, Nov 28, 2007 at 03:36:01 +0100, Lars Bj?rndal wrote:
>>
>> At last I was able to start SD as a SD user. spd-say works. However,
>> logging in as lrs, and doing mplayer url, still gives:
>>
>> [AO_ALSA] alsa-lib: pcm_dmix.c:831:(snd_pcm_dmix_open) unable to
>> create IPC semaphore
>> [AO_ALSA] Playback open error: Permission denied
>
> Try to start several mplayers without starting sd and check if that
> works on your machine.
> Afaik the problem you mentioned is a alsa configuration problem.
> Have a look to
> /usr/share/alsa/cards
> If you can find the problem copy the file to /etc/asound.conf.
>
> I had the same here while trying the pulseaudio stuff with my onboard
> soundcard.
> onfigurings such alsa thing is not easy and I did not want to spent more
> time for this because I have a sblive soundcard wich works fine for me.
>
> Good luck.
> Halim
>
>
>> Output of ls -al /dev/audio, no gives
>>
>> crw-rw-rw-+ 1 root audio 14, 4 2007-11-28 11:11 /dev/audio
>>
>> I don't want to run mplayer with sudo...
>>
>> BTW: I get an error message when starting the script:
>>
>> Starting speech-dispatcher: Couldnt get a file descriptor referring to
>> the console. The startup script now looks like:
>>
>> #!/bin/bash
>> #
>> . /etc/init.d/functions
>>
>> test -x /usr/bin/speech-dispatcher || exit 0
>>
>> RETVAL=0
>> prog="speech-dispatcher"
>>
>> start() {
>> echo -n $"Starting $prog: "
>> daemon --user speech-dispatcher --pidfile
>> /var/run/speech-dispatcher/sd.pid /usr/bin/speech-dispatcher -P
>> /var/run/speech-dispatcher/spd.pid
>> RETVAL=$?
>> [ $RETVAL -eq 0 ] && touch /var/lock/subsys/speech-dispatcher
>> echo
>> }
>> ...
>>
>> Lars
>> _______________________________________________
>> Speechd mailing list
>> Speechd at lists.freebsoft.org
>> http://lists.freebsoft.org/mailman/listinfo/speechd
>
> --
> Halim Sahin
> E-Mail:
> halim.sahin (at) t-online.de
I found the solution here: http://mpd.wikia.com/wiki/Configuration
I created a file /etc/asound.conf, with the following content:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0666 # mixing for all users
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.default {
type plug
slave.pcm "dmixer"
}
ctl.mixer0 {
type hw
card 0
}
Lars
Problem with 6.5rc1, Hynek Hanke, 2007/11/28
Problem with 6.5rc1, Jan Buchal, 2007/11/28