%general-entities; ]> $LastChangedBy$ $Date$ ALSA Utilities-&alsa-utils-version; ALSA Utilities Introduction to ALSA Utilities The ALSA Utilities package contains various utilities which are useful for controlling your sound card. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &alsa-utils-md5sum; Download size: &alsa-utils-size; Estimated disk space required: &alsa-utils-buildsize; Estimated build time: &alsa-utils-time; ALSA Utilities Dependencies Required Installation of ALSA Utilities 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 Configuring ALSA Utilities Config Files /etc/asound.state /etc/asound.state Configuration Information Use a bootscript to store the values at shutdown. alsa As the root user, install the init script /etc/rc.d/init.d/alsa included in the package. make install-alsa Note that all channels of your sound card are muted by default. You can use the alsamixer program from 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 while still the root user (after installing ALSA Utilities): touch /etc/asound.state && alsactl store The volumes will be restored using the saved settings by a dev.d handler script that will execute when the device is detected durring boot (when pluged in for USB devices). While still the root user, create the dev.d script with the following commands: install -d -m755 /etc/dev.d/snd && cat >> /etc/dev.d/snd/alsa.dev << "EOF" && #!/bin/sh -e DEV_BASENAME="${DEVNAME##*/}" N="${DEV_BASENAME#controlC}" case "$DEV_BASENAME" in controlC[0-7]) x=0 while [ $x -lt 20 ] do sleep 1 if [ -f /usr/sbin/alsactl ]; then /usr/sbin/alsactl restore $N exit 0 else if [ $x -eq 20 ]; then exit 1 fi fi done & ;; esac exit 0 EOF chmod 755 /etc/dev.d/snd/alsa.dev You may wish to do additional configuration on a per card basis. For example, if you wish to load soundfont banks into the first device (card0), use the following sample script: #!/bin/sh -e # Begin /etc/dev.d/snd/controlC0/asfxload.dev # Load GM8.sf2 for soundcard 0 /usr/bin/asfxload /usr/share/sounds/sf2/8mbgmsfx.sf2 -D "hw:0,2" # End /etc/dev.d/snd/controlC0/sfxload.dev Contents Installed Programs Installed Libraries Installed Directories aconnect, alsaconf, alsactl, alsamixer, amidi, amixer, aplay, aplaymidi, arecord, arecordmidi, aseqnet, aseqdump, iecset, and speaker-test None None Short Descriptions aconnect is a utility for connecting and disconnecting two existing ports in the ALSA sequencer system. aconnect alsaconf is a configuration tool which tries to detect the sound cards on your system and write a suitable configuration file for ALSA. alsaconf alsactl is used to control advanced settings for the ALSA sound card drivers. alsactl alsamixer is an ncurses-based mixer program for use with the ALSA sound card drivers. alsamixer amidi is used to read from and write to ALSA RawMIDI ports. amidi amixer allows command-line control of the mixers for the ALSA sound card drivers. amixer aplay is a command-line soundfile player for the ALSA sound card drivers. aplay aplaymidi is a command-line utility that plays the specified MIDI file(s) to one or more ALSA sequencer ports. aplaymidi arecord is a command-line soundfile recorder for the ALSA sound card drivers. arecord arecordmidi is a command-line utility that records a standard MIDI file from one or more ALSA sequencer ports. arecordmidi aseqdump is a command-line utility that prints the sequencer events it receives as text. aseqdump aseqnet is an ALSA sequencer client which sends and receives event packets over a network. aseqnet iecset is a small utility to set or dump the IEC958 (or so-called S/PDIF) status bits of the specified sound card via the ALSA control API. iecset speaker-test is a command-line speaker test tone generator for ALSA. speaker-test