default.pa 5.7 KB

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