[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alsa sound errors



2013/6/5 Andrei POPESCU <andreimpopescu@gmail.com>
On Ma, 04 iun 13, 22:50:35, Marc Shapiro wrote:
>
> So I swiched over to my wife's login and did the same thing:
>
>  play /home/marc/public_html/footpain/media/montoya.wav
> ALSA lib pcm_dmix.c:985:(snd_pcm_dmix_open) unable to create IPC semaphore
> play FAIL formats: can't open output file `default': snd_pcm_open
> error: Permission denied
>
> As you can see, it failed.  Can anyone tell me just what is failing
> and how to correct it.  My first thought was that it was a
> permissions problem and perhaps she needed to be added to the
> 'audio' group, or some such, as she is only in her own group.  But
> then I checked my daughter's account.  She is also only in her own
> group; not in 'audio' or anything else.  So that ruled out that
> solution.

Not necessarily. The desktop environment might be using some *Kit to
allow her to play audio. This may not apply to console applications.

> The error says 'Permission denied" however, so it is some
> kind of permissions problem, I just don't know what.

Do try adding here to group audio and see if that helps.

It's not a user level permission problem, he should use ipc_key in .asoundrc if the soundcard is shared. 
Indeed I bet that if he reboot the system and login with his wife login everything will work just fine, problem arises when he "switches" from another account, no matter which user he logs in.

[quote]
ipc_key specfies the unique IPC key in integer. This number must be unique for each different dmix definition, since the shared memory is created with this key number. Whenipc_key_add_uid is set true, the uid value is added to the value set in ipc_key. This will avoid the confliction of the same IPC key with different users concurrently.
[/quote]


Reply to: