Changeset 9700e433
- Timestamp:
- 07/31/2005 05:19:41 PM (19 years ago)
- Branches:
- 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
- Children:
- 5e82411c
- Parents:
- 4d06a01f
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
general.ent
r4d06a01f r9700e433 3 3 <!ENTITY year "2005"> 4 4 <!ENTITY version "svn-&year;&month;&day;"> 5 <!ENTITY releasedate "July &day; th, &year;">5 <!ENTITY releasedate "July &day;st, &year;"> 6 6 <!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP --> 7 7 <!ENTITY blfs-version "svn"> <!-- svn|[release #] --> … … 22 22 23 23 24 <!ENTITY blfs-bootscripts-version "200507 09">24 <!ENTITY blfs-bootscripts-version "20050731"> 25 25 <!ENTITY blfs-bootscripts-download "&downloads-root;/blfs-bootscripts-&blfs-bootscripts-version;.tar.bz2"> 26 26 -
introduction/welcome/changelog.xml
r4d06a01f r9700e433 25 25 <itemizedlist> 26 26 27 <listitem> 28 <para>July 31st, 2005 [dj]: Updated bootscripts tarball and added 29 the alsa dev.d helpers scripts.</para> 30 </listitem> 31 27 32 <listitem> 28 33 <para>July 31st, 2005 [richard]: Updated to firefox-1.0.6.</para> -
introduction/welcome/credits.xml
r4d06a01f r9700e433 444 444 <listitem> 445 445 <para><emphasis>Alexander E. Patrakov</emphasis> 446 for patches and suggestions to improve the book content and increasing447 the l10n awareness.</para>446 for patches and suggestions to improve the book content, assistance 447 with alsa dev.d helpers, and increasing the l10n awareness.</para> 448 448 </listitem> 449 449 -
multimedia/libdriv/alsa-utils.xml
r4d06a01f r9700e433 97 97 98 98 <para>Probably the easiest way to store mixer levels is to set and 99 retrieve them using a bootscript.</para> 99 retrieve them using at boot and shutdown. We'll use a bootscript to 100 store the values at shutdown.</para> 100 101 101 102 <indexterm zone="alsa-utils alsa-utils-init"> … … 114 115 OSS mixer) to change this.</para> 115 116 116 <para>The first time the above script is run, it will complain that117 th ere is no state in <filename>/etc/asound.state</filename>. You can118 prevent this by running the following commands as the119 <systemitem class="username">root</systemitem> userafter120 installing <application>ALSA Utilities</application> :</para>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> 121 122 122 123 <screen role="root"><userinput>touch /etc/asound.state && 123 124 alsactl store</userinput></screen> 124 125 125 <para>A final note is that the lines loading <filename>sfxload</filename> 126 are commented out. They are there as an example of other things you may 127 wish to do in the startup script. <filename>sfxload</filename> is a 128 separate package of interest to SoundBlaster AWE and Live! 129 users. It is designed for loading "sound-fonts" (which are used for 130 MIDI output). You may wish to delete these lines and add 131 your own or, if you have the relevant sound card, install 132 <filename>sfxload</filename> and uncomment them.</para> 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 && 133 cat >> /etc/dev.d/snd/alsa.dev << "EOF" && 134 #!/bin/sh -e 135 DEV_BASENAME="${DEVNAME##*/}" 136 N="${DEV_BASENAME#controlC}" 137 case "$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 & 152 ;; 153 esac 154 exit 0 155 EOF 156 chmod 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> 133 170 134 171 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.