- Simultaneous output to all sound cards
- Network device streaming and discovery (requires Avahi daemon to be installed and running): play sound on any computer on your network from any computer.
- Per-application volume control
- Manage input and output devices volumes and outputs
- Sound card configuration to select input/output ports to use and enable/disable devices
- Lightweight equivalent of pavucontrol implemented in Qt, with all the same functionality and similar UI.
In order to configure the daemon, you will mostly only need the very basic commands:
||Loads a module called
||Unloads a module by its index (returned by the load-module command) or all modules by name.|
||Allows all commands after this statement to fail without interrupting the script and shutting down the daemon. This is useful when you know some commands could fail and would not affect overall operation, like loading modules for removable devices or network devices that can potentially get unreachable.|
||Reverse of .nofail: failing commands after this statement will interrupt the script and will cause the daemon to return an error.|
There are plenty more commands available that are useful at runtime to control the daemon, see the
pactl manpage for more details. Everything that can be made in
pavucontrol can also be made on the command line, useful for bash scripts.
|autospawn||If enabled, clients will automatically start PulseAudio if it is not already running when a client attempts to connect to it. This can be useful if you do not want PulseAudio to always be running to conserve system resources. Otherwise, you really should have it start with your X11 session.|
Connection & authentication
Since PulseAudio runs as a daemon as the current user, clients needs to know where to find the daemon socket to connect to it as well as a shared random cookie file clients use to authenticate with it. By default, clients should be able to locate the daemon without problem using environment variables, X11 root window properties and finally by trying the default location (
unix:/run/user/$ID/pulse/native). However, if you have clients that needs to access PulseAudio outside of your X11 session like mpd running as a different user, you will need to tell it how to connect to your PulseAudio instance. See PulseAudio/Examples#Allowing multiple users to use PulseAudio at the same time for a complete example. An authentication cookie containing random bytes is enabled by default to ensure audio does not leak from one user to another on a multi-user system. If you already control who can access the server using user/group permissions, you can disable the cookie by passing
These two variables are the important ones in order for libpulse clients to locate PulseAudio if you moved its socket to somewhere else. Seefor more details and other useful environment variables clients will read.
||Defines where the server is. It takes a protocol prefix like
||Point this to the location of a file that contains the random cookie generated by PulseAudio. This file will be read by clients and its content sent to the server, thus the file has to be readable by all audio clients. It does not need to be the same file, as long as its content matches the one the daemon uses.|
PulseAudio also uses window properties on the root window of the X11 server to help find the daemon. Since environment variables cannot be modified after child processes are started, X11 properties are more flexible because they are more easily changed because they are globally shared. As long as applications receive a
DISPLAY= environment variable, it can read the most up-to-date values. X11 properties can be queried using
xprop -root, or with
pax11publish -d to read pulse-specific properties.
pax11publish can also be used to update the properties from environment variables (
pax11publish -e, or
pax11publish -r to remove them entirely). If possible, it is recommended to let PulseAudio do it by itself using the module-x11-publish module or the
start-pulseaudio-x11 command. The following table is there only for completeness, you should not ever need to manually set these variables by hand.
||String value (
||String value that contains the hexadecimal representation of the authentication cookie.|