~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to man/pulseaudio.1

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071204005608-y1xqvcu45g1yxtlu
Tags: 0.9.8-1ubuntu1
"Hail our new PulseAudio overlords (part two)."

* Merge from Debian unstable.
* Ubuntu-specific changes:
  - debian/control:
    + Don't build-depend on libjack0.100.0-dev or build jack module
      packages,
    + Update pulseaudio's Recommends and Suggests to accomodate
      existing promoted main packages,
    + Explicitly mention pasuspender in pulseaudio-utils's long
      description,
    + Add Vcs-Bzr URI,
    + Adhere to DebianMaintainerField;
  - debian/rules: Use multiuser for update-rc.d;
  - debian/patches/series: Retain the exclusion of
    0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch.
* Dropped Ubuntu-specific change (absorbed into Debian source):
  debian/patches/0002-Double-esound-maximum-sample-size.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH pulseaudio 1 User Manuals
 
2
.SH NAME
 
3
pulseaudio \- The PulseAudio Sound System
 
4
.SH SYNOPSIS
 
5
\fBpulseaudio [\fIoptions\fB]
 
6
 
 
7
pulseaudio --help\fB
 
8
 
 
9
pulseaudio --version\fB
 
10
 
 
11
pulseaudio --dump-conf\fB
 
12
 
 
13
pulseaudio --dump-modules\fB
 
14
 
 
15
pulseaudio --dump-resample-methods\fB
 
16
 
 
17
pulseaudio --cleanup-shm\fB
 
18
 
 
19
pulseaudio --kill\fB
 
20
 
 
21
pulseaudio --check\fB
 
22
\f1
 
23
.SH DESCRIPTION
 
24
PulseAudio is a networked low-latency sound server for Linux, POSIX and Windows systems.
 
25
.SH OPTIONS
 
26
.TP
 
27
\fB-h | --help\f1
 
28
Show help.
 
29
.TP
 
30
\fB--version\f1
 
31
Show version information.
 
32
.TP
 
33
\fB--dump-conf\f1
 
34
Load the daemon configuration file \fIdaemon.conf\f1 (see below), parse remaining configuration options on the command line and dump the resulting daemon configuration, in a format that is compatible with \fIdaemon.conf\f1.
 
35
.TP
 
36
\fB--dump-modules\f1
 
37
List available loadable modules. Combine with \fB-v\f1 for a more elaborate listing.
 
38
.TP
 
39
\fB--dump-resampe-methods\f1
 
40
List available audio resamplers.
 
41
.TP
 
42
\fB--cleanup-shm\f1
 
43
Identify stale PulseAudio POSIX shared memory segments in \fI/dev/shm\f1 and remove them if possible. This is done implicitly whenever a new daemon starts up or a client tries to connect to a daemon. It should normally not be necessary to issue this command by hand. Only available on systems with POSIX shared memory segments implemented via a virtual file system mounted to \fI/dev/shm\f1 (e.g. Linux).
 
44
.TP
 
45
\fB-k | --kill\f1
 
46
Kill an already running PulseAudio daemon of the calling user (Equivalent to sending a SIGTERM).
 
47
.TP
 
48
\fB--check\f1
 
49
Return 0 as return code when the PulseAudio daemon is already running for the calling user.
 
50
.TP
 
51
\fB--system\f1\fI[=BOOL]\f1
 
52
Run as system-wide instance instead of per-user. Please not that this disables certain features of PulseAudio and is generally not recommended unless the system knows no local users (e.g. is a thin client). This feature needs special configuration and a dedicated UNIX user set up. It is highly recommended to combine this with \fB--disallow-module-loading\f1 (see below).
 
53
.TP
 
54
\fB-D | --daemon\f1\fI[=BOOL]\f1
 
55
Daemonize after startup, i.e. detach from the terminal.
 
56
.TP
 
57
\fB--fail\f1\fI[=BOOL]\f1
 
58
Fail startup when any of the commands specified in the startup script \fIdefault.pa\f1 (see below) fails.
 
59
.TP
 
60
\fB--high-priority\f1\fI[=BOOL]\f1
 
61
Try to acquire a high Unix nice level. This will only succeed if the calling user has a non-zero RLIMIT_NICE resource limit set (on systems that support this), or we're called SUID root (see below), or we are configure to be run as system daemon (see \fI--system\f1 above). It is recommended to enable this, since it is only a negligible security risk (see below).
 
62
.TP
 
63
\fB--realtime\f1\fI[=BOOL]\f1
 
64
Try to acquire a real-time scheduling for PulseAudio's I/O threads. This will only succeed if the calling user has a non-zero RLIMIT_RTPRIO resource limit set (on systems that support this), or we're called SUID root (see below), or we are configure to be run as system daemon (see \fI--system\f1 above). It is recommended to enable this only for trusted users, since it is a major security risk (see below).
 
65
.TP
 
66
\fB--disallow-module-loading\f1\fI[=BOOL]\f1
 
67
Disallow module loading after startup. This is a security feature since it disallows additional module loading during runtime and on user request. It is highly recommended when \fI--system\f1 is used (see above). Note however, that this breaks certain features like automatic module loading on hot plug.
 
68
.TP
 
69
\fB--exit-idle-time\f1\fI=SECS\f1
 
70
Terminate the daemon when idle and the specified number of seconds passed.
 
71
.TP
 
72
\fB--module-idle-time\f1\fI=SECS\f1
 
73
Unload autoloaded modules when idle and the specified number of seconds passed.
 
74
.TP
 
75
\fB--scache-idle-time\f1\fI=SECS\f1
 
76
Unload autoloaded samples from the cache when the haven't been used for the specified number of seconds.
 
77
.TP
 
78
\fB--log-level\f1\fI[=LEVEL]\f1
 
79
If an argument is passed, set the log level to the specified value, otherwise increase the configured verbosity level by one. The log levels are numerical from 0 to 4, corresponding to \fIerror\f1, \fIwarn\f1, \fInotice\f1, \fIinfo\f1, \fIdebug\f1. Default log level is \fInotice\f1, i.e. all log messages with lower log levels are printed: \fIerror\f1, \fIwarn\f1, \fInotice\f1.
 
80
.TP
 
81
\fB-v\f1
 
82
Increase the configured verbosity level by one (see \fB--log-level\f1 above). Specify multiple times to increase log level multiple times.
 
83
.TP
 
84
\fB--log-target\f1\fI={auto,syslog,stderr}\f1
 
85
Specify the log target. If set to \fIauto\f1 (which is the default), then logging is directed to syslog when \fB--daemonize\f1 is passed, otherwise to STDERR.
 
86
.TP
 
87
\fB--p | --dl-search-path\f1\fI=PATH\f1
 
88
Set the search path for dynamic shared objects (plugins).
 
89
.TP
 
90
\fB--resample-method\f1\fI=METHOD\f1
 
91
Use the specified resampler by default (See \fB--dump-resample-methods\f1 above for possible values).
 
92
.TP
 
93
\fB--use-pid-file\f1\fI[=BOOL]\f1
 
94
Create a PID file. If this options is disabled it is possible to run multiple sound servers per user.
 
95
.TP
 
96
\fB--no-cpu-limit\f1\fI[=BOOL]\f1
 
97
Do not install CPU load limiter on platforms that support it. By default, PulseAudio will terminate itself when it notices that it takes up too much CPU time. This is useful as a protection against system lockups when real-time scheduling is used (see below). Disabling this meachnism is useful when debugging PulseAudio with tools like \fBvalgrind(1)\f1 which slow down execution.
 
98
.TP
 
99
\fB--disable-shm\f1\fI[=BOOL]\f1
 
100
PulseAudio clients and the server can exchange audio data via POSIX shared memory segments (on systems that support this). If disabled PulseAudio will communicate exclusively over sockets. Please note that data transfer via shared memory segments is always disabled when PulseAudio is running with \fB--system\f1 enabled (see above).
 
101
.TP
 
102
\fB-L | --load\f1\fI="MODULE ARGUMENTS"\f1
 
103
Load the specified plugin module with the specified arguments.
 
104
.TP
 
105
\fB-F | --file\f1\fI=FILENAME\f1
 
106
Run the specified script on startup. May be specified multiple times to specify multiple scripts to be run in order. Combine with \fB-n\f1 to disable loading of the default script \fIdefault.pa\f1 (see below).
 
107
.TP
 
108
\fB-C\f1
 
109
Open a command interpreter on STDIN/STDOUT after startup. This may be used to configure PulseAudio dynamically during runtime. Equivalent to \fB--load\f1\fI=module-cli\f1.
 
110
.TP
 
111
\fB-n\f1
 
112
Don't load default script file \fIdefault.pa\f1 (see below) on startup. Useful in conjunction with \fB-C\f1 or \fB--file\f1.
 
113
.SH FILES
 
114
\fI~/.pulse/daemon.conf\f1, \fI/etc/pulse/daemon.conf\f1: configuration settings for the PulseAudio daemon. If the version in the user's home directory does not exist the global configuration file is loaded. See \fBpulse-daemon.conf(5)\f1 for more information.
 
115
 
 
116
\fI~/.pulse/default.pa\f1, \fI/etc/pulse/default.pa\f1: the default configuration script to execute when the PulseAudio daemon is started. If the version in the user's home directory does not exist the global configuration script is loaded. See \fBdefault.pa(5)\f1 for more information.
 
117
 
 
118
\fI~/.pulse/client.conf\f1, \fI/etc/pulse/client.conf\f1: configuration settings for PulseAudio client applications. If the version in the user's home directory does not exist the global configuration file is loaded. See \fBpulse-client.conf(5)\f1 for more information.
 
119
.SH SIGNALS
 
120
\fISIGINT, SIGTERM\f1: the PulseAudio daemon will shut down (Same as \fB--kill\f1).
 
121
 
 
122
\fISIGHUP\f1: dump a long status report to STDOUT or syslog, depending on the configuration.
 
123
 
 
124
\fISIGUSR1\f1: load module-cli, allowing runtime reconfiguration via STDIN/STDOUT.
 
125
 
 
126
\fISIGUSR2\f1: load module-cli-protocol-unix, allowing runtime reconfiguration via a AF_UNIX socket. See \fBpacmd(1)\f1 for more information.
 
127
.SH UNIX GROUPS AND USERS
 
128
Group \fIpulse-rt\f1: if the PulseAudio binary is marked SUID root, then membership of the calling user in this group decides whether real-time and/or high-priority scheduling is enabled. Please note that enabling real-time scheduling is a security risk (see below).
 
129
 
 
130
Group \fIpulse-access\f1: if PulseAudio is running as a system daemon (see \fB--system\f1 above) access is granted to members of this group when they connect via AF_UNIX sockets. If PulseAudio is running as a user daemon this group has no meaning.
 
131
 
 
132
User \fIpulse\f1, group \fIpulse\f1: if PulseAudio is running as a system daemon (see \fB--system\f1 above) and is started as root the daemon will drop priviliges and become a normal user process using this user and group. If PulseAudio is running as a user daemon this user and group has no meaning.
 
133
.SH REAL-TIME AND HIGH-PRIORITY SCHEDULING
 
134
To minimize the risk of drop-outs during playback it is recommended to run PulseAudio with real-time scheduling if the underlying platform supports it. This decouples the scheduling latency of the PulseAudio daemon from the system load and is thus the best way to make sure that PulseAudio always gets CPU time when it needs it to refill the hardware playback buffers. Unfortunately this is a security risk on most systems, since PulseAudio runs as user process, and giving realtime scheduling priviliges to a user process always comes with the risk that the user misuses it to lock up the system -- which is possible since making a process real-time effectively disables preemption.
 
135
 
 
136
To minimize the risk PulseAudio by default does not enable real-time scheduling. It is however recommended to enable it on trusted systems. To do that start PulseAudio with \fB--realtime\f1 (see above) or enabled the appropriate option in \fIdaemon.conf\f1. Since acquiring realtime scheduling is a priviliged operation on most systems, some special changes to the system configuration need to be made to allow them to the calling user. Two options are available:
 
137
 
 
138
On newer Linux systems the system resource limit RLIMIT_RTPRIO (see \fBsetrlimit(2)\f1 for more information) can be used to allow specific users to acquire real-time scheduling. This can be configured in \fI/etc/security/limits.conf\f1, a resource limit of 9 is recommended.
 
139
 
 
140
Alternatively, the SUID root bit can be set for the PulseAudio binary. Then, the daemon will drop root priviliges immediately on startup, however retain the CAP_NICE capability (on systems that support it), but only if the calling user is a member of the \fIpulse-rt\f1 group (see above). For all other users all capababilities are dropped immediately. The advantage of this solution is that the real-time priviliges are only granted to the PulseAudio daemon -- not to all the user's processes.
 
141
 
 
142
Alternatively, if the risk of locking up the machine is considered too big to enable real-time scheduling, high-priority scheduling can be enabled instead (i.e. negative nice level). This can be enabled by passing \fB--high-priority\f1 (see above) when starting PulseAudio and may also be enabled with the approriate option in \fIdaemon.conf\f1. Negative nice levels can only be enabled when the appropriate resource limit RLIMIT_NICE is set (see \fBsetrlimit(2)\f1 for more information), possibly configured in \fI/etc/security/limits.conf\f1. A resource limit of 31 (corresponding with nice level -11) is recommended.
 
143
.SH ENVIRONMENT VARIABLES
 
144
The PulseAudio client libraries check for the existance of the following environment variables and change their local configuration accordingly:
 
145
 
 
146
\fI$PULSE_SERVER\f1: the server string specifying the server to connect to when a client asks for a sound server connection and doesn't explicitly ask for a specific server.
 
147
 
 
148
\fI$PULSE_SINK\f1: the symbolic name of the sink to connect to when a client creates a playback stream and doesn't explicitly ask for a specific sink.
 
149
 
 
150
\fI$PULSE_SOURCE\f1: the symbolic name of the source to connect to when a client creates a record stream and doesn't explicitly ask for a specific source.
 
151
 
 
152
\fI$PULSE_BINARY\f1: path of PulseAudio executable to run when server auto-spawning is used.
 
153
 
 
154
\fI$PULSE_CLIENTCONFIG\f1: path of file that shall be read instead of \fIclient.conf\f1 (see above) for client configuration.
 
155
 
 
156
These environment settings take precedence -- if set -- over the configuration settings from \fIclient.conf\f1 (see above).
 
157
.SH AUTHORS
 
158
The PulseAudio Developers <mzchyfrnhqvb (at) 0pointer (dot) net>; PulseAudio is available from \fBhttp://pulseaudio.org/\f1
 
159
.SH SEE ALSO
 
160
\fBpulse-daemon.conf(5)\f1, \fBdefault.pa(5)\f1, \fBpulse-client.conf(5)\f1, \fBpacmd(1)\f1