153a5a1b3Sopenharmony_ci<?xml version="1.0"?><!--*-nxml-*--> 253a5a1b3Sopenharmony_ci<!DOCTYPE manpage SYSTEM "xmltoman.dtd"> 353a5a1b3Sopenharmony_ci<?xml-stylesheet type="text/xsl" href="xmltoman.xsl" ?> 453a5a1b3Sopenharmony_ci 553a5a1b3Sopenharmony_ci<!-- 653a5a1b3Sopenharmony_ciThis file is part of PulseAudio. 753a5a1b3Sopenharmony_ci 853a5a1b3Sopenharmony_ciPulseAudio is free software; you can redistribute it and/or modify it 953a5a1b3Sopenharmony_ciunder the terms of the GNU Lesser General Public License as 1053a5a1b3Sopenharmony_cipublished by the Free Software Foundation; either version 2.1 of the 1153a5a1b3Sopenharmony_ciLicense, or (at your option) any later version. 1253a5a1b3Sopenharmony_ci 1353a5a1b3Sopenharmony_ciPulseAudio is distributed in the hope that it will be useful, but WITHOUT 1453a5a1b3Sopenharmony_ciANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1553a5a1b3Sopenharmony_cior FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 1653a5a1b3Sopenharmony_ciPublic License for more details. 1753a5a1b3Sopenharmony_ci 1853a5a1b3Sopenharmony_ciYou should have received a copy of the GNU Lesser General Public 1953a5a1b3Sopenharmony_ciLicense along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 2053a5a1b3Sopenharmony_ci--> 2153a5a1b3Sopenharmony_ci 2253a5a1b3Sopenharmony_ci<manpage name="pulseaudio" section="1" desc="The PulseAudio Sound System"> 2353a5a1b3Sopenharmony_ci 2453a5a1b3Sopenharmony_ci <synopsis> 2553a5a1b3Sopenharmony_ci <cmd>pulseaudio [<arg>options</arg>]</cmd> 2653a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--help</opt></cmd> 2753a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--version</opt></cmd> 2853a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--dump-conf</opt></cmd> 2953a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--dump-modules</opt></cmd> 3053a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--dump-resample-methods</opt></cmd> 3153a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--cleanup-shm</opt></cmd> 3253a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--start</opt></cmd> 3353a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--kill</opt></cmd> 3453a5a1b3Sopenharmony_ci <cmd>pulseaudio <opt>--check</opt></cmd> 3553a5a1b3Sopenharmony_ci </synopsis> 3653a5a1b3Sopenharmony_ci 3753a5a1b3Sopenharmony_ci <description> 3853a5a1b3Sopenharmony_ci <p>PulseAudio is a networked low-latency sound server for Linux, POSIX and Windows systems.</p> 3953a5a1b3Sopenharmony_ci </description> 4053a5a1b3Sopenharmony_ci 4153a5a1b3Sopenharmony_ci <options> 4253a5a1b3Sopenharmony_ci 4353a5a1b3Sopenharmony_ci <option> 4453a5a1b3Sopenharmony_ci <p><opt>-h | --help</opt></p> 4553a5a1b3Sopenharmony_ci 4653a5a1b3Sopenharmony_ci <optdesc><p>Show help.</p></optdesc> 4753a5a1b3Sopenharmony_ci </option> 4853a5a1b3Sopenharmony_ci 4953a5a1b3Sopenharmony_ci <option> 5053a5a1b3Sopenharmony_ci <p><opt>--version</opt></p> 5153a5a1b3Sopenharmony_ci 5253a5a1b3Sopenharmony_ci <optdesc><p>Show version information.</p></optdesc> 5353a5a1b3Sopenharmony_ci </option> 5453a5a1b3Sopenharmony_ci 5553a5a1b3Sopenharmony_ci <option> 5653a5a1b3Sopenharmony_ci <p><opt>--dump-conf</opt></p> 5753a5a1b3Sopenharmony_ci 5853a5a1b3Sopenharmony_ci <optdesc><p>Load the daemon configuration file 5953a5a1b3Sopenharmony_ci <file>daemon.conf</file> (see below), parse remaining 6053a5a1b3Sopenharmony_ci configuration options on the command line and dump the resulting 6153a5a1b3Sopenharmony_ci daemon configuration, in a format that is compatible with 6253a5a1b3Sopenharmony_ci <file>daemon.conf</file>.</p></optdesc> 6353a5a1b3Sopenharmony_ci </option> 6453a5a1b3Sopenharmony_ci 6553a5a1b3Sopenharmony_ci <option> 6653a5a1b3Sopenharmony_ci <p><opt>--dump-modules</opt></p> 6753a5a1b3Sopenharmony_ci 6853a5a1b3Sopenharmony_ci <optdesc><p>List available loadable modules. Combine with 6953a5a1b3Sopenharmony_ci <opt>-v</opt> for a more elaborate listing.</p></optdesc> 7053a5a1b3Sopenharmony_ci </option> 7153a5a1b3Sopenharmony_ci 7253a5a1b3Sopenharmony_ci <option> 7353a5a1b3Sopenharmony_ci <p><opt>--dump-resample-methods</opt></p> 7453a5a1b3Sopenharmony_ci <optdesc><p>List available audio resamplers.</p></optdesc> 7553a5a1b3Sopenharmony_ci </option> 7653a5a1b3Sopenharmony_ci 7753a5a1b3Sopenharmony_ci <option> 7853a5a1b3Sopenharmony_ci <p><opt>--cleanup-shm</opt></p> 7953a5a1b3Sopenharmony_ci 8053a5a1b3Sopenharmony_ci <optdesc><p>Identify stale PulseAudio POSIX shared memory 8153a5a1b3Sopenharmony_ci segments in <file>/dev/shm</file> and remove them if 8253a5a1b3Sopenharmony_ci possible. This is done implicitly whenever a new daemon starts 8353a5a1b3Sopenharmony_ci up or a client tries to connect to a daemon. It should normally 8453a5a1b3Sopenharmony_ci not be necessary to issue this command by hand. Only available 8553a5a1b3Sopenharmony_ci on systems with POSIX shared memory segments implemented via a 8653a5a1b3Sopenharmony_ci virtual file system mounted to <file>/dev/shm</file> 8753a5a1b3Sopenharmony_ci (e.g. Linux).</p></optdesc> 8853a5a1b3Sopenharmony_ci </option> 8953a5a1b3Sopenharmony_ci 9053a5a1b3Sopenharmony_ci <option> 9153a5a1b3Sopenharmony_ci <p><opt>--start</opt></p> 9253a5a1b3Sopenharmony_ci 9353a5a1b3Sopenharmony_ci <optdesc><p>Start PulseAudio if it is not running yet. This is 9453a5a1b3Sopenharmony_ci different from starting PulseAudio without <opt>--start</opt> 9553a5a1b3Sopenharmony_ci which would fail if PA is already running. PulseAudio is 9653a5a1b3Sopenharmony_ci guaranteed to be fully initialized when this call 9753a5a1b3Sopenharmony_ci returns. Implies <opt>--daemonize</opt>.</p></optdesc> 9853a5a1b3Sopenharmony_ci </option> 9953a5a1b3Sopenharmony_ci 10053a5a1b3Sopenharmony_ci <option> 10153a5a1b3Sopenharmony_ci <p><opt>-k | --kill</opt></p> 10253a5a1b3Sopenharmony_ci 10353a5a1b3Sopenharmony_ci <optdesc><p>Kill an already running PulseAudio daemon of the 10453a5a1b3Sopenharmony_ci calling user (Equivalent to sending a SIGTERM).</p></optdesc> 10553a5a1b3Sopenharmony_ci </option> 10653a5a1b3Sopenharmony_ci 10753a5a1b3Sopenharmony_ci <option> 10853a5a1b3Sopenharmony_ci <p><opt>--check</opt></p> 10953a5a1b3Sopenharmony_ci 11053a5a1b3Sopenharmony_ci <optdesc><p>Return 0 as return code when the PulseAudio daemon 11153a5a1b3Sopenharmony_ci is already running for the calling user, or non-zero 11253a5a1b3Sopenharmony_ci otherwise. Produces no output on the console except for errors 11353a5a1b3Sopenharmony_ci to stderr.</p> 11453a5a1b3Sopenharmony_ci 11553a5a1b3Sopenharmony_ci <p>Note that a non-zero return value doesn't necessarily mean that 11653a5a1b3Sopenharmony_ci PulseAudio is not usable. Even if the server is not running, it 11753a5a1b3Sopenharmony_ci may get automatically started via PulseAudio's autospawning 11853a5a1b3Sopenharmony_ci mechanism or systemd's socket activation, or the environment might 11953a5a1b3Sopenharmony_ci be such that checking for processes doesn't work (for example, the 12053a5a1b3Sopenharmony_ci running server might not show up in a container, even if the 12153a5a1b3Sopenharmony_ci server is accessible via a socket). Also disabling PID files with 12253a5a1b3Sopenharmony_ci <opt>--use-pid-file=no</opt> prevents <opt>--check</opt> from 12353a5a1b3Sopenharmony_ci detecting running servers.</p> 12453a5a1b3Sopenharmony_ci 12553a5a1b3Sopenharmony_ci <p>A more robust check in most situations would be to try 12653a5a1b3Sopenharmony_ci establishing a client connection to the server. Unfortunately 12753a5a1b3Sopenharmony_ci there's currently no <opt>--check-connection</opt> option to 12853a5a1b3Sopenharmony_ci replace <opt>--check</opt>, but running "pactl info" could be a 12953a5a1b3Sopenharmony_ci pretty good substitute.</p></optdesc> 13053a5a1b3Sopenharmony_ci </option> 13153a5a1b3Sopenharmony_ci 13253a5a1b3Sopenharmony_ci 13353a5a1b3Sopenharmony_ci <option> 13453a5a1b3Sopenharmony_ci <p><opt>--system</opt><arg>[=BOOL]</arg></p> 13553a5a1b3Sopenharmony_ci 13653a5a1b3Sopenharmony_ci <optdesc><p>Run as system-wide instance instead of 13753a5a1b3Sopenharmony_ci per-user. Please note that this disables certain features of 13853a5a1b3Sopenharmony_ci PulseAudio and is generally not recommended unless the system 13953a5a1b3Sopenharmony_ci knows no local users (e.g. is a thin client). This feature needs 14053a5a1b3Sopenharmony_ci special configuration and a dedicated UNIX user set up. It is 14153a5a1b3Sopenharmony_ci highly recommended to combine this with 14253a5a1b3Sopenharmony_ci <opt>--disallow-module-loading</opt> (see below).</p></optdesc> 14353a5a1b3Sopenharmony_ci </option> 14453a5a1b3Sopenharmony_ci 14553a5a1b3Sopenharmony_ci <option> 14653a5a1b3Sopenharmony_ci <p><opt>-D | --daemonize</opt><arg>[=BOOL]</arg></p> 14753a5a1b3Sopenharmony_ci 14853a5a1b3Sopenharmony_ci <optdesc><p>Daemonize after startup, i.e. detach from the 14953a5a1b3Sopenharmony_ci terminal. Note that when running as a systemd service you should 15053a5a1b3Sopenharmony_ci use <opt>--daemonize=no</opt> for systemd notification to work. 15153a5a1b3Sopenharmony_ci </p></optdesc> 15253a5a1b3Sopenharmony_ci </option> 15353a5a1b3Sopenharmony_ci 15453a5a1b3Sopenharmony_ci <option> 15553a5a1b3Sopenharmony_ci <p><opt>--fail</opt><arg>[=BOOL]</arg></p> 15653a5a1b3Sopenharmony_ci 15753a5a1b3Sopenharmony_ci <optdesc><p>Fail startup when any of the commands specified in 15853a5a1b3Sopenharmony_ci the startup script <file>default.pa</file> (see below) 15953a5a1b3Sopenharmony_ci fails.</p></optdesc> 16053a5a1b3Sopenharmony_ci </option> 16153a5a1b3Sopenharmony_ci 16253a5a1b3Sopenharmony_ci <option> 16353a5a1b3Sopenharmony_ci <p><opt>--high-priority</opt><arg>[=BOOL]</arg></p> 16453a5a1b3Sopenharmony_ci 16553a5a1b3Sopenharmony_ci <optdesc><p>Try to acquire a high Unix nice level. This will 16653a5a1b3Sopenharmony_ci only succeed if the calling user has a non-zero RLIMIT_NICE 16753a5a1b3Sopenharmony_ci resource limit set (on systems that support this), or we're 16853a5a1b3Sopenharmony_ci configured to be run as 16953a5a1b3Sopenharmony_ci system daemon (see <arg>--system</arg> above). It is recommended 17053a5a1b3Sopenharmony_ci to enable this, since it is only a negligible security risk (see 17153a5a1b3Sopenharmony_ci below).</p></optdesc> 17253a5a1b3Sopenharmony_ci </option> 17353a5a1b3Sopenharmony_ci 17453a5a1b3Sopenharmony_ci <option> 17553a5a1b3Sopenharmony_ci <p><opt>--realtime</opt><arg>[=BOOL]</arg></p> 17653a5a1b3Sopenharmony_ci 17753a5a1b3Sopenharmony_ci <optdesc><p>Try to acquire a real-time scheduling for 17853a5a1b3Sopenharmony_ci PulseAudio's I/O threads. This will only succeed if the calling 17953a5a1b3Sopenharmony_ci user has a non-zero RLIMIT_RTPRIO resource limit set (on systems 18053a5a1b3Sopenharmony_ci that support this), or rtkit is available and allows PulseAudio 18153a5a1b3Sopenharmony_ci to enable real-time scheduling, or we are configured to be run as 18253a5a1b3Sopenharmony_ci system daemon (see <arg>--system</arg> above).</p></optdesc> 18353a5a1b3Sopenharmony_ci </option> 18453a5a1b3Sopenharmony_ci 18553a5a1b3Sopenharmony_ci <option> 18653a5a1b3Sopenharmony_ci <p><opt>--disallow-module-loading</opt><arg>[=BOOL]</arg></p> 18753a5a1b3Sopenharmony_ci 18853a5a1b3Sopenharmony_ci <optdesc><p>Disallow module loading after startup. This is a 18953a5a1b3Sopenharmony_ci security feature since it disallows additional module loading 19053a5a1b3Sopenharmony_ci during runtime and on user request. It is highly recommended 19153a5a1b3Sopenharmony_ci when <arg>--system</arg> is used (see above). Note however, that 19253a5a1b3Sopenharmony_ci this breaks certain features like automatic module loading on hot 19353a5a1b3Sopenharmony_ci plug.</p></optdesc> 19453a5a1b3Sopenharmony_ci 19553a5a1b3Sopenharmony_ci </option> 19653a5a1b3Sopenharmony_ci 19753a5a1b3Sopenharmony_ci <option> 19853a5a1b3Sopenharmony_ci <p><opt>--disallow-exit</opt><arg>[=BOOL]</arg></p> 19953a5a1b3Sopenharmony_ci 20053a5a1b3Sopenharmony_ci <optdesc><p>Disallow user requested exit</p></optdesc> 20153a5a1b3Sopenharmony_ci </option> 20253a5a1b3Sopenharmony_ci 20353a5a1b3Sopenharmony_ci <option> 20453a5a1b3Sopenharmony_ci <p><opt>--exit-idle-time</opt><arg>=SECS</arg></p> 20553a5a1b3Sopenharmony_ci 20653a5a1b3Sopenharmony_ci <optdesc> 20753a5a1b3Sopenharmony_ci <p>Terminate the daemon after the last client quit and this time in 20853a5a1b3Sopenharmony_ci seconds passed. Use a negative value to disable this feature. Defaults 20953a5a1b3Sopenharmony_ci to 20.</p> 21053a5a1b3Sopenharmony_ci 21153a5a1b3Sopenharmony_ci <p>When PulseAudio runs in the per-user mode and detects a login 21253a5a1b3Sopenharmony_ci session, then any positive value will be reset to 0 so that PulseAudio 21353a5a1b3Sopenharmony_ci will terminate immediately on logout. A positive value therefore has 21453a5a1b3Sopenharmony_ci effect only in environments where there's no support for login session 21553a5a1b3Sopenharmony_ci tracking (or if the user is logged in without a session spawned, 21653a5a1b3Sopenharmony_ci a.k.a. lingering). A negative value can still be used to disable any 21753a5a1b3Sopenharmony_ci automatic exit.</p> 21853a5a1b3Sopenharmony_ci 21953a5a1b3Sopenharmony_ci <p>When PulseAudio runs in the system mode, automatic exit is always 22053a5a1b3Sopenharmony_ci disabled, so this option does nothing.</p> 22153a5a1b3Sopenharmony_ci </optdesc> 22253a5a1b3Sopenharmony_ci </option> 22353a5a1b3Sopenharmony_ci 22453a5a1b3Sopenharmony_ci <option> 22553a5a1b3Sopenharmony_ci <p><opt>--scache-idle-time</opt><arg>=SECS</arg></p> 22653a5a1b3Sopenharmony_ci 22753a5a1b3Sopenharmony_ci <optdesc><p>Unload autoloaded samples from the cache when they 22853a5a1b3Sopenharmony_ci haven't been used for the specified number of 22953a5a1b3Sopenharmony_ci seconds.</p></optdesc> 23053a5a1b3Sopenharmony_ci </option> 23153a5a1b3Sopenharmony_ci 23253a5a1b3Sopenharmony_ci <option> 23353a5a1b3Sopenharmony_ci <p><opt>--log-level</opt><arg>[=LEVEL]</arg></p> 23453a5a1b3Sopenharmony_ci 23553a5a1b3Sopenharmony_ci <optdesc><p>If an argument is passed, set the log level to the 23653a5a1b3Sopenharmony_ci specified value, otherwise increase the configured verbosity 23753a5a1b3Sopenharmony_ci level by one. The log levels are numerical from 0 to 4, 23853a5a1b3Sopenharmony_ci corresponding to <arg>error</arg>, <arg>warn</arg>, 23953a5a1b3Sopenharmony_ci <arg>notice</arg>, <arg>info</arg>, <arg>debug</arg>. Default 24053a5a1b3Sopenharmony_ci log level is <arg>notice</arg>, i.e. all log messages with lower 24153a5a1b3Sopenharmony_ci log levels are printed: <arg>error</arg>, <arg>warn</arg>, 24253a5a1b3Sopenharmony_ci <arg>notice</arg>.</p></optdesc> 24353a5a1b3Sopenharmony_ci </option> 24453a5a1b3Sopenharmony_ci 24553a5a1b3Sopenharmony_ci <option> 24653a5a1b3Sopenharmony_ci <p><opt>-v | --verbose</opt></p> 24753a5a1b3Sopenharmony_ci 24853a5a1b3Sopenharmony_ci <optdesc><p>Increase the configured verbosity level by one (see 24953a5a1b3Sopenharmony_ci <opt>--log-level</opt> above). Specify multiple times to 25053a5a1b3Sopenharmony_ci increase log level multiple times.</p></optdesc> 25153a5a1b3Sopenharmony_ci </option> 25253a5a1b3Sopenharmony_ci 25353a5a1b3Sopenharmony_ci <option> 25453a5a1b3Sopenharmony_ci <p><opt>--log-target</opt><arg>={auto,syslog,journal,stderr,file:PATH,newfile:PATH}</arg></p> 25553a5a1b3Sopenharmony_ci 25653a5a1b3Sopenharmony_ci <optdesc><p>Specify the log target. If set to <arg>auto</arg> 25753a5a1b3Sopenharmony_ci (which is the default), then logging is directed to syslog when 25853a5a1b3Sopenharmony_ci <opt>--daemonize</opt> is passed, otherwise to 25953a5a1b3Sopenharmony_ci STDERR. If set to <arg>journal</arg> logging is directed to the systemd 26053a5a1b3Sopenharmony_ci journal. If set to <arg>file:PATH</arg>, logging is directed to 26153a5a1b3Sopenharmony_ci the file indicated by PATH. <arg>newfile:PATH</arg> is otherwise 26253a5a1b3Sopenharmony_ci the same as file:PATH, but existing files are never overwritten. 26353a5a1b3Sopenharmony_ci If the specified file already exists, a suffix is added to the 26453a5a1b3Sopenharmony_ci file name to avoid overwriting.</p></optdesc> 26553a5a1b3Sopenharmony_ci </option> 26653a5a1b3Sopenharmony_ci 26753a5a1b3Sopenharmony_ci <option> 26853a5a1b3Sopenharmony_ci <p><opt>--log-meta</opt><arg>[=BOOL]</arg></p> 26953a5a1b3Sopenharmony_ci 27053a5a1b3Sopenharmony_ci <optdesc><p>Show source code location in log messages.</p></optdesc> 27153a5a1b3Sopenharmony_ci </option> 27253a5a1b3Sopenharmony_ci 27353a5a1b3Sopenharmony_ci <option> 27453a5a1b3Sopenharmony_ci <p><opt>--log-time</opt><arg>[=BOOL]</arg></p> 27553a5a1b3Sopenharmony_ci 27653a5a1b3Sopenharmony_ci <optdesc><p>Show timestamps in log messages.</p></optdesc> 27753a5a1b3Sopenharmony_ci </option> 27853a5a1b3Sopenharmony_ci 27953a5a1b3Sopenharmony_ci <option> 28053a5a1b3Sopenharmony_ci <p><opt>--log-backtrace</opt><arg>=FRAMES</arg></p> 28153a5a1b3Sopenharmony_ci 28253a5a1b3Sopenharmony_ci <optdesc><p>When FRAMES is greater than 0, log for each message a 28353a5a1b3Sopenharmony_ci stack trace up to the number of specified stack frames.</p></optdesc> 28453a5a1b3Sopenharmony_ci </option> 28553a5a1b3Sopenharmony_ci 28653a5a1b3Sopenharmony_ci <option> 28753a5a1b3Sopenharmony_ci <p><opt>-p | --dl-search-path</opt><arg>=PATH</arg></p> 28853a5a1b3Sopenharmony_ci 28953a5a1b3Sopenharmony_ci <optdesc><p>Set the search path for dynamic shared objects 29053a5a1b3Sopenharmony_ci (plugins).</p></optdesc> 29153a5a1b3Sopenharmony_ci </option> 29253a5a1b3Sopenharmony_ci 29353a5a1b3Sopenharmony_ci <option> 29453a5a1b3Sopenharmony_ci <p><opt>--resample-method</opt><arg>=METHOD</arg></p> 29553a5a1b3Sopenharmony_ci 29653a5a1b3Sopenharmony_ci <optdesc><p>Use the specified resampler by default (See 29753a5a1b3Sopenharmony_ci <opt>--dump-resample-methods</opt> above for possible 29853a5a1b3Sopenharmony_ci values).</p></optdesc> 29953a5a1b3Sopenharmony_ci </option> 30053a5a1b3Sopenharmony_ci 30153a5a1b3Sopenharmony_ci <option> 30253a5a1b3Sopenharmony_ci <p><opt>--use-pid-file</opt><arg>[=BOOL]</arg></p> 30353a5a1b3Sopenharmony_ci 30453a5a1b3Sopenharmony_ci <optdesc><p>Create a PID file. If this options is disabled it is possible to run multiple sound servers per user.</p></optdesc> 30553a5a1b3Sopenharmony_ci </option> 30653a5a1b3Sopenharmony_ci 30753a5a1b3Sopenharmony_ci <option> 30853a5a1b3Sopenharmony_ci <p><opt>--no-cpu-limit</opt><arg>[=BOOL]</arg></p> 30953a5a1b3Sopenharmony_ci 31053a5a1b3Sopenharmony_ci <optdesc><p>Do not install CPU load limiter on platforms that 31153a5a1b3Sopenharmony_ci support it. By default, PulseAudio will terminate itself when it 31253a5a1b3Sopenharmony_ci notices that it takes up too much CPU time. This is useful as a 31353a5a1b3Sopenharmony_ci protection against system lockups when real-time scheduling is 31453a5a1b3Sopenharmony_ci used (see below). Disabling this mechanism is useful when 31553a5a1b3Sopenharmony_ci debugging PulseAudio with tools like <manref name="valgrind" 31653a5a1b3Sopenharmony_ci section="1"/> which slow down execution.</p></optdesc> 31753a5a1b3Sopenharmony_ci </option> 31853a5a1b3Sopenharmony_ci 31953a5a1b3Sopenharmony_ci <option> 32053a5a1b3Sopenharmony_ci <p><opt>--disable-shm</opt><arg>[=BOOL]</arg></p> 32153a5a1b3Sopenharmony_ci 32253a5a1b3Sopenharmony_ci <optdesc><p>PulseAudio clients and the server can exchange audio 32353a5a1b3Sopenharmony_ci data via POSIX or memfd shared memory segments (on systems that 32453a5a1b3Sopenharmony_ci support this). If disabled PulseAudio will communicate exclusively 32553a5a1b3Sopenharmony_ci over sockets. Please note that data transfer via shared memory 32653a5a1b3Sopenharmony_ci segments is always disabled when PulseAudio is running with 32753a5a1b3Sopenharmony_ci <opt>--system</opt> enabled (see above).</p></optdesc> 32853a5a1b3Sopenharmony_ci </option> 32953a5a1b3Sopenharmony_ci 33053a5a1b3Sopenharmony_ci <option> 33153a5a1b3Sopenharmony_ci <p><opt>--enable-memfd</opt><arg>[=BOOL]</arg></p> 33253a5a1b3Sopenharmony_ci 33353a5a1b3Sopenharmony_ci <optdesc><p>PulseAudio clients and the server can exchange audio 33453a5a1b3Sopenharmony_ci data via memfds - the anonymous Linux Kernel shared memory mechanism 33553a5a1b3Sopenharmony_ci (on kernels that support this). If disabled PulseAudio will 33653a5a1b3Sopenharmony_ci communicate via POSIX shared memory.</p></optdesc> 33753a5a1b3Sopenharmony_ci </option> 33853a5a1b3Sopenharmony_ci 33953a5a1b3Sopenharmony_ci <option> 34053a5a1b3Sopenharmony_ci <p><opt>-L | --load</opt><arg>="MODULE ARGUMENTS"</arg></p> 34153a5a1b3Sopenharmony_ci 34253a5a1b3Sopenharmony_ci <optdesc><p>Load the specified plugin module with the specified 34353a5a1b3Sopenharmony_ci arguments.</p></optdesc> 34453a5a1b3Sopenharmony_ci </option> 34553a5a1b3Sopenharmony_ci 34653a5a1b3Sopenharmony_ci <option> 34753a5a1b3Sopenharmony_ci <p><opt>-F | --file</opt><arg>=FILENAME</arg></p> 34853a5a1b3Sopenharmony_ci 34953a5a1b3Sopenharmony_ci <optdesc><p>Run the specified script on startup. May be 35053a5a1b3Sopenharmony_ci specified multiple times to specify multiple scripts to be run 35153a5a1b3Sopenharmony_ci in order. Combine with <opt>-n</opt> to disable loading of the 35253a5a1b3Sopenharmony_ci default script <file>default.pa</file> (see below).</p></optdesc> 35353a5a1b3Sopenharmony_ci </option> 35453a5a1b3Sopenharmony_ci <option> 35553a5a1b3Sopenharmony_ci <p><opt>-C</opt></p> 35653a5a1b3Sopenharmony_ci 35753a5a1b3Sopenharmony_ci <optdesc><p>Open a command interpreter on STDIN/STDOUT after 35853a5a1b3Sopenharmony_ci startup. This may be used to configure PulseAudio dynamically 35953a5a1b3Sopenharmony_ci during runtime. Equivalent to 36053a5a1b3Sopenharmony_ci <opt>--load</opt><arg>=module-cli</arg>.</p></optdesc> 36153a5a1b3Sopenharmony_ci </option> 36253a5a1b3Sopenharmony_ci <option> 36353a5a1b3Sopenharmony_ci <p><opt>-n</opt></p> 36453a5a1b3Sopenharmony_ci 36553a5a1b3Sopenharmony_ci <optdesc><p>Don't load default script file 36653a5a1b3Sopenharmony_ci <file>default.pa</file> (see below) on startup. Useful in 36753a5a1b3Sopenharmony_ci conjunction with <opt>-C</opt> or 36853a5a1b3Sopenharmony_ci <opt>--file</opt>.</p></optdesc> 36953a5a1b3Sopenharmony_ci </option> 37053a5a1b3Sopenharmony_ci 37153a5a1b3Sopenharmony_ci 37253a5a1b3Sopenharmony_ci </options> 37353a5a1b3Sopenharmony_ci 37453a5a1b3Sopenharmony_ci <section name="Files"> 37553a5a1b3Sopenharmony_ci 37653a5a1b3Sopenharmony_ci <p><file>~/.config/pulse/daemon.conf</file>, 37753a5a1b3Sopenharmony_ci <file>@PA_DEFAULT_CONFIG_DIR@/daemon.conf</file>: configuration settings 37853a5a1b3Sopenharmony_ci for the PulseAudio daemon. If the version in the user's home 37953a5a1b3Sopenharmony_ci directory does not exist the global configuration file is 38053a5a1b3Sopenharmony_ci loaded. See <manref name="pulse-daemon.conf" section="5"/> for 38153a5a1b3Sopenharmony_ci more information.</p> 38253a5a1b3Sopenharmony_ci 38353a5a1b3Sopenharmony_ci <p><file>~/.config/pulse/default.pa</file>, 38453a5a1b3Sopenharmony_ci <file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file>: the default configuration 38553a5a1b3Sopenharmony_ci script to execute when the PulseAudio daemon is started. If the 38653a5a1b3Sopenharmony_ci version in the user's home directory does not exist the global 38753a5a1b3Sopenharmony_ci configuration script is loaded. See <manref name="default.pa" 38853a5a1b3Sopenharmony_ci section="5"/> for more information.</p> 38953a5a1b3Sopenharmony_ci 39053a5a1b3Sopenharmony_ci <p><file>~/.config/pulse/client.conf</file>, 39153a5a1b3Sopenharmony_ci <file>@PA_DEFAULT_CONFIG_DIR@/client.conf</file>: configuration settings 39253a5a1b3Sopenharmony_ci for PulseAudio client applications. If the version in the user's 39353a5a1b3Sopenharmony_ci home directory does not exist the global configuration file is 39453a5a1b3Sopenharmony_ci loaded. See <manref name="pulse-client.conf" section="5"/> for 39553a5a1b3Sopenharmony_ci more information.</p> 39653a5a1b3Sopenharmony_ci 39753a5a1b3Sopenharmony_ci </section> 39853a5a1b3Sopenharmony_ci 39953a5a1b3Sopenharmony_ci <section name="Signals"> 40053a5a1b3Sopenharmony_ci 40153a5a1b3Sopenharmony_ci <p><arg>SIGINT, SIGTERM</arg>: the PulseAudio daemon will shut 40253a5a1b3Sopenharmony_ci down (Same as <opt>--kill</opt>).</p> 40353a5a1b3Sopenharmony_ci 40453a5a1b3Sopenharmony_ci <p><arg>SIGHUP</arg>: dump a long status report to STDOUT or 40553a5a1b3Sopenharmony_ci syslog, depending on the configuration.</p> 40653a5a1b3Sopenharmony_ci 40753a5a1b3Sopenharmony_ci <p><arg>SIGUSR1</arg>: load module-cli, allowing runtime 40853a5a1b3Sopenharmony_ci reconfiguration via STDIN/STDOUT.</p> 40953a5a1b3Sopenharmony_ci 41053a5a1b3Sopenharmony_ci <p><arg>SIGUSR2</arg>: load module-cli-protocol-unix, allowing 41153a5a1b3Sopenharmony_ci runtime reconfiguration via a AF_UNIX socket. See <manref 41253a5a1b3Sopenharmony_ci name="pacmd" section="1"/> for more information.</p> 41353a5a1b3Sopenharmony_ci 41453a5a1b3Sopenharmony_ci </section> 41553a5a1b3Sopenharmony_ci 41653a5a1b3Sopenharmony_ci <section name="UNIX Groups and users"> 41753a5a1b3Sopenharmony_ci 41853a5a1b3Sopenharmony_ci <p>Group <arg>pulse-access</arg>: if PulseAudio is running as a system 41953a5a1b3Sopenharmony_ci daemon (see <opt>--system</opt> above) access is granted to 42053a5a1b3Sopenharmony_ci members of this group when they connect via AF_UNIX sockets. If 42153a5a1b3Sopenharmony_ci PulseAudio is running as a user daemon this group has no 42253a5a1b3Sopenharmony_ci meaning.</p> 42353a5a1b3Sopenharmony_ci 42453a5a1b3Sopenharmony_ci <p>User <arg>pulse</arg>, group <arg>pulse</arg>: if PulseAudio is running as a system 42553a5a1b3Sopenharmony_ci daemon (see <opt>--system</opt> above) and is started as root the 42653a5a1b3Sopenharmony_ci daemon will drop privileges and become a normal user process using 42753a5a1b3Sopenharmony_ci this user and group. If PulseAudio is running as a user daemon 42853a5a1b3Sopenharmony_ci this user and group has no meaning.</p> 42953a5a1b3Sopenharmony_ci </section> 43053a5a1b3Sopenharmony_ci 43153a5a1b3Sopenharmony_ci <section name="Real-time and high-priority scheduling"> 43253a5a1b3Sopenharmony_ci <p>To minimize the risk of drop-outs during playback it is 43353a5a1b3Sopenharmony_ci recommended to run PulseAudio with real-time scheduling if the 43453a5a1b3Sopenharmony_ci underlying platform supports it. This decouples the scheduling 43553a5a1b3Sopenharmony_ci latency of the PulseAudio daemon from the system load and is thus 43653a5a1b3Sopenharmony_ci the best way to make sure that PulseAudio always gets CPU time 43753a5a1b3Sopenharmony_ci when it needs it to refill the hardware playback 43853a5a1b3Sopenharmony_ci buffers. Unfortunately this can be a security risk on some systems, 43953a5a1b3Sopenharmony_ci since PulseAudio runs as user process, and giving realtime 44053a5a1b3Sopenharmony_ci scheduling privileges to a user always comes with the risk 44153a5a1b3Sopenharmony_ci that the user misuses it to lock up the system -- which is 44253a5a1b3Sopenharmony_ci possible since making a process real-time effectively disables 44353a5a1b3Sopenharmony_ci preemption. To solve this problem, PulseAudio uses rtkit to safely 44453a5a1b3Sopenharmony_ci acquire real-time scheduling when available.</p> 44553a5a1b3Sopenharmony_ci 44653a5a1b3Sopenharmony_ci <p>If the risk of locking up the machine is 44753a5a1b3Sopenharmony_ci considered too big to enable real-time scheduling, high-priority 44853a5a1b3Sopenharmony_ci scheduling can be enabled instead (i.e. negative nice level). This 44953a5a1b3Sopenharmony_ci can be enabled by passing <opt>--high-priority</opt> (see above) 45053a5a1b3Sopenharmony_ci when starting PulseAudio and may also be enabled with the 45153a5a1b3Sopenharmony_ci appropriate option in <file>daemon.conf</file>. Negative nice 45253a5a1b3Sopenharmony_ci levels can only be enabled when the appropriate resource limit 45353a5a1b3Sopenharmony_ci RLIMIT_NICE is set (see <manref name="setrlimit" section="2"/> for 45453a5a1b3Sopenharmony_ci more information), possibly configured in 45553a5a1b3Sopenharmony_ci <file>/etc/security/limits.conf</file>. A resource limit of 31 45653a5a1b3Sopenharmony_ci (corresponding with nice level -11) is recommended.</p> 45753a5a1b3Sopenharmony_ci </section> 45853a5a1b3Sopenharmony_ci 45953a5a1b3Sopenharmony_ci <section name="Environment variables"> 46053a5a1b3Sopenharmony_ci 46153a5a1b3Sopenharmony_ci <p>The PulseAudio client libraries check for the existence of the 46253a5a1b3Sopenharmony_ci following environment variables and change their local configuration accordingly:</p> 46353a5a1b3Sopenharmony_ci 46453a5a1b3Sopenharmony_ci <p><arg>$PULSE_SERVER</arg>: the server string specifying the server 46553a5a1b3Sopenharmony_ci to connect to when a client asks for a sound server connection and doesn't 46653a5a1b3Sopenharmony_ci explicitly ask for a specific server. The server string is a list of 46753a5a1b3Sopenharmony_ci server addresses separated by whitespace which are tried in turn. A server 46853a5a1b3Sopenharmony_ci address consists of an optional address type specifier (unix:, tcp:, tcp4:, 46953a5a1b3Sopenharmony_ci tcp6:), followed by a path or host address. A host address may include an 47053a5a1b3Sopenharmony_ci optional port number. A server address may be prefixed by a string enclosed 47153a5a1b3Sopenharmony_ci in {}. In this case the following server address is ignored unless the prefix 47253a5a1b3Sopenharmony_ci string equals the local hostname or the machine id (/etc/machine-id).</p> 47353a5a1b3Sopenharmony_ci 47453a5a1b3Sopenharmony_ci <p><arg>$PULSE_SINK</arg>: 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.</p> 47553a5a1b3Sopenharmony_ci 47653a5a1b3Sopenharmony_ci <p><arg>$PULSE_SOURCE</arg>: 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.</p> 47753a5a1b3Sopenharmony_ci 47853a5a1b3Sopenharmony_ci <p><arg>$PULSE_BINARY</arg>: path of PulseAudio executable to run when server auto-spawning is used.</p> 47953a5a1b3Sopenharmony_ci 48053a5a1b3Sopenharmony_ci <p><arg>$PULSE_CLIENTCONFIG</arg>: path of file that shall be read instead of <file>client.conf</file> (see above) for client configuration.</p> 48153a5a1b3Sopenharmony_ci 48253a5a1b3Sopenharmony_ci <p><arg>$PULSE_COOKIE</arg>: path of file that contains the PulseAudio 48353a5a1b3Sopenharmony_ci authentication cookie. Defaults to <file>~/.config/pulse/cookie</file>.</p> 48453a5a1b3Sopenharmony_ci 48553a5a1b3Sopenharmony_ci <p>These environment settings take precedence -- if set -- over the configuration settings from <file>client.conf</file> (see above).</p> 48653a5a1b3Sopenharmony_ci 48753a5a1b3Sopenharmony_ci </section> 48853a5a1b3Sopenharmony_ci 48953a5a1b3Sopenharmony_ci <section name="Authors"> 49053a5a1b3Sopenharmony_ci <p>The PulseAudio Developers <@PACKAGE_BUGREPORT@>; PulseAudio is available from <url href="@PACKAGE_URL@"/></p> 49153a5a1b3Sopenharmony_ci </section> 49253a5a1b3Sopenharmony_ci 49353a5a1b3Sopenharmony_ci <section name="See also"> 49453a5a1b3Sopenharmony_ci <p> 49553a5a1b3Sopenharmony_ci <manref name="pulse-daemon.conf" section="5"/>, <manref name="default.pa" section="5"/>, <manref name="pulse-client.conf" section="5"/>, <manref name="pacmd" section="1"/> 49653a5a1b3Sopenharmony_ci </p> 49753a5a1b3Sopenharmony_ci </section> 49853a5a1b3Sopenharmony_ci 49953a5a1b3Sopenharmony_ci</manpage> 500