On Fri, 16 Sep 2011 19:30:58 +0100 Matthew Burgess <matt...@linuxfromscratch.org> wrote: > > And, as mentioned before, you want to run the alsactl restore stuff on > device discovery in order to support hot pluggable sound devices. If > it's done as a one-shot bootscript, manual configuration would be needed > if you plugged in a sound device after boot. >
Hot plugging a sound device is a corner case that is easily covered with a udev rule. The udev rule would fail during boot if /usr is on a separate partition but a boot script that runs alsactl restore after /usr is mounted would work. Why not have the best of both worlds; a boot script to set sound levels and a udev rule to cover hot plugged devices? Incidentally I used to use an amplifier with a usb sound card in it. This udev rule used to reset the sound levels if the amplifier was turned on after boot: ACTION=="add", DRIVERS=="snd-usb-audio", RUN+="/usr/bin/alsactl restore %n" Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page