Changeset 7a8c3f28 for multimedia/libdriv/alsa/driver
- Timestamp:
- 03/06/2003 01:19:52 AM (21 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 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, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- ef9f823
- Parents:
- ef23a83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
multimedia/libdriv/alsa/driver/alsa-driver-config.xml
ref23a83 r7a8c3f28 4 4 <sect3><title>Config files</title> 5 5 6 <para><userinput>/etc/modules.conf</userinput> and 7 <userinput>/etc/asound.state</userinput></para> 6 <para><userinput>/etc/modules.conf</userinput></para> 8 7 9 8 </sect3> … … 41 40 <screen><userinput>depmod -a 2.4.19 -F /boot/System.map-2.4.19</userinput></screen></para> 42 41 43 <para>Probably the easiest way to store mixer levels is to set and retrieve44 them using a bootscript. It is possible to do this with a45 <userinput>post-install</userinput> line in46 <filename>/etc/modules.conf</filename> but this is left as an exercise for47 those readers who wish to do this.</para>48 49 <para>The alsa-drivers package installs a script as50 <filename>/etc/rc.d/init.d/alsasound</filename>. While it is possible to use51 this script, it contains a lot of extraneous detail which isn't needed on an52 LFS system and so we create our own script53 <filename>/etc/rc.d/init.d/alsa</filename>.</para>54 55 <para>To create the alsa script, do the following:</para>56 57 <para><screen><userinput>cat > /etc/rc.d/init.d/alsa << "EOF"</userinput>58 #!/bin/sh59 # Begin $rc_base/init.d/alsa60 61 # Based on sysklogd script from LFS-3.1 and earlier.62 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org63 # ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org64 # Stores mixer settings in the default location: /etc/asound.state65 66 source /etc/sysconfig/rc67 source $rc_functions68 69 case "$1" in70 start)71 echo -n "Starting alsa... Restoring volumes..."72 loadproc /usr/sbin/alsactl restore73 #echo -n " Loading MIDI font..."74 #loadproc sfxload /path/to/soundfont75 ;;76 77 stop)78 echo -n "Stopping alsa... Saving volumes......"79 loadproc /usr/sbin/alsactl store80 #echo -n " Removing MIDI font.........."81 #loadproc sfxload -i82 ;;83 84 restart)85 $0 stop86 /usr/bin/sleep 187 $0 start88 ;;89 90 *)91 echo "Usage: $0 {start|stop|restart}"92 exit 193 ;;94 95 esac96 97 # End $rc_base/init.d/alsa98 <userinput>EOF99 chmod 755 /etc/rc.d/init.d/alsa</userinput></screen></para>100 101 <para>You can then create the appropriate symlinks:102 <screen><userinput>cd /etc/rc.d/init.d &&103 ln -sf ../init.d/alsa ../rc0.d/K35alsa &&104 ln -sf ../init.d/alsa ../rc1.d/K35alsa &&105 ln -sf ../init.d/alsa ../rc2.d/S40alsa &&106 ln -sf ../init.d/alsa ../rc3.d/S40alsa &&107 ln -sf ../init.d/alsa ../rc4.d/S40alsa &&108 ln -sf ../init.d/alsa ../rc5.d/S40alsa &&109 ln -sf ../init.d/alsa ../rc6.d/K35alsa</userinput></screen></para>110 111 <para>Note that all channels of your soundcard are muted by default. You can112 use the <filename>alsamixer</filename> program from alsa-utils (or any other113 OSS mixer) to change this.</para>114 115 <para>Also, the first time the above script is run, it will complain that116 there is no state in <filename>/etc/asound.state</filename>. You can117 prevent this by running the following commands after installing alsa-utils:118 <screen><userinput>touch /etc/asound.state &&119 alsactl store</userinput></screen></para>120 121 <para>A final note is that the lines loading <filename>sfxload</filename>122 are commented out. They are there as an example of other things you may123 wish to do in the startup script. <filename>sfxload</filename> is a124 seperate package of interest to SoundBlaster AWE and Live! users. It is125 designed for loading "sound-fonts" (which are used for MIDI output). You126 may wish to delete these lines and add your own or, if you have the relevant127 soundcard, install <filename>sfxload</filename> and uncomment them.</para>128 129 42 </sect3> 130 43
Note:
See TracChangeset
for help on using the changeset viewer.