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

Re: udev and alsa



Matias Feliciano wrote:
udev-034-5 is out and is laking alsa support :
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=133535

So the sound setting is not restore at boot time.

It very easy to fix. Add this file (attached to the bug report):
/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

I ask to move this bug to udev but it's not done.

This bug, quite "popular", is in "Leave as NEW" state and not "Accept
bug".

The bug is not referenced in :
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=FC3BugWeekTracker
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=FC3BugWeekQA
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=YellowPad
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=FC3Target


Don't know, if it really belongs to udev.. but here is an extended script:#!/bin/sh


if [ "$ACTION" == "add" ] ; then
        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
elif [ "$ACTION" == "remove" ] ; then
        card=`echo $DEVPATH | sed -n -e "s/^\/class\/sound\/controlC\([[:digit:]]\+\)\$/\1/p"`
        if [ $card ] && [ -x /usr/sbin/alsactl ] ; then
                /usr/sbin/alsactl store $card > /dev/null 2>&1
        fi
fi


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