udev-034-2, modules are in loading state (sometines)

Matias Féliciano feliciano.matias at free.fr
Sun Oct 10 07:54:57 UTC 2004


I use this file to restore the mixer sitting of the sound cards :
cat /etc/dev.d/sound/alsa.dev
        #!/bin/sh
        if [ "$ACTION" != "add" ] ; then
            exit
        fi
        card=`echo $DEVPATH | sed -n -e "s/^\/class\/sound\/controlC\([[:digit:]]\+\)\$/\1/p"`
        if [ $card ] && [ -x /usr/sbin/alsactl ] ; then
            /usr/sbin/alsactl restore $card > /dev/null 2>&1
        fi

This works nice with udev-032-10 but not with udev-034-2.

At the line "/usr/sbin/alsactl restore $card" the modules is in loading
state.

Example :
Add traces in /etc/dev.d/sound/alsa.dev :
        /usr/bin/logger -t $(basename $0)"[$$]" `grep ^snd_via82xx /proc/modules`
        /usr/bin/logger -t $(basename $0)"[$$]" `/usr/sbin/alsactl restore $card 2>&1`

Load snd-via82xx module.

From rom syslog :
        snd_via82xx 23515 1 - Loading 0xe08b2000
        /usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such device

More "interesting" (and ugly), add "sleep 5" :
	sleep 5
        /usr/bin/logger -t $(basename $0)"[$$]" `grep ^snd_via82xx /proc/modules`
        /usr/bin/logger -t $(basename $0)"[$$]" `/usr/sbin/alsactl restore $card 2>&1`

Load snd-via82xx module.

From rom syslog :
        snd_via82xx 23493 0 - Live 0xe08b2000

Now this works "as expected".

This is a bug or normal ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20041010/e157fa88/attachment.bin 


More information about the test mailing list