Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  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, write to the Free Software Foundation,
  17. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  18.  
  19. # This startup script is used only if PulseAudio is started per-user
  20. # (i.e. not in system mode)
  21.  
  22. .nofail
  23.  
  24. ### Load something into the sample cache
  25. #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
  26. #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  27. #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
  28. #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
  29.  
  30. .fail
  31.  
  32. ### Automatically restore the volume of streams and devices
  33. load-module module-device-restore
  34. load-module module-stream-restore
  35. load-module module-card-restore
  36.  
  37. ### Automatically augment property information from .desktop files
  38. ### stored in /usr/share/application
  39. load-module module-augment-properties
  40.  
  41. ### Should be after module-*-restore but before module-*-detect
  42. load-module module-switch-on-port-available
  43.  
  44. # automatically switch to newly-connected devices
  45. load-module module-switch-on-connect
  46.  
  47. ### Load audio drivers statically
  48. ### (it's probably better to not load these drivers manually, but instead
  49. ### use module-udev-detect -- see below -- for doing this automatically)
  50. #load-module module-alsa-sink
  51. #load-module module-alsa-source device=hw:1,0
  52. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  53. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  54. #load-module module-null-sink
  55. #load-module module-pipe-sink
  56.  
  57. ### Automatically load driver modules depending on the hardware available
  58. .ifexists module-udev-detect.so
  59. load-module module-udev-detect
  60. .else
  61. ### Use the static hardware detection module (for systems that lack udev support)
  62. load-module module-detect
  63. .endif
  64.  
  65. ### Automatically connect sink and source if JACK server is present
  66. .ifexists module-jackdbus-detect.so
  67. .nofail
  68. load-module module-jackdbus-detect channels=2
  69. .fail
  70. .endif
  71.  
  72. ### Automatically load driver modules for Bluetooth hardware
  73. .ifexists module-bluetooth-policy.so
  74. load-module module-bluetooth-policy
  75. .endif
  76.  
  77. .ifexists module-bluetooth-discover.so
  78. load-module module-bluetooth-discover
  79. .endif
  80.  
  81. ### Load several protocols
  82. .ifexists module-esound-protocol-unix.so
  83. load-module module-esound-protocol-unix
  84. .endif
  85. load-module module-native-protocol-unix
  86.  
  87. ### Network access (may be configured with paprefs, so leave this commented
  88. ### here if you plan to use paprefs)
  89. #load-module module-esound-protocol-tcp
  90. #load-module module-native-protocol-tcp
  91. #load-module module-zeroconf-publish
  92.  
  93. ### Load the RTP receiver module (also configured via paprefs, see above)
  94. load-module module-rtp-recv
  95.  
  96. ### Load the RTP sender module (also configured via paprefs, see above)
  97. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  98. #load-module module-rtp-send source=rtp.monitor
  99.  
  100. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  101. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  102. ### loaded modules.
  103. .ifexists module-gconf.so
  104. .nofail
  105. load-module module-gconf
  106. .fail
  107. .endif
  108.  
  109. ### Automatically restore the default sink/source when changed by the user
  110. ### during runtime
  111. ### NOTE: This should be loaded as early as possible so that subsequent modules
  112. ### that look up the default sink/source get the right value
  113. load-module module-default-device-restore
  114.  
  115. ### Automatically move streams to the default sink if the sink they are
  116. ### connected to dies, similar for sources
  117. load-module module-rescue-streams
  118.  
  119. ### Make sure we always have a sink around, even if it is a null sink.
  120. load-module module-always-sink
  121.  
  122. ### Honour intended role device property
  123. load-module module-intended-roles
  124.  
  125. ### Automatically suspend sinks/sources that become idle for too long
  126. load-module module-suspend-on-idle
  127.  
  128. ### If autoexit on idle is enabled we want to make sure we only quit
  129. ### when no local session needs us anymore.
  130. .ifexists module-console-kit.so
  131. load-module module-console-kit
  132. .endif
  133. .ifexists module-systemd-login.so
  134. load-module module-systemd-login
  135. .endif
  136.  
  137. ### Enable positioned event sounds
  138. load-module module-position-event-sounds
  139.  
  140. ### Cork music/video streams when a phone stream is active
  141. load-module module-role-cork
  142.  
  143. ### Modules to allow autoloading of filters (such as echo cancellation)
  144. ### on demand. module-filter-heuristics tries to determine what filters
  145. ### make sense, and module-filter-apply does the heavy-lifting of
  146. ### loading modules and rerouting streams.
  147. load-module module-filter-heuristics
  148. load-module module-filter-apply
  149.  
  150. # X11 modules should not be started from default.pa so that one daemon
  151. # can be shared by multiple sessions.
  152.  
  153. ### Load X11 bell module
  154. #load-module module-x11-bell sample=bell-windowing-system
  155.  
  156. ### Register ourselves in the X11 session manager
  157. #load-module module-x11-xsmp
  158.  
  159. ### Publish connection data in the X11 root window
  160. #.ifexists module-x11-publish.so
  161. #.nofail
  162. #load-module module-x11-publish
  163. #.fail
  164. #.endif
  165.  
  166. ### Make some devices default
  167. #set-default-sink output
  168. #set-default-source input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement