Changeset 7ffd4d7 for multimedia/libdriv/alsa-utils.xml
- Timestamp:
- 05/07/2006 01:36:04 AM (18 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.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:
- 04be25f
- Parents:
- 1e9bd536
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
multimedia/libdriv/alsa-utils.xml
r1e9bd536 r7ffd4d7 7 7 <!ENTITY alsa-utils-download-http "&alsa-download-http;/utils/alsa-utils-&alsa-utils-version;.tar.bz2"> 8 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 "9 35KB">11 <!ENTITY alsa-utils-buildsize " 5.9MB">9 <!ENTITY alsa-utils-md5sum "ba9b8010120701d0f6daf061d392cfa2"> 10 <!ENTITY alsa-utils-size "972 KB"> 11 <!ENTITY alsa-utils-buildsize "6.8 MB"> 12 12 <!ENTITY alsa-utils-time "0.1 SBU"> 13 13 ]> … … 128 128 alsactl store</userinput></screen> 129 129 130 <para>The volume settings will be restored from the saved state using a131 shell script called by <application>Udev</application> that will132 execute when the device is detected (during boot or when plugged in for133 USB devices).</para> 134 130 <para>The volume settings will be restored from the saved state by 131 <application>Udev</application> when the device is detected (during boot 132 or when plugged in for USB devices).</para> 133 134 <!-- 135 135 <para> While still the 136 136 <systemitem class="username">root</systemitem> user, create the … … 144 144 # $1 is (the numbered device "%n") passed in by udev/kernel. 145 145 146 x=0 147 148 # Give up to 20 seconds for /usr to be mounted 149 while [ "${x}" -lt 20 ] 150 do 146 rc=1 147 151 148 if [ -f /usr/sbin/alsactl ]; then 152 149 /usr/sbin/alsactl restore "${1}" 153 exit 0150 rc=$? 154 151 fi 155 x=$(( x + 1 )) 156 sleep 1 157 done & # Put the loop in the background 152 153 exit $rc 158 154 159 155 # End /etc/udev/scripts/alsa-restore 160 156 EOF 161 157 chmod -v 754 /etc/udev/scripts/alsa-restore</userinput></screen> 162 163 <para>Finally, again as the 164 < systemitem class="username">root</systemitem> user, install a new165 <application>Udev</application> rules file to create the audio158 --> 159 160 <para>As the <systemitem class="username">root</systemitem> user, install 161 a new <application>Udev</application> rules file to create the audio 166 162 device nodes and run the restore script:</para> 167 163 … … 173 169 # ALSA Devices 174 170 # When a sound device is detected, restore the volume settings 175 KERNEL=="controlC[0-9]*", ACTION=="add", NAME="snd/%k", RUN="/etc/udev/scripts/alsa-restore %n"171 KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n" 176 172 KERNEL="hw[CD0-9]*", NAME="snd/%k" 177 173 KERNEL="pcm[CD0-9cp]*", NAME="snd/%k" … … 195 191 196 192 <seglistitem> 197 <seg>aconnect, alsaconf, alsactl, alsamixer, amidi, amixer, aplay, aplaymidi, 198 arecord, arecordmidi, aseqnet, aseqdump, iecset, and speaker-test</seg> 193 <seg>aconnect, alsaconf, alsactl, alsamixer, amidi, 194 amixer, aplay, aplaymidi, arecord, arecordmidi, aseqnet, 195 aseqdump, iecset, and speaker-test</seg> 199 196 <seg>None</seg> 200 197 <seg>None</seg>
Note:
See TracChangeset
for help on using the changeset viewer.