1#!/usr/bin/pulseaudio -nF 2# 3# This file is part of PulseAudio. 4# 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. 9# 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. 14# 15# You should have received a copy of the GNU Lesser General Public License 16# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 17 18# This startup script is used only if PulseAudio is started per-user 19# (i.e. not in system mode) 20 21.fail 22 23### Automatically restore the volume of streams and devices 24load-module module-device-restore 25load-module module-stream-restore 26load-module module-card-restore 27 28### Automatically augment property information from .desktop files 29### stored in /usr/share/application 30load-module module-augment-properties 31 32load-module module-switch-on-connect blacklist="" 33### Should be after module-*-restore but before module-*-detect 34load-module module-switch-on-port-available 35 36### Load audio drivers statically 37### (it's probably better to not load these drivers manually, but instead 38### use module-udev-detect -- see below -- for doing this automatically) 39#load-module module-alsa-sink 40#load-module module-alsa-source device=hw:1,0 41#load-module module-oss device="/dev/dsp" sink_name=output source_name=input 42#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input 43#load-module module-null-sink 44#load-module module-pipe-sink 45 46### Automatically load driver modules depending on the hardware available 47.ifexists module-udev-detect.so 48load-module module-udev-detect tsched=0 49.else 50### Use the static hardware detection module (for systems that lack udev support) 51load-module module-detect 52.endif 53 54### Automatically connect sink and source if JACK server is present 55.ifexists module-jackdbus-detect.so 56.nofail 57load-module module-jackdbus-detect channels=2 58.fail 59.endif 60 61### Automatically load driver modules for Bluetooth hardware 62.ifexists module-bluetooth-policy.so 63load-module module-bluetooth-policy 64.endif 65 66.ifexists module-bluetooth-discover.so 67load-module module-bluetooth-discover 68.endif 69 70### Load several protocols 71.ifexists module-esound-protocol-unix.so 72load-module module-esound-protocol-unix 73.endif 74load-module module-native-protocol-unix auth-anonymous=1 socket=/tmp/pulse-socket 75 76### Network access (may be configured with paprefs, so leave this commented 77### here if you plan to use paprefs) 78#load-module module-esound-protocol-tcp 79#load-module module-native-protocol-tcp 80#load-module module-zeroconf-publish 81 82### Load the RTP receiver module (also configured via paprefs, see above) 83#load-module module-rtp-recv 84 85### Load the RTP sender module (also configured via paprefs, see above) 86#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'" 87#load-module module-rtp-send source=rtp.monitor 88 89### Load additional modules from GSettings. This can be configured with the paprefs tool. 90### Please keep in mind that the modules configured by paprefs might conflict with manually 91### loaded modules. 92.ifexists module-gsettings.so 93.nofail 94load-module module-gsettings 95.fail 96.endif 97 98 99### Automatically restore the default sink/source when changed by the user 100### during runtime 101### NOTE: This should be loaded as early as possible so that subsequent modules 102### that look up the default sink/source get the right value 103load-module module-default-device-restore 104 105### Automatically move streams to the default sink if the sink they are 106### connected to dies, similar for sources 107load-module module-rescue-streams 108 109### Make sure we always have a sink around, even if it is a null sink. 110load-module module-always-sink 111 112### Honour intended role device property 113load-module module-intended-roles 114 115### Automatically suspend sinks/sources that become idle for too long 116load-module module-suspend-on-idle 117 118### If autoexit on idle is enabled we want to make sure we only quit 119### when no local session needs us anymore. 120.ifexists module-console-kit.so 121load-module module-console-kit 122.endif 123.ifexists module-systemd-login.so 124load-module module-systemd-login 125.endif 126 127### Enable positioned event sounds 128load-module module-position-event-sounds 129 130### Cork music/video streams when a phone stream is active 131load-module module-role-cork 132 133### Modules to allow autoloading of filters (such as echo cancellation) 134### on demand. module-filter-heuristics tries to determine what filters 135### make sense, and module-filter-apply does the heavy-lifting of 136### loading modules and rerouting streams. 137load-module module-filter-heuristics 138load-module module-filter-apply 139 140### Make some devices default 141#set-default-sink output 142set-default-source alsa_input.platform-es8388-sound.HiFi__hw_rockchipes8388__source 143set-default-sink alsa_output.platform-es8388-sound.HiFi__hw_rockchipes8388__sink 144set-default-source alsa_input.platform-rk809-sound.HiFi__hw_rockchiprk809__source 145set-default-sink alsa_output.platform-rk809-sound.HiFi__hw_rockchiprk809__sink 146