[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: alsaplayer does not work as normal user



steef wrote:
> Jose Roberto B. de A. Monteiro wrote:
>> Hello list,
>>
>> I was with my sound (alsa) work perfectly on my laptop, but for an
>> unremembered reason I ran alsoconf as root. It causes the strange
>> behavior of alsplayer, aplay, etc., to stop working for normal users.
>> They only run for root. I checked groups and permissions, and it seems
>> ok. All users are in group audio, as well as related devices and proc
>> files. I do not want to install all the system again, so I wonder if
>> anyone has any idea of what is happening... If I run aplay, for example,
>> I get the following error message:
>>
>> ~ $ aplay wavs/scieh.wav
>> ALSA lib confmisc.c:769:(parse_card) cannot find card ''
>> ALSA lib conf.c:3510:(_snd_config_evaluate) function
>> snd_func_card_driver returned error: No such device
>> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
>> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat
>> returned error: No such device
>> ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
>> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
>> returned error: No such device
>> ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
>> ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default
>> aplay: main:545: audio open error: No such device
>>
>> The wierd thing is that as root, I get no error and the sound is played
>> perfectly.
>>
>> Also, sound in skype was ok, but now, it does not work too.
>>
>> My lspci | grep -i audio:
>>
>> 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
>> Definition Audio Controller (rev 02)
>>
>> # lsmod | grep snd
>> snd_hda_intel         239160  1
>> snd_pcm_oss            39200  0
>> snd_mixer_oss          15424  1 snd_pcm_oss
>> snd_pcm                72324  2 snd_hda_intel,snd_pcm_oss
>> snd_timer              21028  1 snd_pcm
>> snd                    48324  8
>> snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
>> soundcore               7520  1 snd
>> snd_page_alloc          9512  2 snd_hda_intel,snd_pcm
>>
>> Any idea?
>>
>>
>>   
> did you register yourself as audio_user in /etc/group?
>
> steef
>
>
I am in audio group, following /etc/group:

audio:x:29:jordeam

Is that ok? Or the correct group is audio_user? I believe the line
above, in /etc/group, was generated by users-admin.

And, ls -l for:

# ls -l /dev/audio /dev/dsp /dev/mixer
crw-rw---- 1 root audio 14, 4 2007-11-05 14:40 /dev/audio
crw-rw---- 1 root audio 14, 3 2007-11-05 14:40 /dev/dsp
crw-rw---- 1 root audio 14, 0 2007-11-05 14:40 /dev/mixer

# ls -l /proc/asound/
total 0
dr-xr-xr-x 5 root root 0 2007-11-05 14:48 card0
-r--r--r-- 1 root root 0 2007-11-05 14:48 cards
-r--r--r-- 1 root root 0 2007-11-05 14:48 devices
lrwxrwxrwx 1 root root 5 2007-11-05 14:48 Intel -> card0
-r--r--r-- 1 root root 0 2007-11-05 14:48 modules
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 oss
-r--r--r-- 1 root root 0 2007-11-05 14:48 pcm
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 seq
-r--r--r-- 1 root root 0 2007-11-05 14:48 timers
-r--r--r-- 1 root root 0 2007-11-05 14:48 version
ookla:/home/betoes# ls -l /proc/asound/ -R
/proc/asound/:
total 0
dr-xr-xr-x 5 root root 0 2007-11-05 14:48 card0
-r--r--r-- 1 root root 0 2007-11-05 14:48 cards
-r--r--r-- 1 root root 0 2007-11-05 14:48 devices
lrwxrwxrwx 1 root root 5 2007-11-05 14:48 Intel -> card0
-r--r--r-- 1 root root 0 2007-11-05 14:48 modules
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 oss
-r--r--r-- 1 root root 0 2007-11-05 14:48 pcm
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 seq
-r--r--r-- 1 root root 0 2007-11-05 14:48 timers
-r--r--r-- 1 root root 0 2007-11-05 14:48 version

/proc/asound/card0:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 codec#0
-r--r--r-- 1 root root 0 2007-11-05 14:48 id
-rw-r--r-- 1 root root 0 2007-11-05 14:48 oss_mixer
dr-xr-xr-x 3 root root 0 2007-11-05 14:48 pcm0c
dr-xr-xr-x 3 root root 0 2007-11-05 14:48 pcm0p
dr-xr-xr-x 3 root root 0 2007-11-05 14:48 pcm1p

/proc/asound/card0/pcm0c:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 info
-rw-r--r-- 1 root root 0 2007-11-05 14:48 oss
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 sub0

/proc/asound/card0/pcm0c/sub0:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 hw_params
-r--r--r-- 1 root root 0 2007-11-05 14:48 info
-rw-r--r-- 1 root root 0 2007-11-05 14:48 prealloc
-r--r--r-- 1 root root 0 2007-11-05 14:48 prealloc_max
-r--r--r-- 1 root root 0 2007-11-05 14:48 status
-r--r--r-- 1 root root 0 2007-11-05 14:48 sw_params

/proc/asound/card0/pcm0p:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 info
-rw-r--r-- 1 root root 0 2007-11-05 14:48 oss
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 sub0

/proc/asound/card0/pcm0p/sub0:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 hw_params
-r--r--r-- 1 root root 0 2007-11-05 14:48 info
-rw-r--r-- 1 root root 0 2007-11-05 14:48 prealloc
-r--r--r-- 1 root root 0 2007-11-05 14:48 prealloc_max
-r--r--r-- 1 root root 0 2007-11-05 14:48 status
-r--r--r-- 1 root root 0 2007-11-05 14:48 sw_params

/proc/asound/card0/pcm1p:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 info
-rw-r--r-- 1 root root 0 2007-11-05 14:48 oss
dr-xr-xr-x 2 root root 0 2007-11-05 14:48 sub0

/proc/asound/card0/pcm1p/sub0:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 hw_params
-r--r--r-- 1 root root 0 2007-11-05 14:48 info
-rw-r--r-- 1 root root 0 2007-11-05 14:48 prealloc
-r--r--r-- 1 root root 0 2007-11-05 14:48 prealloc_max
-r--r--r-- 1 root root 0 2007-11-05 14:48 status
-r--r--r-- 1 root root 0 2007-11-05 14:48 sw_params

/proc/asound/oss:
total 0
-r--r--r-- 1 root root 0 2007-11-05 14:48 devices
-r--r--r-- 1 root root 0 2007-11-05 14:48 sndstat

/proc/asound/seq:
total 0

Ok, stuff in /proc are root group, but I believe it is ok.

Also, if I install all the system, the alsa will work fine, but if I run
alsaconf, this error will happen again. I did it once :) but I do not
want to reinstall all system again. I would prefer to find a
"scientific" explanation for this behavior :)

BTW I am using lenny, with alsa 1.0.14.

Regards







Reply to: