default.pa 4.9 KB

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