~binli/ubuntu/vivid/pulseaudio/load-extcon-module

« back to all changes in this revision

Viewing changes to man/pulse-cli-syntax.5.xml.in

  • Committer: Bin Li
  • Date: 2016-01-23 15:04:48 UTC
  • Revision ID: bin.li@canonical.com-20160123150448-5ockvw4p5xxntda4
init the 1:6.0-0ubuntu9.15 from silo 12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?><!--*-nxml-*-->
 
2
<!DOCTYPE manpage SYSTEM "xmltoman.dtd">
 
3
<?xml-stylesheet type="text/xsl" href="xmltoman.xsl" ?>
 
4
 
 
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
 
10
published by the Free Software Foundation; either version 2.1 of the
 
11
License, or (at your option) any later version.
 
12
 
 
13
PulseAudio is distributed in the hope that it will be useful, but WITHOUT
 
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
15
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
 
16
Public License for more details.
 
17
 
 
18
You should have received a copy of the GNU Lesser General Public
 
19
License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 
20
-->
 
21
 
 
22
<manpage name="pulse-cli-syntax" section="5" desc="PulseAudio Command Line Interface Syntax">
 
23
 
 
24
  <synopsis>
 
25
    <p><file>~/.config/pulse/default.pa</file></p>
 
26
    <p><file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file></p>
 
27
    <p><file>@PA_DEFAULT_CONFIG_DIR@/system.pa</file></p>
 
28
  </synopsis>
 
29
 
 
30
  <description>
 
31
    <p>
 
32
      PulseAudio provides a simple command line language used by configuration
 
33
      scripts, the pacmd interactive shell, and the modules module-cli and
 
34
      module-cli-protocol-{unix,tcp}. Empty lines and lines beginning with a
 
35
      hashmark (#) are silently ignored. Several commands are supported.
 
36
    </p>
 
37
 
 
38
    <p>
 
39
      Note that any boolean arguments can be given positively as '1', 't', 'y',
 
40
      'true', 'yes' or 'on'. Likewise, negative values can be given as '0',
 
41
      'f', 'n', 'false', 'no' or 'off'. Case is ignored.
 
42
    </p>
 
43
  </description>
 
44
 
 
45
  <section name="General Commands">
 
46
 
 
47
    <option>
 
48
      <p><opt>help</opt></p>
 
49
      <optdesc><p>Show a quick help on the commands available.</p></optdesc>
 
50
    </option>
 
51
  </section>
 
52
 
 
53
  <section name="Status_Commands">
 
54
    <option>
 
55
      <p><opt>list-modules</opt></p>
 
56
      <optdesc><p>Show all currently loaded modules with their arguments.</p></optdesc>
 
57
    </option>
 
58
 
 
59
    <option>
 
60
      <p><opt>list-cards</opt></p>
 
61
      <optdesc><p>Show all currently registered cards</p></optdesc>
 
62
    </option>
 
63
 
 
64
    <option>
 
65
      <p><opt>list-sinks</opt> or <opt>list-sources</opt></p>
 
66
      <optdesc><p>Show all currently registered sinks (resp. sources).</p></optdesc>
 
67
    </option>
 
68
 
 
69
    <option>
 
70
      <p><opt>list-clients</opt></p>
 
71
      <optdesc><p>Show all currently active clients.</p></optdesc>
 
72
    </option>
 
73
 
 
74
    <option>
 
75
      <p><opt>list-sink-inputs</opt> or <opt>list-source-outputs</opt></p>
 
76
      <optdesc><p>Show all currently active inputs to sinks a.k.a. playback
 
77
      streams (resp. outputs of sources a.k.a. recording streams).</p></optdesc>
 
78
    </option>
 
79
 
 
80
    <option>
 
81
      <p><opt>stat</opt></p>
 
82
      <optdesc><p>Show some simple statistics about the allocated memory blocks and the space used by them.</p></optdesc>
 
83
    </option>
 
84
 
 
85
    <option>
 
86
      <p><opt>info</opt> or <opt>ls</opt> or <opt>list</opt></p>
 
87
      <optdesc><p>A combination of all status commands described above (all
 
88
      three commands are synonyms).</p></optdesc>
 
89
    </option>
 
90
  </section>
 
91
 
 
92
  <section name="Module Management">
 
93
    <option>
 
94
      <p><opt>load-module</opt> <arg>name</arg> [<arg>arguments...</arg>]</p>
 
95
      <optdesc><p>Load a module specified by its name and arguments. For most
 
96
      modules it is OK to be loaded more than once.</p></optdesc>
 
97
    </option>
 
98
 
 
99
    <option>
 
100
      <p><opt>unload-module</opt> <arg>index|name</arg></p>
 
101
      <optdesc><p>Unload a module, specified either by its index in the module
 
102
      list or its name.</p></optdesc>
 
103
    </option>
 
104
 
 
105
    <option>
 
106
      <p><opt>describe-module</opt> <arg>name</arg></p>
 
107
      <optdesc><p>Give information about a module specified by its name.</p></optdesc>
 
108
    </option>
 
109
  </section>
 
110
 
 
111
  <section name="Volume Commands">
 
112
    <option>
 
113
      <p><opt>set-sink-volume|set-source-volume</opt> <arg>index|name</arg> <arg>volume</arg></p>
 
114
      <optdesc><p>Set the volume of the specified sink (resp. source). You may
 
115
      specify the sink (resp. source) either by its index in the sink/source list
 
116
      or by its name. The volume should be an integer value greater or equal than
 
117
      0 (muted). Volume 65536 (0x10000) is 'normal' volume a.k.a. 100%. Values
 
118
      greater than this amplify the audio signal (with clipping).</p></optdesc>
 
119
    </option>
 
120
 
 
121
    <option>
 
122
      <p><opt>set-sink-mute|set-source-mute</opt> <arg>index|name</arg> <arg>boolean</arg></p>
 
123
      <optdesc><p>Mute or unmute the specified sink (resp. source). You may
 
124
      specify the sink (resp. source) either by its index or by its name.
 
125
      The mute value is either 0 (not muted) or 1 (muted).</p></optdesc>
 
126
    </option>
 
127
 
 
128
    <option>
 
129
      <p><opt>set-sink-input-volume|set-source-output-volume</opt> <arg>index</arg> <arg>volume</arg></p>
 
130
      <optdesc><p>Set the volume of a sink input (resp. source output) specified
 
131
      by its index. The same volume rules apply as with set-sink-volume.</p></optdesc>
 
132
    </option>
 
133
 
 
134
    <option>
 
135
      <p><opt>set-sink-input-mute|set-source-output-mute</opt> <arg>index</arg> <arg>boolean</arg></p>
 
136
      <optdesc><p>Mute or unmute a sink input (resp. source output) specified
 
137
      by its index. The same mute rules apply as with set-sink-mute.</p></optdesc>
 
138
    </option>
 
139
  </section>
 
140
 
 
141
  <section name="Configuration Commands">
 
142
    <option>
 
143
      <p><opt>set-default-sink|set-default-source</opt> <arg>index|name</arg></p>
 
144
      <optdesc><p>Make a sink (resp. source) the default. You may specify the
 
145
      sink (resp. source) by its index in the sink (resp. source) list or by its
 
146
      name.</p><p>Note that defaults may be overridden by various policy modules
 
147
      or by specific stream configurations.</p></optdesc>
 
148
    </option>
 
149
 
 
150
    <option>
 
151
      <p><opt>set-card-profile</opt> <arg>index|name</arg> <arg>profile-name</arg></p>
 
152
      <optdesc><p>Change the profile of a card.</p></optdesc>
 
153
    </option>
 
154
 
 
155
    <option>
 
156
      <p><opt>set-sink-port|set-source-port</opt> <arg>index|name</arg> <arg>port-name</arg></p>
 
157
      <optdesc><p>Change the profile of a sink (resp. source).</p></optdesc>
 
158
    </option>
 
159
 
 
160
    <option>
 
161
      <p><opt>set-port-latency-offset</opt> <arg>card-index|card-name</arg> <arg>port-name</arg> <arg>offset</arg> </p>
 
162
      <optdesc><p>Change the latency offset of a port belonging to the specified card</p></optdesc>
 
163
    </option>
 
164
 
 
165
    <option>
 
166
      <p><opt>suspend-sink|suspend-source</opt> <arg>index|name</arg> <arg>boolean</arg></p>
 
167
      <optdesc><p>Suspend (i.e. disconnect from the underlying hardware) a sink
 
168
      (resp. source).</p></optdesc>
 
169
    </option>
 
170
 
 
171
    <option>
 
172
      <p><opt>suspend</opt> <arg>boolean</arg></p>
 
173
      <optdesc><p>Suspend all sinks and sources.</p></optdesc>
 
174
    </option>
 
175
  </section>
 
176
 
 
177
  <section name="Moving streams">
 
178
    <option>
 
179
      <p><opt>move-sink-input|move-source-output</opt> <arg>index</arg> <arg>sink-index|sink-name</arg></p>
 
180
      <optdesc><p>Move sink input (resp. source output) to another sink
 
181
      (resp. source).</p></optdesc>
 
182
    </option>
 
183
  </section>
 
184
 
 
185
  <section name="Property lists">
 
186
    <option>
 
187
      <p><opt>update-sink-proplist|update-source-proplist</opt> <arg>index|name</arg> <arg>properties</arg></p>
 
188
      <optdesc><p>Update the properties of a sink (resp. source) specified by
 
189
      name or index. The property is specified as e.g. device.description="My
 
190
      Preferred Name"</p></optdesc>
 
191
    </option>
 
192
 
 
193
    <option>
 
194
      <p><opt>update-sink-input-proplist|update-source-output-proplist</opt> <arg>index</arg> <arg>properties</arg></p>
 
195
      <optdesc><p>Update the properties of a sink input (resp. source output)
 
196
      specified by index. The properties are specified as above.</p></optdesc>
 
197
    </option>
 
198
  </section>
 
199
 
 
200
  <section name="Sample Cache">
 
201
    <option>
 
202
      <p><opt>list-samples</opt></p>
 
203
      <optdesc><p>Lists the contents of the sample cache.</p></optdesc>
 
204
    </option>
 
205
 
 
206
    <option>
 
207
      <p><opt>play-sample</opt> <arg>name</arg> <arg>sink-index|sink-name</arg></p>
 
208
      <optdesc><p>Play a sample cache entry to a sink.</p></optdesc>
 
209
    </option>
 
210
 
 
211
    <option>
 
212
      <p><opt>remove-sample</opt> <arg>name</arg></p>
 
213
      <optdesc><p>Remove an entry from the sample cache.</p></optdesc>
 
214
    </option>
 
215
 
 
216
    <option>
 
217
      <p><opt>load-sample</opt> <arg>name</arg> <arg>filename</arg></p>
 
218
      <optdesc><p>Load an audio file to the sample cache.</p></optdesc>
 
219
    </option>
 
220
 
 
221
    <option>
 
222
      <p><opt>load-sample-lazy</opt> <arg>name</arg> <arg>filename</arg></p>
 
223
      <optdesc><p>Create a new entry in the sample cache, but don't load the
 
224
      sample immediately. The sample is loaded only when it is first used.
 
225
      After a certain idle time it is freed again.</p></optdesc>
 
226
    </option>
 
227
 
 
228
    <option>
 
229
      <p><opt>load-sample-dir-lazy</opt> <arg>path</arg></p>
 
230
      <optdesc><p>Load all entries in the specified directory into the sample
 
231
      cache as lazy entries. A shell globbing expression (e.g. *.wav) may be
 
232
      appended to the path of the directory to add.</p></optdesc>
 
233
    </option>
 
234
  </section>
 
235
 
 
236
  <section name="Killing Clients/Streams">
 
237
    <option>
 
238
      <p><opt>kill-client</opt> <arg>index</arg></p>
 
239
      <optdesc><p>Remove a client forcibly from the server. There is no protection
 
240
      against the client reconnecting immediately.</p></optdesc>
 
241
    </option>
 
242
 
 
243
    <option>
 
244
      <p><opt>kill-sink-input|kill-source-output</opt> <arg>index</arg></p>
 
245
      <optdesc><p>Remove a sink input (resp. source output) forcibly from the
 
246
      server. This will not remove the owning client or any other streams opened
 
247
      by the same client from the server.</p></optdesc>
 
248
    </option>
 
249
  </section>
 
250
 
 
251
  <section name="Log Commands">
 
252
    <option>
 
253
      <p><opt>set-log-level</opt> <arg>numeric-level</arg></p>
 
254
      <optdesc><p>Change the log level.</p></optdesc>
 
255
    </option>
 
256
 
 
257
    <option>
 
258
      <p><opt>set-log-meta</opt> <arg>boolean</arg></p>
 
259
      <optdesc><p>Show source code location in log messages.</p></optdesc>
 
260
    </option>
 
261
 
 
262
    <option>
 
263
      <p><opt>set-log-target</opt> <arg>target</arg></p>
 
264
      <optdesc><p>Change the log target (null, auto, journal, syslog, stderr,
 
265
      file:PATH, newfile:PATH).</p></optdesc>
 
266
    </option>
 
267
 
 
268
    <option>
 
269
      <p><opt>set-log-time</opt> <arg>boolean</arg></p>
 
270
      <optdesc><p>Show timestamps in log messages.</p></optdesc>
 
271
    </option>
 
272
 
 
273
    <option>
 
274
      <p><opt>set-log-backtrace</opt> <arg>num-frames</arg></p>
 
275
      <optdesc><p>Show backtrace in log messages.</p></optdesc>
 
276
    </option>
 
277
  </section>
 
278
 
 
279
  <section name="Miscellaneous Commands">
 
280
    <option>
 
281
      <p><opt>play-file</opt> <arg>filename</arg> <arg>sink-index|sink-name</arg></p>
 
282
      <optdesc><p>Play an audio file to a sink.</p></optdesc>
 
283
    </option>
 
284
 
 
285
    <option>
 
286
      <p><opt>dump</opt></p>
 
287
      <optdesc><p>Dump the daemon's current configuration in CLI commands.</p></optdesc>
 
288
    </option>
 
289
 
 
290
    <option>
 
291
      <p><opt>dump-volumes</opt></p>
 
292
      <optdesc><p>Debug: Shows the current state of all volumes.</p></optdesc>
 
293
    </option>
 
294
 
 
295
    <option>
 
296
      <p><opt>shared</opt></p>
 
297
      <optdesc><p>Debug: Show shared properties.</p></optdesc>
 
298
    </option>
 
299
 
 
300
    <option>
 
301
      <p><opt>exit</opt></p>
 
302
      <optdesc><p>Terminate the daemon. If you want to terminate a CLI
 
303
      connection ("log out") you might want to use ctrl+d</p></optdesc>
 
304
    </option>
 
305
  </section>
 
306
 
 
307
  <section name="Meta Commands">
 
308
    <p>
 
309
      In addition to the commands described above there are a few meta directives
 
310
      supported by the command line interpreter.
 
311
    </p>
 
312
    <option>
 
313
      <p><opt>.include</opt> <arg>filename|folder</arg></p>
 
314
      <optdesc><p>Executes the commands from the specified script file or in all
 
315
      of the *.pa file within the folder.</p></optdesc>
 
316
    </option>
 
317
    <option>
 
318
      <p><opt>.fail</opt> and <opt>.nofail</opt></p>
 
319
      <optdesc><p>Enable (resp. disable) that following failing commands will
 
320
      cancel the execution of the current script file. This is a ignored when
 
321
      used on the interactive command line.</p></optdesc>
 
322
    </option>
 
323
  </section>
 
324
 
 
325
  <section name="Authors">
 
326
    <p>The PulseAudio Developers &lt;@PACKAGE_BUGREPORT@&gt;;
 
327
    PulseAudio is available from <url href="@PACKAGE_URL@"/></p>
 
328
  </section>
 
329
 
 
330
  <section name="See also">
 
331
    <p>
 
332
      <manref name="default.pa" section="5"/>,
 
333
      <manref name="pacmd" section="1"/>,
 
334
      <manref name="pulseaudio" section="1"/>
 
335
    </p>
 
336
  </section>
 
337
 
 
338
</manpage>