Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18234 - [udev] doesn't recognize audio card

Attached to Project: Arch Linux
Opened by manuele (oceans11) - Monday, 08 February 2010, 15:18 GMT
Last edited by Jan de Groot (JGC) - Monday, 08 February 2010, 23:53 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Udev 151-2 can't find my sound card

alsamixer says: "alsamixer can not find the device."
alsaconf recognizes it "intel8x0 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97"
(I can select it) but even saving the selection does not produce any effect.
remove and reinsert all the snd* modules produces only the noise of when the card is turned off / on.

Additional info:
* udev 151-2
* kernel 2.6.32.7 custom
* the user is in the audio group.
* downgrading to 146-2 resolves the problem
* mplayer debug output: Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
[JACK] cannot open server
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
[AO SDL] Unable to open audio: No available audio device

*ls /dev/dsp
crw-rw---- 1 root root 14, 3 8 feb 15:54 /dev/dsp
oceans11@nemesis ~ $ ls /dev/audio
crw-rw---- 1 root root 14, 4 8 feb 15:54 /dev/audio
oceans11@nemesis ~ $ ls /dev/
Display all 268 possibilities? (y or n)
oceans11@nemesis ~ $ ls /dev/snd/
totale 0
drwxr-xr-x 3 root root 240 8 feb 15:54 .
drwxr-xr-x 14 root root 5,3K 8 feb 15:54 ..
drwxr-xr-x 2 root root 60 8 feb 15:54 by-path
crw-rw---- 1 root root 116, 0 8 feb 15:54 controlC0
crw-rw---- 1 root root 116, 24 8 feb 15:54 pcmC0D0c
crw-rw---- 1 root root 116, 16 8 feb 15:54 pcmC0D0p
crw-rw---- 1 root root 116, 25 8 feb 15:54 pcmC0D1c
crw-rw---- 1 root root 116, 26 8 feb 15:54 pcmC0D2c
crw-rw---- 1 root root 116, 27 8 feb 15:54 pcmC0D3c
crw-rw---- 1 root root 116, 20 8 feb 15:54 pcmC0D4p
crw-rw---- 1 root root 116, 1 8 feb 15:54 seq
crw-rw---- 1 root root 116, 33 8 feb 15:54 timer

Steps to reproduce:
just boot with udev 151-2 installed.

Note: i don't know where to find other usefull informations.
Sorry for bad english
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 08 February 2010, 23:53 GMT
Reason for closing:  Not a bug
Additional comments about closing:  User configuration problem.
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 08 February 2010, 18:54 GMT
1) Ensure that do not have any older rule file. (sound devices files should be with the perms 0660 root:audio)
2) Ensure that have mounted /dev as tmpfs (in this way if consolekit is installed an you are logged via console, you can see a "+" (ACL) on perms, then does not need to be part of audio group.
3) Ensure that not have udev-compat installed if you kernel is >= 2.6.32
Comment by manuele (oceans11) - Monday, 08 February 2010, 19:40 GMT
2) mount says: "udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)"
3) no udev-compat installed

but 1) as you can see from my previous post, with udev 151, sound devices are owned by root:root and not root:audio. Where i can find rule files?
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 08 February 2010, 19:55 GMT
for x in /lib/udev/rules.d/* /etc/udev/rules.d/*; do pacman -Qo $x;done > /dev/null
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 08 February 2010, 20:03 GMT
if seems that all is clean, execute and attach the output of this command:

udevadm test $(udevadm info -q path -n /dev/dsp)
Comment by manuele (oceans11) - Monday, 08 February 2010, 22:56 GMT
/etc/udev/rules.d/50-udev-default.rules (and truly /etc/udev/rules.d/10-usb-printer.rules, too) is not own by any package, so I move it and reboot, now sound device seems to work right. Thank you man!

ps: however, if anyone needs it, i'll attach the 50-udev-default.rules.
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 08 February 2010, 23:27 GMT
No problem ;)
No /etc/udev/rules.d/50-udev-default.rules (this was your problem) was part of an old udev package. But warning /etc/udev/rules.d/10-usb-printer.rules looks like a custom udev rule file made by you.
Comment by manuele (oceans11) - Monday, 08 February 2010, 23:30 GMT
it seems so...thanks again

Loading...