source: multimedia/libdriv/alsa-utils.xml@ 9700e433

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9700e433 was 9700e433, checked in by DJ Lucas <dj@…>, 19 years ago

Alsa startup scripts updated

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4858 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY alsa-utils-download-http "&alsa-download-http;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
8 <!ENTITY alsa-utils-download-ftp "&alsa-download-ftp;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
9 <!ENTITY alsa-utils-md5sum "d4b77e9fe0311772293e402fdd634ad2">
10 <!ENTITY alsa-utils-size "935 KB">
11 <!ENTITY alsa-utils-buildsize "5.9 MB">
12 <!ENTITY alsa-utils-time "0.1 SBU">
13]>
14
15<sect1 id="alsa-utils" xreflabel="ALSA Utilities-&alsa-utils-version;">
16 <?dbhtml filename="alsa-utils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>ALSA Utilities-&alsa-utils-version;</title>
24
25 <indexterm zone="alsa-utils">
26 <primary sortas="a-ALSA-Utilities">ALSA Utilities</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to ALSA Utilities</title>
31
32 <para>The <application>ALSA Utilities</application> package contains
33 various utilities which are useful for controlling your sound card.</para>
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>Download (HTTP): <ulink url="&alsa-utils-download-http;"/></para>
39 </listitem>
40 <listitem>
41 <para>Download (FTP): <ulink url="&alsa-utils-download-ftp;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download MD5 sum: &alsa-utils-md5sum;</para>
45 </listitem>
46 <listitem>
47 <para>Download size: &alsa-utils-size;</para>
48 </listitem>
49 <listitem>
50 <para>Estimated disk space required: &alsa-utils-buildsize;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated build time: &alsa-utils-time;</para>
54 </listitem>
55 </itemizedlist>
56
57 <bridgehead renderas="sect3">ALSA Utilities Dependencies</bridgehead>
58
59 <bridgehead renderas="sect4">Required</bridgehead>
60 <para><xref linkend="alsa-lib"/></para>
61
62 </sect2>
63
64 <sect2 role="installation">
65 <title>Installation of ALSA Utilities</title>
66
67 <para>Install <application>ALSA Utilities</application> by
68 running the following commands:</para>
69
70<screen><userinput>./configure &amp;&amp;
71make</userinput></screen>
72
73 <para>This package does not come with a test suite.</para>
74
75 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
76
77<screen role="root"><userinput>make install</userinput></screen>
78
79 </sect2>
80
81 <sect2 role="configuration">
82 <title>Configuring ALSA Utilities</title>
83
84 <sect3 id="alsa-utils-config">
85 <title>Config Files</title>
86
87 <para><filename>/etc/asound.state</filename></para>
88
89 <indexterm zone="alsa-utils alsa-utils-config">
90 <primary sortas="e-etc-asound.state">/etc/asound.state</primary>
91 </indexterm>
92
93 </sect3>
94
95 <sect3 id="alsa-utils-init">
96 <title>Configuration Information</title>
97
98 <para>Probably the easiest way to store mixer levels is to set and
99 retrieve them using at boot and shutdown. We'll use a bootscript to
100 store the values at shutdown.</para>
101
102 <indexterm zone="alsa-utils alsa-utils-init">
103 <primary sortas="f-alsa">alsa</primary>
104 </indexterm>
105
106 <para>As the <systemitem class="username">root</systemitem> user,
107 install the init script <filename>/etc/rc.d/init.d/alsa</filename> included
108 in the <xref linkend="intro-important-bootscripts"/> package.</para>
109
110<screen role="root"><userinput>make install-alsa</userinput></screen>
111
112 <para>Note that all channels of your sound card are muted by default.
113 You can use the <command>alsamixer</command> program from
114 <application>ALSA Utilities</application> (or any other
115 OSS mixer) to change this.</para>
116
117 <para>The first time the dev.d script below is run, it will complain
118 that there is no state in <filename>/etc/asound.state</filename>.
119 You can prevent this by running the following commands while still
120 the <systemitem class="username">root</systemitem> user (after
121 installing <application>ALSA Utilities</application>):</para>
122
123<screen role="root"><userinput>touch /etc/asound.state &amp;&amp;
124alsactl store</userinput></screen>
125
126 <para>We will restore the volume using the stored settings and a
127 dev.d handler script that will execute when the device is detected
128 durring boot (when pluged in for USB devices). While still the
129 <systemitem class="username">root</systemitem> user, create the dev.d
130 handler script with the following commands:</para>
131
132<screen role="root"><userinput>install -d -m755 /etc/dev.d/snd &amp;&amp;
133cat &gt;&gt; /etc/dev.d/snd/alsa.dev &lt;&lt; "EOF" &amp;&amp;
134#!/bin/sh -e
135DEV_BASENAME="${DEVNAME##*/}"
136N="${DEV_BASENAME#controlC}"
137case "$DEV_BASENAME" in
138 controlC[0-7])
139 x=0
140 while [ $x -lt 20 ]
141 do
142 sleep 1
143 if [ -f /usr/sbin/alsactl ]; then
144 /usr/sbin/alsactl restore $N
145 exit 0
146 else
147 if [ $x -eq 20 ]; then
148 exit 1
149 fi
150 fi
151 done &amp;
152 ;;
153esac
154exit 0
155EOF
156chmod 755 /etc/dev.d/snd/alsa.dev</userinput></screen>
157
158
159 <para>You may wish to do additional configuration on a per card basis.
160 For example, if you wish to load soundfont banks into the first
161 device (card0), use the following sample script:</para>
162
163<screen>#!/bin/sh -e
164# Begin /etc/dev.d/snd/controlC0/asfxload.dev
165
166# Load GM8.sf2 for soundcard 0
167/usr/bin/asfxload /usr/share/sounds/sf2/8mbgmsfx.sf2 -D "hw:0,2"
168
169# End /etc/dev.d/snd/controlC0/sfxload.dev</screen>
170
171 </sect3>
172
173 </sect2>
174
175 <sect2 role="content">
176 <title>Contents</title>
177
178 <segmentedlist>
179 <segtitle>Installed Programs</segtitle>
180 <segtitle>Installed Libraries</segtitle>
181 <segtitle>Installed Directories</segtitle>
182
183 <seglistitem>
184 <seg>aconnect, alsaconf, alsactl, alsamixer, amidi, amixer, aplay, aplaymidi,
185 arecord, arecordmidi, aseqnet, aseqdump, iecset, and speaker-test</seg>
186 <seg>None</seg>
187 <seg>None</seg>
188 </seglistitem>
189 </segmentedlist>
190
191 <variablelist>
192 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
193 <?dbfo list-presentation="list"?>
194 <?dbhtml list-presentation="table"?>
195
196 <varlistentry id="aconnect">
197 <term><command>aconnect</command></term>
198 <listitem>
199 <para>is a utility for connecting and disconnecting two existing
200 ports in the ALSA sequencer system.</para>
201 <indexterm zone="alsa-utils aconnect">
202 <primary sortas="b-aconnect">aconnect</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="alsaconf">
208 <term><command>alsaconf</command></term>
209 <listitem>
210 <para>is a configuration tool which tries to detect the sound cards
211 on your system and write a suitable configuration file for ALSA.</para>
212 <indexterm zone="alsa-utils alsaconf">
213 <primary sortas="b-alsaconf">alsaconf</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="alsactl">
219 <term><command>alsactl</command></term>
220 <listitem>
221 <para>is used to control advanced settings for the
222 ALSA sound card drivers.</para>
223 <indexterm zone="alsa-utils alsactl">
224 <primary sortas="b-alsactl">alsactl</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="alsamixer">
230 <term><command>alsamixer</command></term>
231 <listitem>
232 <para>is an ncurses-based mixer program for use with the
233 ALSA sound card drivers.</para>
234 <indexterm zone="alsa-utils alsamixer">
235 <primary sortas="b-alsamixer">alsamixer</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="amidi">
241 <term><command>amidi</command></term>
242 <listitem>
243 <para>is used to read from and write to ALSA
244 RawMIDI ports.</para>
245 <indexterm zone="alsa-utils amidi">
246 <primary sortas="b-amidi">amidi</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="amixer">
252 <term><command>amixer</command></term>
253 <listitem>
254 <para> allows command-line control of the mixers for the
255 ALSA sound card drivers.</para>
256 <indexterm zone="alsa-utils amixer">
257 <primary sortas="b-amixer">amixer</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="aplay">
263 <term><command>aplay</command></term>
264 <listitem>
265 <para>is a command-line soundfile player for the
266 ALSA sound card drivers.</para>
267 <indexterm zone="alsa-utils aplay">
268 <primary sortas="b-aplay">aplay</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="aplaymidi">
274 <term><command>aplaymidi</command></term>
275 <listitem>
276 <para>is a command-line utility that plays the specified
277 MIDI file(s) to one or more ALSA sequencer ports.</para>
278 <indexterm zone="alsa-utils aplaymidi">
279 <primary sortas="b-aplaymidi">aplaymidi</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="arecord">
285 <term><command>arecord</command></term>
286 <listitem>
287 <para>is a command-line soundfile recorder for the
288 ALSA sound card drivers.</para>
289 <indexterm zone="alsa-utils arecord">
290 <primary sortas="b-arecord">arecord</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="arecordmidi">
296 <term><command>arecordmidi</command></term>
297 <listitem>
298 <para>is a command-line utility that records a standard
299 MIDI file from one or more ALSA sequencer ports.</para>
300 <indexterm zone="alsa-utils arecordmidi">
301 <primary sortas="b-arecordmidi">arecordmidi</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="aseqdump">
307 <term><command>aseqdump</command></term>
308 <listitem>
309 <para>is a command-line utility that prints the sequencer events it
310 receives as text.</para>
311 <indexterm zone="alsa-utils aseqdump">
312 <primary sortas="b-aseqdump">aseqdump</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="aseqnet">
318 <term><command>aseqnet</command></term>
319 <listitem>
320 <para>is an ALSA sequencer client which sends
321 and receives event packets over a network.</para>
322 <indexterm zone="alsa-utils aseqnet">
323 <primary sortas="b-aseqnet">aseqnet</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="iecset">
329 <term><command>iecset</command></term>
330 <listitem>
331 <para>is a small utility to set or dump the IEC958 (or so-called
332 <quote>S/PDIF</quote>) status bits of the specified sound
333 card via the ALSA control API.</para>
334 <indexterm zone="alsa-utils iecset">
335 <primary sortas="b-iecset">iecset</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="speaker-test">
341 <term><command>speaker-test</command></term>
342 <listitem>
343 <para>is a command-line speaker test tone generator for ALSA.</para>
344 <indexterm zone="alsa-utils speaker-test">
345 <primary sortas="b-speaker-test">speaker-test</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 </variablelist>
351
352 </sect2>
353
354</sect1>
Note: See TracBrowser for help on using the repository browser.