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 per-user
20
# (i.e. not in system mode)
22
# This script is specific to Ubuntu Touch
23
# Needed to avoid conflicting policies with desktop
27
### Automatically restore the volume of streams
28
load-module module-stream-restore restore_device=false restore_muted=false fallback_table=/etc/pulse/touch-stream-restore.table
30
### Automatically augment property information from .desktop files
31
### stored in /usr/share/application
32
load-module module-augment-properties
34
### Should be after module-*-restore but before module-*-detect
35
load-module module-switch-on-port-available
37
### Switch when connected by default
38
load-module module-switch-on-connect skip_abstract=yes
40
### Automatically load the Pulseaudio Droid
41
.ifexists module-droid-discover.so
42
load-module module-droid-discover voice_virtual_stream=true
45
### Automatically load the trust-store module
46
.ifexists module-trust-store.so
47
load-module module-trust-store
50
### Fake sink and source used by HSP
51
load-module module-null-sink sink_name=sink.fake.sco rate=8000 channels=1
52
load-module module-null-source source_name=source.fake.sco rate=8000 channels=1
54
### Automatically load driver modules depending on the hardware available
55
#.ifexists module-udev-detect.so
56
#load-module module-udev-detect
59
### Automatically connect sink and source if JACK server is present
60
.ifexists module-jackdbus-detect.so
62
load-module module-jackdbus-detect channels=2
66
### Automatically load driver modules for Bluetooth hardware
67
.ifexists module-bluetooth-policy.so
68
load-module module-bluetooth-policy
71
.ifexists module-bluez5-discover.so
72
load-module module-bluez5-discover headset=both profile=a2dp_sink sco_sink=sink.fake.sco sco_source=source.fake.sco
75
### Load several protocols
76
.ifexists module-esound-protocol-unix.so
77
load-module module-esound-protocol-unix
79
load-module module-native-protocol-unix
81
### Network access (may be configured with paprefs, so leave this commented
82
### here if you plan to use paprefs)
83
#load-module module-esound-protocol-tcp
84
#load-module module-native-protocol-tcp
85
#load-module module-zeroconf-publish
87
### Load the RTP receiver module (also configured via paprefs, see above)
88
#load-module module-rtp-recv
90
### Load the RTP sender module (also configured via paprefs, see above)
91
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
92
#load-module module-rtp-send source=rtp.monitor
94
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
95
### Please keep in mind that the modules configured by paprefs might conflict with manually
97
.ifexists module-gconf.so
99
load-module module-gconf
103
### Automatically restore the default sink/source when changed by the user
105
### NOTE: This should be loaded as early as possible so that subsequent modules
106
### that look up the default sink/source get the right value
107
load-module module-default-device-restore
109
### Automatically move streams to the default sink if the sink they are
110
### connected to dies, similar for sources
111
load-module module-rescue-streams
113
### Make sure we always have a sink around, even if it is a null sink.
114
load-module module-always-sink
116
### Automatically suspend sinks/sources that become idle for too long
117
load-module module-suspend-on-idle
119
### If autoexit on idle is enabled we want to make sure we only quit
120
### when no local session needs us anymore.
121
.ifexists module-console-kit.so
122
load-module module-console-kit
124
.ifexists module-systemd-login.so
125
load-module module-systemd-login
128
### Enable positioned event sounds
129
load-module module-position-event-sounds
131
### Cork music/video streams when a phone stream is active
132
load-module module-role-cork trigger_roles=phone,alarm cork_roles=alarm,multimedia global=true
134
### Ducking streams when certain roles are active
135
load-module module-role-ducking trigger_roles=alert ducking_roles=multimedia volume=-20dB
137
### Load DBus protocol
138
.ifexists module-dbus-protocol.so
139
load-module module-dbus-protocol
142
### Modules to allow autoloading of filters (such as echo cancellation)
143
### on demand. module-filter-heuristics tries to determine what filters
144
### make sense, and module-filter-apply does the heavy-lifting of
145
### loading modules and rerouting streams.
146
load-module module-filter-heuristics
147
load-module module-filter-apply
149
### Make some devices default
150
set-default-sink sink.primary
151
set-default-source source.primary