You are not logged in.

#1 2009-02-02 01:36:44

dbbolton
Member
Registered: 2008-10-08
Posts: 41

Only root can play sounds

If I run

aplay /usr/share/sounds/alsa/Front_Center.wav

as root it works, but as a regular user I get this:

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_referreturned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:590: audio open error: No such file or directory

Did I miss something in configuring ALSA?

Offline

#2 2009-02-02 01:44:25

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Only root can play sounds

Are you part of the audio group?


neutral

Offline

#3 2009-02-02 01:48:16

dbbolton
Member
Registered: 2008-10-08
Posts: 41

Re: Only root can play sounds

sand_man wrote:

Are you part of the audio group?

I did this:

 usermod -a -G audio daniel

But I'm still geting the same output from aplay.

Last edited by dbbolton (2009-02-02 01:50:01)

Offline

#4 2009-02-02 01:49:40

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Only root can play sounds

edit:
never mind:D

Last edited by sand_man (2009-02-02 01:51:18)


neutral

Offline

#5 2009-02-02 01:51:15

dbbolton
Member
Registered: 2008-10-08
Posts: 41

Re: Only root can play sounds

sand_man wrote:

ahh no
try this
# gpasswd -a daniel audio

Still the same output from aplay.

Offline

#6 2009-02-02 01:52:00

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Only root can play sounds

sorry my bad. But if you have just added yourself to a group you need to log out and back in for it to take effect


neutral

Offline

#7 2009-02-02 02:26:05

dbbolton
Member
Registered: 2008-10-08
Posts: 41

Re: Only root can play sounds

sand_man wrote:

sorry my bad. But if you have just added yourself to a group you need to log out and back in for it to take effect

It seems to be working now. Thanks

Offline

Board footer

Powered by FluxBB