Advertisement
4ndr0666

default.pa_alsadrivers

Nov 5th, 2023 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.36 KB | Fixit | 0 0
  1. #!/usr/bin/pulseaudio -nF
  2.  
  3. .fail
  4.  
  5. ### Automatically restore the volume of streams and devices
  6. load-module module-device-restore
  7. load-module module-stream-restore
  8. load-module module-card-restore
  9.  
  10. ### Automatically augment property information from .desktop files
  11. ### stored in /usr/share/application
  12. load-module module-augment-properties
  13.  
  14. ### Should be after module-*-restore but before module-*-detect
  15. load-module module-switch-on-port-available
  16.  
  17. ### Load audio drivers statically
  18. ### (it's probably better to not load these drivers manually, but instead
  19. ### use module-udev-detect -- see below -- for doing this automatically)
  20. #load-module module-alsa-sink
  21. #load-module module-alsa-source device=hw:1,0
  22. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  23. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  24. #load-module module-null-sink
  25. #load-module module-pipe-sink
  26.  
  27. ### Automatically load driver modules depending on the hardware available
  28. .ifexists module-udev-detect.so
  29. load-module module-udev-detect
  30. .else
  31. ### Use the static hardware detection module (for systems that lack udev support)
  32. load-module module-detect
  33. .endif
  34.  
  35. ### Automatically connect sink and source if JACK server is present
  36. .ifexists module-jackdbus-detect.so
  37. .nofail
  38. load-module module-jackdbus-detect channels=2
  39. .fail
  40. .endif
  41.  
  42. ### Automatically load driver modules for Bluetooth hardware
  43. .ifexists module-bluetooth-policy.so
  44. load-module module-bluetooth-policy
  45. .endif
  46.  
  47. .ifexists module-bluetooth-discover.so
  48. load-module module-bluetooth-discover
  49. .endif
  50.  
  51. ### Load several protocols
  52. load-module module-dbus-protocol
  53. .ifexists module-esound-protocol-unix.so
  54. load-module module-esound-protocol-unix
  55. .endif
  56. load-module module-native-protocol-unix
  57.  
  58. ### Network access (may be configured with paprefs, so leave this commented
  59. ### here if you plan to use paprefs)
  60. #load-module module-esound-protocol-tcp
  61. #load-module module-native-protocol-tcp
  62. #load-module module-zeroconf-publish
  63.  
  64. ### Load the RTP receiver module (also configured via paprefs, see above)
  65. #load-module module-rtp-recv
  66.  
  67. ### Load the RTP sender module (also configured via paprefs, see above)
  68. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  69. #load-module module-rtp-send source=rtp.monitor
  70.  
  71. ### Load additional modules from GSettings. This can be configured with the paprefs tool.
  72. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  73. ### loaded modules.
  74. .ifexists module-gsettings.so
  75. .nofail
  76. load-module module-gsettings
  77. .fail
  78. .endif
  79.  
  80. ### Automatically restore the default sink/source when changed by the user
  81. ### during runtime
  82. ### NOTE: This should be loaded as early as possible so that subsequent modules
  83. ### that look up the default sink/source get the right value
  84. load-module module-default-device-restore
  85.  
  86. ### Make sure we always have a sink around, even if it is a null sink.
  87. load-module module-always-sink
  88.  
  89. ### Honour intended role device property
  90. load-module module-intended-roles
  91.  
  92. ### Automatically suspend sinks/sources that become idle for too long
  93. load-module module-suspend-on-idle
  94.  
  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.  
  104. ### Enable positioned event sounds
  105. load-module module-position-event-sounds
  106.  
  107. ### Cork music/video streams when a phone stream is active
  108. load-module module-role-cork
  109.  
  110. ### Modules to allow autoloading of filters (such as echo cancellation)
  111. ### on demand. module-filter-heuristics tries to determine what filters
  112. ### make sense, and module-filter-apply does the heavy-lifting of
  113. ### loading modules and rerouting streams.
  114. load-module module-filter-heuristics
  115. load-module module-filter-apply
  116.  
  117. ### Make some devices default
  118. set-card-profile 0 output:analog-stereo
  119. set-default-sink 1
  120.  
  121. #set-default-sink output
  122. #set-default-source input
  123.  
  124. ### Allow including a default.pa.d directory, which if present, can be used
  125. ### for additional configuration snippets.
  126. ### Note that those snippet files must have a .pa file extension, not .conf
  127. .nofail
  128. .include /etc/pulse/default.pa.d
  129.  
Tags: pulseaudio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement