View previous topic :: View next topic |
Author |
Message |
d0nk n00b
Joined: 05 Jun 2005 Posts: 8 Location: 127.0.0.1
|
Posted: Thu Jun 09, 2005 1:14 am Post subject: Alsa permissions... |
|
|
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 |
|
|
/dev/random l33t
Joined: 26 Nov 2004 Posts: 704 Location: Austin, Texas, USA
|
Posted: Thu Jun 09, 2005 4:55 am Post subject: |
|
|
What's the output of ls -l /dev/sound |
|
Back to top |
|
|
luctor n00b
Joined: 10 Sep 2004 Posts: 8
|
Posted: Thu Jun 09, 2005 9:02 am Post subject: |
|
|
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 |
|
|
d0nk n00b
Joined: 05 Jun 2005 Posts: 8 Location: 127.0.0.1
|
Posted: Thu Jun 09, 2005 3:03 pm Post subject: |
|
|
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 |
|
|
/dev/random l33t
Joined: 26 Nov 2004 Posts: 704 Location: Austin, Texas, USA
|
Posted: Thu Jun 09, 2005 5:27 pm Post subject: |
|
|
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 |
|
|
|