Advertisement
charlie_02

default.pa

Dec 25th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. cat: /etc/systemd/system/pulseaudio.service: Aucun fichier ou dossier de ce type
  2. [root@lenovo-giacopelli ~]# vim /etc/pulse/default.pa
  3. [root@lenovo-giacopelli ~]# cat /etc/pulse/default.pa
  4. #!/usr/bin/pulseaudio -nF
  5. #
  6. # This file is part of PulseAudio.
  7. #
  8. # PulseAudio is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # PulseAudio is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Lesser General Public License
  19. # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
  20.  
  21. # This startup script is used only if PulseAudio is started per-user
  22. # (i.e. not in system mode)
  23.  
  24. .fail
  25.  
  26. ### Automatically restore the volume of streams and devices
  27. load-module module-device-restore
  28. load-module module-stream-restore
  29. load-module module-card-restore
  30.  
  31. ### Automatically augment property information from .desktop files
  32. ### stored in /usr/share/application
  33. load-module module-augment-properties
  34.  
  35. ### Should be after module-*-restore but before module-*-detect
  36. load-module module-switch-on-port-available
  37.  
  38. ### Load audio drivers statically
  39. ### (it's probably better to not load these drivers manually, but instead
  40. ### use module-udev-detect -- see below -- for doing this automatically)
  41. #load-module module-alsa-sink
  42. #load-module module-alsa-source device=hw:1,0
  43. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  44. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  45. #load-module module-null-sink
  46. #load-module module-pipe-sink
  47.  
  48. ### Automatically load driver modules depending on the hardware available
  49. .ifexists module-udev-detect.so
  50. load-module module-udev-detect
  51. .else
  52. ### Use the static hardware detection module (for systems that lack udev support)
  53. load-module module-detect
  54. .endif
  55.  
  56. ### Automatically connect sink and source if JACK server is present
  57. .ifexists module-jackdbus-detect.so
  58. .nofail
  59. load-module module-jackdbus-detect channels=2
  60. .fail
  61. .endif
  62.  
  63. ### Automatically load driver modules for Bluetooth hardware
  64. .ifexists module-bluetooth-policy.so
  65. load-module module-bluetooth-policy
  66. .endif
  67.  
  68. .ifexists module-bluetooth-discover.so
  69. load-module module-bluetooth-discover
  70. .endif
  71.  
  72. ### Load several protocols
  73. load-module module-dbus-protocol
  74. .ifexists module-esound-protocol-unix.so
  75. load-module module-esound-protocol-unix
  76. .endif
  77. load-module module-native-protocol-unix
  78.  
  79. ### Network access (may be configured with paprefs, so leave this commented
  80. ### here if you plan to use paprefs)
  81. #load-module module-esound-protocol-tcp
  82. #load-module module-native-protocol-tcp
  83. #load-module module-zeroconf-publish
  84.  
  85. ### Load the RTP receiver module (also configured via paprefs, see above)
  86. #load-module module-rtp-recv
  87.  
  88. ### Load the RTP sender module (also configured via paprefs, see above)
  89. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  90. #load-module module-rtp-send source=rtp.monitor
  91.  
  92. ### Load additional modules from GSettings. This can be configured with the paprefs tool.
  93. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  94. ### loaded modules.
  95. .ifexists module-gsettings.so
  96. .nofail
  97. load-module module-gsettings
  98. .fail
  99. .endif
  100.  
  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. ### Automatically move streams to the default sink if the sink they are
  109. ### connected to dies, similar for sources
  110. load-module module-rescue-streams
  111.  
  112. ### Make sure we always have a sink around, even if it is a null sink.
  113. load-module module-always-sink
  114.  
  115. ### Honour intended role device property
  116. load-module module-intended-roles
  117.  
  118. ### Automatically suspend sinks/sources that become idle for too long
  119. load-module module-suspend-on-idle
  120.  
  121. ### If autoexit on idle is enabled we want to make sure we only quit
  122. ### when no local session needs us anymore.
  123. .ifexists module-console-kit.so
  124. load-module module-console-kit
  125. .endif
  126. .ifexists module-systemd-login.so
  127. load-module module-systemd-login
  128. .endif
  129.  
  130. ### Enable positioned event sounds
  131. load-module module-position-event-sounds
  132.  
  133. ### Cork music/video streams when a phone stream is active
  134. load-module module-role-cork
  135.  
  136. ### Modules to allow autoloading of filters (such as echo cancellation)
  137. ### on demand. module-filter-heuristics tries to determine what filters
  138. ### make sense, and module-filter-apply does the heavy-lifting of
  139. ### loading modules and rerouting streams.
  140. load-module module-filter-heuristics
  141. load-module module-filter-apply
  142.  
  143. ### Make some devices default
  144. #set-default-sink output
  145. #set-default-source input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement