Blame alsactl/alsactl.1

Packit Service a9274b
.TH ALSACTL 1 "07 May 2014"
Packit Service a9274b
.SH NAME
Packit Service a9274b
alsactl \- advanced controls for ALSA soundcard driver
Packit Service a9274b
Packit Service a9274b
.SH SYNOPSIS
Packit Service a9274b
Packit Service a9274b
\fBalsactl\fP [\fIoptions\fP] [\fIstore\fP|\fIrestore\fP|\fIinit\fP] <card # or id or device>
Packit Service a9274b
Packit Service a9274b
\fBalsactl\fP \fImonitor\fP <card # or id>
Packit Service a9274b
Packit Service a9274b
.SH DESCRIPTION
Packit Service a9274b
\fBalsactl\fP is used to control advanced settings for the ALSA
Packit Service a9274b
soundcard drivers. It supports multiple soundcards. If your card has
Packit Service a9274b
features that you can't seem to control from a mixer application,
Packit Service a9274b
you have come to the right place.
Packit Service a9274b
Packit Service a9274b
.SH COMMANDS
Packit Service a9274b
Packit Service a9274b
\fIstore\fP saves the current driver state for the selected soundcard
Packit Service a9274b
to the configuration file.
Packit Service a9274b
Packit Service a9274b
\fIrestore\fP loads driver state for the selected soundcard from the
Packit Service a9274b
configuration file. If restoring fails (eventually partly), the init
Packit Service a9274b
action is called.
Packit Service a9274b
Packit Service a9274b
\fInrestore\fP is like \fIrestore\fP, but it notifies also the daemon
Packit Service a9274b
to do new rescan for available soundcards.
Packit Service a9274b
Packit Service a9274b
\fIinit\fP tries to initialize all devices to a default state. If device
Packit Service a9274b
is not known, error code 99 is returned.
Packit Service a9274b
Packit Service a9274b
\fIdaemon\fP manages to save periodically the sound state.
Packit Service a9274b
Packit Service a9274b
\fIrdaemon\fP like \fIdaemon\fP but restore the sound state at first.
Packit Service a9274b
Packit Service a9274b
\fIkill\fP notifies the daemon to do the specified operation (quit,
Packit Service a9274b
rescan, save_and_quit).
Packit Service a9274b
Packit Service a9274b
\fImonitor\fP is for monitoring the events received from the given
Packit Service a9274b
control device.
Packit Service a9274b
Packit Service a9274b
If no soundcards are specified, setup for all cards will be saved,
Packit Service a9274b
loaded or monitored.
Packit Service a9274b
Packit Service a9274b
.SH OPTIONS
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-h, \-\-help\fP 
Packit Service a9274b
Help: show available flags and commands.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-d, \-\-debug\fP
Packit Service a9274b
Use debug mode: a bit more verbose.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-v, \-\-version\fP
Packit Service a9274b
Print alsactl version number.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-f, \-\-file\fP
Packit Service a9274b
Select the configuration file to use. The default is /var/lib/alsa/asound.state.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-l, \-\-lock\fP
Packit Service a9274b
Use the file locking to serialize the concurrent access to the state file (this
Packit Service a9274b
option is default for the global state file).
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-L, \-\-no-lock\fP
Packit Service a9274b
Do not use the file locking to serialize the concurrent access to the state
Packit Service a9274b
file (including the global state file).
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-O, \-\-lock-state-file\fP
Packit Service a9274b
Select the state lock file path.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-F, \-\-force\fP
Packit Service a9274b
Used with restore command.  Try to restore the matching control elements
Packit Service a9274b
as much as possible.  This option is set as default now.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-g, \-\-ignore\fP
Packit Service a9274b
Used with store and restore commands. Do not show 'No soundcards found'
Packit Service a9274b
and do not set an error exit code when soundcards are not installed.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-P, \-\-pedantic\fP
Packit Service a9274b
Used with restore command.  Don't restore mismatching control elements.
Packit Service a9274b
This option was the old default behavior.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-I, \-\-no\-init\-fallback\fP
Packit Service a9274b
Don't initialize cards if restore fails.  Since version 1.0.18,
Packit Service a9274b
\fBalsactl\fP tries to initialize the card with the restore operation
Packit Service a9274b
as default.  But this can cause incompatibility with the older version.
Packit Service a9274b
The caller may expect that the state won't be touched if no state file
Packit Service a9274b
exists.  This option takes the restore behavior back to the older
Packit Service a9274b
version by suppressing the initialization.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-r, \-\-runstate\fP
Packit Service a9274b
Save restore and init state to this file. The file will contain only errors.
Packit Service a9274b
Errors are appended with the soundcard id to the end of file.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-R, \-\-remove\fP
Packit Service a9274b
Remove runstate file at first.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-E, \-\-env\fP #=#
Packit Service a9274b
Set environment variable (useful for init action or you may override
Packit Service a9274b
ALSA_CONFIG_PATH to read different or optimized configuration - may be
Packit Service a9274b
useful for "boot" scripts).
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-i, \-\-initfile\fP
Packit Service a9274b
The configuration file for init. By default, PREFIX/share/alsa/init/00main
Packit Service a9274b
is used.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-p, \-\-period\fP
Packit Service a9274b
The store period in seconds for the daemon command.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-e, \-\-pid-file\fP
Packit Service a9274b
The pathname to store the process-id file in the HDB UUCP format (ASCII).
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-b, \-\-background\fP
Packit Service a9274b
Run the task in background.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-s, \-\-syslog\fP
Packit Service a9274b
Use syslog for messages.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-n, \-\-nice\fP
Packit Service a9274b
Set the process priority (see 'man nice')
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-c, \-\-sched-idle\fP
Packit Service a9274b
Set the process scheduling policy to idle (SCHED_IDLE).
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-D, \-\-ucm-defaults\fP
Packit Service a9274b
Execute also the 'defaults' section from the UCM configuration. The standard
Packit Service a9274b
behaviour is to execute only 'once' section.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fI\-U, \-\-no-ucm\fP
Packit Service a9274b
Skip the UCM init even if available. It may be useful for the test the
Packit Service a9274b
legacy init configuration.
Packit Service a9274b
Packit Service a9274b
.SH FILES
Packit Service a9274b
\fI/var/lib/alsa/asound.state\fP (or whatever file you specify with the
Packit Service a9274b
\fB\-f\fP flag) is used to store current settings for your
Packit Service a9274b
soundcards. The settings include all the usual soundcard mixer
Packit Service a9274b
settings.  More importantly, alsactl is
Packit Service a9274b
capable of controlling other card-specific features that mixer apps
Packit Service a9274b
usually don't know about.
Packit Service a9274b
Packit Service a9274b
The configuration file is generated automatically by running
Packit Service a9274b
\fBalsactl store\fP. Editing the configuration file by hand may be
Packit Service a9274b
necessary for some soundcard features (e.g. enabling/disabling
Packit Service a9274b
automatic mic gain, digital output, joystick/game ports, some future MIDI
Packit Service a9274b
routing options, etc).
Packit Service a9274b
Packit Service a9274b
.SH SEE ALSO
Packit Service a9274b
\fB
Packit Service a9274b
amixer(1),
Packit Service a9274b
alsamixer(1),
Packit Service a9274b
aplay(1),
Packit Service a9274b
alsactl_init(7)
Packit Service a9274b
\fP
Packit Service a9274b
Packit Service a9274b
.SH BUGS 
Packit Service a9274b
None known.
Packit Service a9274b
Packit Service a9274b
.SH AUTHOR
Packit Service a9274b
\fBalsactl\fP is by Jaroslav Kysela <perex@perex.cz> and Abramo Bagnara
Packit Service a9274b
<abramo@alsa\-project.org>. This document is by Paul Winkler <zarmzarm@erols.com>.