Advertisement
Guest User

default.pa

a guest
Feb 4th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 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, 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
  24. load-module module-device-restore
  25. load-module module-stream-restore
  26. load-module module-card-restore
  27.  
  28. ### Automatically augment property information from .desktop files
  29. ### stored in /usr/share/application
  30. load-module module-augment-properties
  31.  
  32. ### Should be after module-*-restore but before module-*-detect
  33. load-module module-switch-on-port-available
  34.  
  35. ### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794)
  36. .ifexists module-switch-on-connect.so
  37. load-module module-switch-on-connect
  38. .endif
  39.  
  40. ### Load audio drivers statically
  41. ### (it's probably better to not load these drivers manually, but instead
  42. ### use module-udev-detect -- see below -- for doing this automatically)
  43. #load-module module-alsa-sink
  44. #load-module module-alsa-source device=hw:1,0
  45. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  46. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  47. #load-module module-null-sink
  48. #load-module module-pipe-sink
  49.  
  50. ### Automatically load driver modules depending on the hardware available
  51. .ifexists module-udev-detect.so
  52. load-module module-udev-detect
  53. .else
  54. ### Use the static hardware detection module (for systems that lack udev support)
  55. load-module module-detect
  56. .endif
  57.  
  58. ### Automatically connect sink and source if JACK server is present
  59. .ifexists module-jackdbus-detect.so
  60. .nofail
  61. load-module module-jackdbus-detect channels=2
  62. .fail
  63. .endif
  64.  
  65. ### Automatically load driver modules for Bluetooth hardware
  66. .ifexists module-bluetooth-policy.so
  67. load-module module-bluetooth-policy
  68. .endif
  69.  
  70. .ifexists module-bluetooth-discover.so
  71. load-module module-bluetooth-discover
  72. .endif
  73.  
  74. ### Load several protocols
  75. .ifexists module-esound-protocol-unix.so
  76. load-module module-esound-protocol-unix
  77. .endif
  78. load-module module-native-protocol-unix
  79.  
  80. ### Network access (may be configured with paprefs, so leave this commented
  81. ### here if you plan to use paprefs)
  82. #load-module module-esound-protocol-tcp
  83. #load-module module-native-protocol-tcp
  84. #load-module module-zeroconf-publish
  85.  
  86. ### Load the RTP receiver module (also configured via paprefs, see above)
  87. #load-module module-rtp-recv
  88.  
  89. ### Load the RTP sender module (also configured via paprefs, see above)
  90. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  91. #load-module module-rtp-send source=rtp.monitor
  92.  
  93. ### Load additional modules from GSettings. This can be configured with the paprefs tool.
  94. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  95. ### loaded modules.
  96. .ifexists module-gsettings.so
  97. .nofail
  98. load-module module-gsettings
  99. .fail
  100. .endif
  101.  
  102. ### Automatically restore the default sink/source when changed by the user
  103. ### during runtime
  104. ### NOTE: This should be loaded as early as possible so that subsequent modules
  105. ### that look up the default sink/source get the right value
  106. load-module module-default-device-restore
  107.  
  108. ### Make sure we always have a sink around, even if it is a null sink.
  109. load-module module-always-sink
  110.  
  111. ### Honour intended role device property
  112. load-module module-intended-roles
  113.  
  114. ### Automatically suspend sinks/sources that become idle for too long
  115. load-module module-suspend-on-idle
  116.  
  117. ### If autoexit on idle is enabled we want to make sure we only quit
  118. ### when no local session needs us anymore.
  119. .ifexists module-console-kit.so
  120. load-module module-console-kit
  121. .endif
  122. .ifexists module-systemd-login.so
  123. load-module module-systemd-login
  124. .endif
  125.  
  126. ### Enable positioned event sounds
  127. load-module module-position-event-sounds
  128.  
  129. ### Cork music/video streams when a phone stream is active
  130. load-module module-role-cork
  131.  
  132. ### Block audio recording for snap confined packages unless they have
  133. ### the "pulseaudio" or "audio-record" interfaces plugged.
  134. .ifexists module-snap-policy.so
  135. load-module module-snap-policy
  136. .endif
  137.  
  138. ### Modules to allow autoloading of filters (such as echo cancellation)
  139. ### on demand. module-filter-heuristics tries to determine what filters
  140. ### make sense, and module-filter-apply does the heavy-lifting of
  141. ### loading modules and rerouting streams.
  142. load-module module-filter-heuristics
  143. load-module module-filter-apply
  144.  
  145. ### Make some devices default
  146. #set-default-sink output
  147. #set-default-source input
  148.  
  149. ### Allow including a default.pa.d directory, which if present, can be used
  150. ### for additional configuration snippets.
  151. ### Note that those snippet files must have a .pa file extension, not .conf
  152. .nofail
  153. .include /etc/pulse/default.pa.d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement