You are not logged in.

#1 2006-03-09 01:15:19

otakar
Member
From: Charles University, Prague, Cz
Registered: 2006-01-14
Posts: 15

ALSA won't work for normal user [solved]

hello archers!
alsa on my arch box doesn't work for normal user, just for root. when i attempt to run ogle, it gives this error:

ALSA lib pcm_dmix.c:1102:(_snd_pcm_dmix_open) The field ipc_gid must be a valid group (create group audio)
ERROR[ogle_audio]: Opening alsa pcm device 'default': Invalid argument
FATAL[ogle_audio]: failed opening the alsa audio driver at default

error in the first line accurs even when i attempt to open audio tab in winecfg. googling this error didn't help me. xmms with alsa output doesn't seem to work too giving the same error, it works just with oss output.

hmm, and YES i DO HAVE audio group, and my user IS member of this group.

[root@otovo /]# ls -l  /dev/sound/
total 0
crw-rw----  1 root audio 14, 12 2006-03-09 01:37 adsp
crw-rw----  1 root audio 14,  4 2006-03-09 01:37 audio
crw-rw----  1 root audio 14, 20 2006-03-09 01:37 audio1
crw-rw----  1 root audio 14,  3 2006-03-09 01:37 dsp
crw-rw----  1 root audio 14, 19 2006-03-09 01:37 dsp1
crw-rw----  1 root audio 14,  0 2006-03-09 01:37 mixer
crw-rw----  1 root audio 14, 16 2006-03-09 01:37 mixer1
crw-rw----  1 root audio 14,  1 2006-03-09 01:37 sequencer
crw-rw----  1 root audio 14,  8 2006-03-09 01:37 sequencer2

can anyone help me? or should i provide more information?
thanx & greetings
ota

Offline

#2 2006-03-09 01:29:11

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: ALSA won't work for normal user [solved]

hmm why it does complain about missing group ?
what is the output of

groups

??

if the output didn't include audio, take a look at /etc/group do u have an audio entry there?

Offline

#3 2006-03-09 10:37:25

otakar
Member
From: Charles University, Prague, Cz
Registered: 2006-01-14
Posts: 15

Re: ALSA won't work for normal user [solved]

I've found it!
groups run under user gave just gids of groups, whilst under root it gave proper names. so i took look at /etc/group and here is the problem :shock:

[root@otovo etc]# ls -l group
-rw-------  1 root root 427 2006-03-09 01:32 group

i've changed permissions to a+r and it's working.
thanks Gandalf, you've helped to save the Middleearth again big_smile.
ota

Offline

#4 2006-03-09 13:27:05

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: ALSA won't work for normal user [solved]

LOL @ Middleearth lol lol lol

You're welcome smile

Offline

Board footer

Powered by FluxBB