Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.63 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, write to the Free Software Foundation,
  17. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  18.  
  19. # This startup script is used only if PulseAudio is started per-user
  20. # (i.e. not in system mode)
  21.  
  22. .nofail
  23.  
  24. ### Load something into the sample cache
  25. #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
  26. #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  27. #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
  28. #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
  29.  
  30. .fail
  31.  
  32. ### Automatically restore the volume of streams and devices
  33. load-module module-device-restore
  34. load-module module-stream-restore
  35. load-module module-card-restore
  36.  
  37. ### Automatically augment property information from .desktop files
  38. ### stored in /usr/share/application
  39. load-module module-augment-properties
  40.  
  41. ### Should be after module-*-restore but before module-*-detect
  42. load-module module-switch-on-port-available
  43.  
  44. ### Load audio drivers statically
  45. ### (it's probably better to not load these drivers manually, but instead
  46. ### use module-udev-detect -- see below -- for doing this automatically)
  47. #load-module module-alsa-sink
  48. #load-module module-alsa-source device=hw:1,0
  49. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  50. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  51. #load-module module-null-sink
  52. #load-module module-pipe-sink
  53.  
  54. ### MANUAL LOADING
  55. #load-module module-alsa-source device=hw:2,1
  56. ### --------------
  57.  
  58. ### Automatically load driver modules depending on the hardware available
  59. .ifexists module-udev-detect.so
  60. load-module module-udev-detect
  61. .else
  62. ### Use the static hardware detection module (for systems that lack udev support)
  63. load-module module-detect
  64. .endif
  65.  
  66. .ifexists module-android-audio-hal.so
  67. load-module module-android-audio-hal
  68. .endif
  69.  
  70. ### Automatically connect sink and source if JACK server is present
  71. .ifexists module-jackdbus-detect.so
  72. .nofail
  73. load-module module-jackdbus-detect channels=2
  74. .fail
  75. .endif
  76.  
  77. ### Automatically load driver modules for Bluetooth hardware
  78. .ifexists module-bluetooth-policy.so
  79. load-module module-bluetooth-policy
  80. .endif
  81.  
  82. .ifexists module-bluetooth-discover.so
  83. load-module module-bluetooth-discover
  84. .endif
  85.  
  86. ### Load several protocols
  87. .ifexists module-esound-protocol-unix.so
  88. load-module module-esound-protocol-unix
  89. .endif
  90. load-module module-native-protocol-unix
  91.  
  92. ### Network access (may be configured with paprefs, so leave this commented
  93. ### here if you plan to use paprefs)
  94. #load-module module-esound-protocol-tcp
  95. #load-module module-native-protocol-tcp
  96. #load-module module-zeroconf-publish
  97.  
  98. ### Load the RTP receiver module (also configured via paprefs, see above)
  99. #load-module module-rtp-recv
  100.  
  101. ### Load the RTP sender module (also configured via paprefs, see above)
  102. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  103. #load-module module-rtp-send source=rtp.monitor
  104.  
  105. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  106. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  107. ### loaded modules.
  108. .ifexists module-gconf.so
  109. .nofail
  110. load-module module-gconf
  111. .fail
  112. .endif
  113.  
  114. ### Automatically restore the default sink/source when changed by the user
  115. ### during runtime
  116. ### NOTE: This should be loaded as early as possible so that subsequent modules
  117. ### that look up the default sink/source get the right value
  118. load-module module-default-device-restore
  119.  
  120. ### Automatically move streams to the default sink if the sink they are
  121. ### connected to dies, similar for sources
  122. load-module module-rescue-streams
  123.  
  124. ### Make sure we always have a sink around, even if it is a null sink.
  125. load-module module-always-sink
  126.  
  127. ### Honour intended role device property
  128. load-module module-intended-roles
  129.  
  130. ### Automatically suspend sinks/sources that become idle for too long
  131. load-module module-suspend-on-idle
  132.  
  133. ### If autoexit on idle is enabled we want to make sure we only quit
  134. ### when no local session needs us anymore.
  135. .ifexists module-console-kit.so
  136. load-module module-console-kit
  137. .endif
  138. .ifexists module-systemd-login.so
  139. load-module module-systemd-login
  140. .endif
  141.  
  142. ### Enable positioned event sounds
  143. load-module module-position-event-sounds
  144.  
  145. ### Cork music/video streams when a phone stream is active
  146. #load-module module-role-cork
  147.  
  148. ### Modules to allow autoloading of filters (such as echo cancellation)
  149. ### on demand. module-filter-heuristics tries to determine what filters
  150. ### make sense, and module-filter-apply does the heavy-lifting of
  151. ### loading modules and rerouting streams.
  152. load-module module-filter-heuristics
  153. load-module module-filter-apply
  154.  
  155. # X11 modules should not be started from default.pa so that one daemon
  156. # can be shared by multiple sessions.
  157.  
  158. ### Load X11 bell module
  159. #load-module module-x11-bell sample=bell-windowing-system
  160.  
  161. ### Register ourselves in the X11 session manager
  162. #load-module module-x11-xsmp
  163.  
  164. ### Publish connection data in the X11 root window
  165. #.ifexists module-x11-publish.so
  166. #.nofail
  167. #load-module module-x11-publish
  168. #.fail
  169. #.endif
  170.  
  171. ### Make some devices default
  172. #set-default-sink output
  173. #set-default-source input
  174.  
  175. **** List of PLAYBACK Hardware Devices ****
  176. card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  177. Subdevices: 1/1
  178. Subdevice #0: subdevice #0
  179. card 0: SB [HDA ATI SB], device 3: VT1708S Digital [VT1708S Digital]
  180. Subdevices: 1/1
  181. Subdevice #0: subdevice #0
  182. card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  183. Subdevices: 1/1
  184. Subdevice #0: subdevice #0
  185. card 2: CARD [STRIX SOUND CARD], device 0: USB Audio [USB Audio]
  186. Subdevices: 1/1
  187. Subdevice #0: subdevice #0
  188. card 2: CARD [STRIX SOUND CARD], device 1: USB Audio [USB Audio #1]
  189. Subdevices: 1/1
  190. Subdevice #0: subdevice #0
  191. card 2: CARD [STRIX SOUND CARD], device 2: USB Audio [USB Audio #2]
  192. Subdevices: 1/1
  193. Subdevice #0: subdevice #0
  194.  
  195. **** List of CAPTURE Hardware Devices ****
  196. card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  197. Subdevices: 1/1
  198. Subdevice #0: subdevice #0
  199. card 2: CARD [STRIX SOUND CARD], device 1: USB Audio [USB Audio #1]
  200. Subdevices: 1/1
  201. Subdevice #0: subdevice #0
  202.  
  203. Welcome to PulseAudio! Use "help" for usage information.
  204. >>> 1 source(s) available.
  205. * index: 0
  206. name: <alsa_output.usb-ASUSTeK_STRIX_SOUND_CARD-00-CARD.analog-stereo.monitor>
  207. driver: <module-alsa-card.c>
  208. flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
  209. state: SUSPENDED
  210. suspend cause: IDLE
  211. priority: 1040
  212. volume: 0: 100% 1: 100%
  213. 0: 0.00 dB 1: 0.00 dB
  214. balance 0.00
  215. base volume: 100%
  216. 0.00 dB
  217. volume steps: 65537
  218. muted: no
  219. current latency: 0.00 ms
  220. max rewind: 0 KiB
  221. sample spec: s16le 2ch 44100Hz
  222. channel map: front-left,front-right
  223. Stereo
  224. used by: 0
  225. linked by: 0
  226. configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
  227. monitor_of: 0
  228. card: 1 <alsa_card.usb-ASUSTeK_STRIX_SOUND_CARD-00-CARD>
  229. module: 6
  230. properties:
  231. device.description = "Monitor of STRIX SOUND CARD Analog Stereo"
  232. device.class = "monitor"
  233. alsa.card = "2"
  234. alsa.card_name = "STRIX SOUND CARD"
  235. alsa.long_card_name = "ASUSTeK STRIX SOUND CARD at usb-0000:02:00.0-1, high speed"
  236. alsa.driver_name = "snd_usb_audio"
  237. device.bus_path = "pci-0000:02:00.0-usb-0:1:1.0"
  238. sysfs.path = "/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-1/8-1:1.0/sound/card2"
  239. udev.id = "usb-ASUSTeK_STRIX_SOUND_CARD-00-CARD"
  240. device.bus = "usb"
  241. device.vendor.id = "0b05"
  242. device.vendor.name = "ASUSTek Computer, Inc."
  243. device.product.id = "180d"
  244. device.product.name = "STRIX SOUND CARD"
  245. device.serial = "ASUSTeK_STRIX_SOUND_CARD"
  246. device.string = "2"
  247. module-udev-detect.discovered = "1"
  248. device.icon_name = "audio-card-usb"
  249. >>>
  250.  
  251. Welcome to PulseAudio! Use "help" for usage information.
  252. >>> 1 sink(s) available.
  253. * index: 0
  254. name: <alsa_output.usb-ASUSTeK_STRIX_SOUND_CARD-00-CARD.analog-stereo>
  255. driver: <module-alsa-card.c>
  256. flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
  257. state: SUSPENDED
  258. suspend cause: IDLE
  259. priority: 9049
  260. volume: 0: 100% 1: 100%
  261. 0: 0.00 dB 1: 0.00 dB
  262. balance 0.00
  263. base volume: 100%
  264. 0.00 dB
  265. volume steps: 65537
  266. muted: no
  267. current latency: 0.00 ms
  268. max request: 0 KiB
  269. max rewind: 0 KiB
  270. monitor source: 0
  271. sample spec: s16le 2ch 44100Hz
  272. channel map: front-left,front-right
  273. Stereo
  274. used by: 0
  275. linked by: 0
  276. configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
  277. card: 1 <alsa_card.usb-ASUSTeK_STRIX_SOUND_CARD-00-CARD>
  278. module: 6
  279. properties:
  280. alsa.resolution_bits = "16"
  281. device.api = "alsa"
  282. device.class = "sound"
  283. alsa.class = "generic"
  284. alsa.subclass = "generic-mix"
  285. alsa.name = "USB Audio"
  286. alsa.id = "USB Audio"
  287. alsa.subdevice = "0"
  288. alsa.subdevice_name = "subdevice #0"
  289. alsa.device = "0"
  290. alsa.card = "2"
  291. alsa.card_name = "STRIX SOUND CARD"
  292. alsa.long_card_name = "ASUSTeK STRIX SOUND CARD at usb-0000:02:00.0-1, high speed"
  293. alsa.driver_name = "snd_usb_audio"
  294. device.bus_path = "pci-0000:02:00.0-usb-0:1:1.0"
  295. sysfs.path = "/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-1/8-1:1.0/sound/card2"
  296. udev.id = "usb-ASUSTeK_STRIX_SOUND_CARD-00-CARD"
  297. device.bus = "usb"
  298. device.vendor.id = "0b05"
  299. device.vendor.name = "ASUSTek Computer, Inc."
  300. device.product.id = "180d"
  301. device.product.name = "STRIX SOUND CARD"
  302. device.serial = "ASUSTeK_STRIX_SOUND_CARD"
  303. device.string = "front:2"
  304. device.buffering.buffer_size = "352800"
  305. device.buffering.fragment_size = "176400"
  306. device.access_mode = "mmap+timer"
  307. device.profile.name = "analog-stereo"
  308. device.profile.description = "Analog Stereo"
  309. device.description = "STRIX SOUND CARD Analog Stereo"
  310. module-udev-detect.discovered = "1"
  311. device.icon_name = "audio-card-usb"
  312. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement