So quite awhile ago, I remember seeing a topic mentioning trying to install PulseAudio to no avail.
I decided to try, for 1 month in total.
Here is how you do it:
- Download/Install PulseAudio, whatever method you prefer. Preferably you want to not overwrite the libraries in
/usr/lib
due to this immediately breaking a couple of applications if you were to remove it later or while it existed. (Unless PPM has gotten more intelligent such as removing via the rewritable layer and not the union layer) - Invoke PulseAudio as
PULSEAUDIO_SYSTEM_START=1 pulseaudio --disallow-exit --exit-idle-time=-1
2a. You may add-D
to the flags if you want it to become a daemon and not have it hog a terminal.
2b. If you decided to keep it separate and place it else where please useLD_LIBRARY_PATH
on all executables of PulseAudio unless you want to have library linking issues and problems with symbols.
What does this do? It sets a variable, although I am not certain whether I need it anymore. Better to keep it. --disallow-exit
will stop user exits besides CTRL-C and killall
/kill
and I suppose the kernel killing it off. --exit-idle-time=-1
stops the infuriating behavior of PulseAudio suddenly exiting because it idled too long.
Notes:
--system
is a big lie and the issues opened are still pending. It switches topulse
user and then subsequently set its own files to the only other user,root
and even sets permission bits (700) such that its own files are inaccessible to it. Now, yes, you couldchmod
andchown
it back but it will keep doing this modification and fail on pretty much every task requested of it. Just don't do it. Ignore the warning.- PulseAudio may or may not load the module
module-alsa-card
to intercept ALSA and bring all the nice functionality that would be expected of it. (And most Linux distributions) This requires editing the configuration in that case to un-comment the line for loading the module in thedefault.pa
. - PulseAudio and ALSA/Puppy Linux do not sync states. While its all fine and dandy on Ubuntu and others. Puppy Linux is not. So this means if PulseAudio suddenly ends and you left it at max before using PulseAudio you will be blasted with sound. The opposite could happen with PulseAudio being mute and you decide to bring it up later rather than use a startup script. Then you'll be wondering what just happened.
Template for startup script:
Code: Select all
export PULSEAUDIO_SYSTEM_START=1
pulseaudio --disallow-exit --exit-idle-time=-1
EDIT: 1