Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa permissions...
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
d0nk
n00b
n00b


Joined: 05 Jun 2005
Posts: 8
Location: 127.0.0.1

PostPosted: Thu Jun 09, 2005 1:14 am    Post subject: Alsa permissions... Reply with quote

So, I finally get alsa to work by compiling the card and alsa into the kernel, and not as modules. Now my problem is, as a non root user, I can not play any sounds. Both aplay and alsamixer give me errors.

aplay:
Code:

ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:533: audio open error: Permission denied


alsamixer:
Code:

alsamixer: function snd_ctl_open failed for default: Permission denied


I can use both alsamixer and aplay as root, but would like to have sound when I am not root (no point in sound if you rarely use root!)

edit: I AM in audio.
_________________
d0nk
Protium IRC
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Jun 09, 2005 4:55 am    Post subject: Reply with quote

What's the output of ls -l /dev/sound
Back to top
View user's profile Send private message
luctor
n00b
n00b


Joined: 10 Sep 2004
Posts: 8

PostPosted: Thu Jun 09, 2005 9:02 am    Post subject: Reply with quote

try adding your self to the audio group
check the output of id
Code:
 id
uid=1000(rob) gid=100(users) groepen=5(tty),10(wheel),18(audio),85(usb),100(users),250(portage),441(shutdown)


Luctor
_________________
luctor et ejecto - I struggle and bail out
Back to top
View user's profile Send private message
d0nk
n00b
n00b


Joined: 05 Jun 2005
Posts: 8
Location: 127.0.0.1

PostPosted: Thu Jun 09, 2005 3:03 pm    Post subject: Reply with quote

I'm already in audio. I'll post ls -l /dev/sound when i get home (i'm at school at the moment).

I did get it "sort of" working (dont think its how it should be setup?) by chmodding /dev/snd/ and /dev/snd/* to 777
_________________
d0nk
Protium IRC
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Jun 09, 2005 5:27 pm    Post subject: Reply with quote

d0nk wrote:
I'm already in audio. I'll post ls -l /dev/sound when i get home (i'm at school at the moment).

I did get it "sort of" working (dont think its how it should be setup?) by chmodding /dev/snd/ and /dev/snd/* to 777

Well there really is nothing wrong with doing that. To make the changes permanent edit
Code:

<console>  0660 <sound>      0600 root.audio

That line in /etc/security/console.perms to something like:
Code:

<console>  0666 <sound>      0600 root.audio

You don't need to give it executable permissions to 0666 is good enough. see man console.perms for more details.
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