1 #!/usr/bin/pulseaudio -nF
3 # This file is part of PulseAudio.
5 # PulseAudio is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # PulseAudio is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with PulseAudio; if not, write to the Free Software Foundation,
17 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19 # This startup script is used only if PulseAudio is started in system
22 ### Automatically load driver modules depending on the hardware available
23 .ifexists module-hal-detect.so
24 #load-module module-hal-detect
26 ### Alternatively use the static hardware detection module (for systems that
28 load-module module-detect
30 load-module module-udev-detect
32 ### Load several protocols
33 .ifexists module-esound-protocol-unix.so
34 load-module module-esound-protocol-unix
36 load-module module-native-protocol-unix
38 load-module module-bluetooth-discover
40 ### Custom policy module to route between bt<=speaker
41 load-module module-policy
43 ### Automatically restore the volume of streams and devices
44 #load-module module-stream-restore
45 #load-module module-device-restore
47 ### Automatically restore the default sink/source when changed by the user during runtime
48 load-module module-default-device-restore
50 ### Automatically move streams to the default sink if the sink they are
51 ### connected to dies, similar for sources
52 load-module module-rescue-streams
54 ### Make sure we always have a sink around, even if it is a null sink.
55 load-module module-always-sink
57 ### Automatically suspend sinks/sources that become idle for too long
58 load-module module-suspend-on-idle
60 ### Enable positioned event sounds
61 #load-module module-position-event-sounds
63 ### Set default source (not to use alsa_sink monitor which is index 0)
64 set-default-source alsa_input.0.analog-stereo
66 load-module module-remap-sink sink_name=mono_alsa master=alsa_output.0.analog-stereo channels=1