The ALSA Utilities package contains various utilities which are useful for controlling your sound card.
Download (HTTP): http://gd.tuwien.ac.at/opsys/linux/alsa/utils/alsa-utils-1.0.9a.tar.bz2
Download (FTP): ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.9a.tar.bz2
Download MD5 sum: d4b77e9fe0311772293e402fdd634ad2
Download size: 935 KB
Estimated disk space required: 5.9 MB
Estimated build time: 0.1 SBU
Install ALSA Utilities by running the following commands:
./configure && make
This package does not come with a test suite.
Now, as the root user:
make install
Use a bootscript to store the values at shutdown.
As the root user, install the init script /etc/rc.d/init.d/alsa included in the blfs-bootscripts-6.1 package.
make install-alsa
All channels of your sound card are muted by default. You can use the alsamixer program from the ALSA Utilities to change this.
The first time the dev.d script below is run, it will complain that there is no state in /etc/asound.state. You can prevent this by running the following commands as the root user:
touch /etc/asound.state && alsactl store
The volume settings will be restored from the saved state using a /etc/dev.d/ handler script that will execute when the device is detected during boot (or when plugged in for USB devices).
While still the root user, create the dev.d script with the following commands:
install -v -d -m755 /etc/dev.d/snd && cat > /etc/dev.d/snd/alsa.dev << "EOF" #!/bin/sh -e # This script is called by udevd when a change in a device is # detected, including initial detection upon bootup. # udevd sets the environment variables ACTION and DEVNAME. [ "$ACTION" = "add" ] || exit 0 DEV_BASENAME="${DEVNAME##*/}" N="${DEV_BASENAME#controlC}" case "$DEV_BASENAME" in controlC[0-7]) x=0 while [ $x -lt 20 ]; do # Wait up to 20 seconds for /usr to be mounted if necessary if [ -f /usr/sbin/alsactl ]; then /usr/sbin/alsactl restore $N exit 0 fi sleep 1 x=`expr $x + 1` done & # Put the while command in the background and continue ;; esac exit 0 EOF chmod -v 755 /etc/dev.d/snd/alsa.dev
Last updated on 2005-08-20 14:47:37 -0600