mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Fixed typos and minor wording changes to the ALSA Utilities instructions
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4868 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
3239e369d8
commit
656725d3cc
@ -108,26 +108,28 @@ make</userinput></screen>
|
||||
<screen role="root"><userinput>make install-alsa</userinput></screen>
|
||||
|
||||
<para>Note that all channels of your sound card are muted by default.
|
||||
You can use the <command>alsamixer</command> program from
|
||||
You can use the <command>alsamixer</command> program from the
|
||||
<application>ALSA Utilities</application> to change this.</para>
|
||||
|
||||
<para>The first time the dev.d script below is run, it will complain
|
||||
<para>The first time the <filename class='directory'>dev.d</filename>
|
||||
script below is run, it will complain
|
||||
that there is no state in <filename>/etc/asound.state</filename>.
|
||||
You can prevent this by running the following commands while still
|
||||
the <systemitem class="username">root</systemitem> user (after
|
||||
installing <application>ALSA Utilities</application>):</para>
|
||||
You can prevent this by running the following commands as
|
||||
the <systemitem class="username">root</systemitem> user:</para>
|
||||
|
||||
<screen role="root"><userinput>touch /etc/asound.state &&
|
||||
alsactl store</userinput></screen>
|
||||
|
||||
<para>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
|
||||
<systemitem class="username">root</systemitem> user, create the dev.d
|
||||
script with the following commands:</para>
|
||||
<para>The volume settings will be restored from the saved state using a
|
||||
<filename class='directory'>dev.d</filename> handler script that will
|
||||
execute when the device is detected
|
||||
during boot (when plugged in for USB devices). While still the
|
||||
<systemitem class="username">root</systemitem> user, create the
|
||||
<filename class='directory'>dev.d</filename> script with the following
|
||||
commands:</para>
|
||||
|
||||
<screen role="root"><userinput>install -d -m755 /etc/dev.d/snd &&
|
||||
cat >> /etc/dev.d/snd/alsa.dev << "EOF" &&
|
||||
<screen role="root"><userinput>install -v -d -m755 /etc/dev.d/snd &&
|
||||
cat >> /etc/dev.d/snd/alsa.dev << "EOF"
|
||||
#!/bin/sh -e
|
||||
DEV_BASENAME="${DEVNAME##*/}"
|
||||
N="${DEV_BASENAME#controlC}"
|
||||
@ -150,7 +152,7 @@ case "$DEV_BASENAME" in
|
||||
esac
|
||||
exit 0
|
||||
EOF
|
||||
chmod 755 /etc/dev.d/snd/alsa.dev</userinput></screen>
|
||||
chmod -v 755 /etc/dev.d/snd/alsa.dev</userinput></screen>
|
||||
|
||||
|
||||
<para>You may wish to do additional configuration on a per card basis.
|
||||
|
Loading…
Reference in New Issue
Block a user