Results 1 to 7 of 7
hi.
I recently installed alsa but it's not working. this is the output i get from xmms when i open it and try to play an mp3 through alsa:
Code:
...
- 12-11-2005 #1
alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied
hi.
I recently installed alsa but it's not working. this is the output i get from xmms when i open it and try to play an mp3 through alsa:obviously it's a problem with the permissions but i don't know what i need to chmod. I am working under the package user ideology in which each package is compiled and installed as it's own user. it provides added security at the cost of a few permission problems, which usually are taken care of easily.Code:** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied 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 ** WARNING **: alsa_setup(): Failed to open pcm device (default): Permission denied
If someone could tell me what file(s) i need to change permissions of, it would be greatly appreciated.
thanksAvatar from xkcd.com, a hilarious computer related webcomic.
- 12-11-2005 #2
Check the relevant device files in /dev and /dev/snd . Most linux distributions have a group for accessing audio devices. Joining that group might be the easy solution.
I\'m so tired .....
#200472
- 12-19-2005 #3
fixed it.
I had to add GROUP="audio" to all alsa devices in /etc/udev/rules.d/50-udev.rules
and also use the correct mixer in xmms :SAvatar from xkcd.com, a hilarious computer related webcomic.
- 04-25-2006 #4Just Joined!
- Join Date
- Apr 2006
- Posts
- 1
i seem to have somewhat same problem. the only thing is my root & user1 can play sound. user2 somehow doesnt. user2 was created by me via useradd. user1 was created during installation.
i did the changes jpalfree suggested, but it still doesnt work for user2.
xmms <mp3 file> would result in
** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: No such device
ALSA lib confmisc.c:672
snd_func_card_driver) cannot find card '0'
..
..
..
** WARNING **: alsa_setup(): Failed to open pcm device (default): No such device
can anybody help?
- 04-25-2006 #5
Did you add your user to the "audio" group? That might be a simple solution.
If that's not it. It could be the xmms settings aren't set correctly. Log in as user1 and checkout the audio settings for xmms. Then compare them with user2's settings. That was partly my problem. I had to change hw:0 to hw:1 among other things.Avatar from xkcd.com, a hilarious computer related webcomic.
- 04-26-2006 #6Just Joined!
- Join Date
- Apr 2006
- Posts
- 1
thanks for the tips - this problem has also been baffling me for a while.
when I vnc to the machine I can run xmms as root but if I run it as my regular user it gives me the 'alsa_get_mixer(): Attaching to mixer hw:0 failed:' shtick.
Wierd thing is that if I go and log in at the actual physical machine (in Gnome) - then go back to xmms on my vnc session - suddenly no error - xmms plays fine under my regular user account !
What I really want to know is what does fedora do in that log in that makes xmms suddenly work running under my regular user user account ?
does it create some sort of temporary permissions or what ?
- 06-24-2010 #7Just Joined!
- Join Date
- Jun 2005
- Location
- Gratz, Pennsylvania, US
- Posts
- 1
SOLUTION:
fixed two related problems on a CentOS release 4.8 machine.Code:chmod -R a+rw /dev/{audio,dsp,midi,mixer,snd}
xmms error:
gnome-volume-control error:Code:WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied"
Code:Sorry, no mixer elements and/or devices found




