You are not logged in.

#1 2010-07-15 16:43:36

itisteve
Member
Registered: 2010-07-15
Posts: 24

[SOLVED] Sound works... as root only!

If I run a browser through sudo then the sound from say, youtube, plays perfectly fine. However, when it is run without sudo I get this stuff endlessly pumped to my console:

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_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:4154:(_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:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Is there any simple way to stop this from happening?

Cheers,

Last edited by itisteve (2010-07-15 17:26:35)

Offline

#2 2010-07-15 16:55:58

ablepharus
Member
From: Berlin
Registered: 2010-05-23
Posts: 129

Re: [SOLVED] Sound works... as root only!

Is this problem only in browser?

Offline

#3 2010-07-15 16:56:40

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] Sound works... as root only!

Is your user a member of the audio group?

Offline

#4 2010-07-15 17:17:15

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Sound works... as root only!

Did you configure alsamixer as root or as your user.

You need to do is as yourself. Its mentioned in the beginners guide as well.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2010-07-15 17:26:21

itisteve
Member
Registered: 2010-07-15
Posts: 24

Re: [SOLVED] Sound works... as root only!

Ah, I completely missed that step >.>

Thankyou for your time guys.

Offline

#6 2010-07-15 18:47:11

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Sound works... as root only!

itisteve wrote:

Ah, I completely missed that step >.>

Thankyou for your time guys.

which one? adding yourself to audio or the alsamixer step wink


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2010-07-16 07:37:55

Calmatory
Member
Registered: 2008-05-25
Posts: 15

Re: [SOLVED] Sound works... as root only!

I had the same issue few weeks ago, I hadn't added the user to the audio group and the exact same behavior happened. As normal user there were no sound devices detected, and thus it wasn't possible to play any sounds.

Configuring the sound with alsamixer shouldn't change the user privileges to the ALSA. However, not having the user in audio group would most probably cause this.

Offline

Board footer

Powered by FluxBB