Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux Mint has been working perfectly for months - I then installed a few video editor programs to try them out ( avidemux, flowblade) ...since then nothing but problems with sound.
I have narrowed the problem down to this - the pulseaudio daemon does not autostart.
When I boot up - no sound. If I open a terminal and enter " pulseaudio -D " then everything works perfectly.
This is my workaround every time I boot up.
So - for some reason autostarting PA no longer works. What stopped it?
OK you say - easy answer - just go into Control Centre > Startup Applications and add pulseaudio -D to start up on boot.
Yup - been there - done that - still doesn't start PA
Delete $HOME/.pulse folder - yes done that too - but no long term solution.
Could anybody suggest any actions to make PA start up on boot?
Does anybody have any idea what program is 'stopping ' my PA from autostarting like it used to do?
well you could un-install all of that software you installed, then see if that gets it back to how it was. then if yes, just install one at a time and work with it for a bit to see if it is that one that is stopping PA from autostarting, if no, then install the next one, same thing until you find which one is doing this to your system.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Another thing to check is whether something like jackd was installed and is initially blocking the sound hardware. Check out the dependencies of the packages you installed for clues, perhaps?
Personally I think the first thing I would do would be to reinstall pulseaudio and see whether that resolves it.
Bear in mind that there are many parts (packages) and that is but one of them. You can have a pulseaudio over jackd setup (I do). And many other configurations. Alsa is the audio driver of sorts, everything else is a layer on top of that. Although the more layers, the less likely it'll be to taste at boot without serious admin skillz. I just accept that there's post boot steps I have to do for my audio setup, but my setup is hardly typical.
You might check the logs to see if pulseaudio tried to start, but failed to for reasons.
# journalctl -a
# less /var/log/syslog
$ dmesg | less
$ COLUMNS=255 ps faux
Thanks Shadow7 - I found these lines which are probably very relevant.
Do they give you any clue as to may next move ( actually I've not yet done a pulseaudio re-install)
Mar 11 14:50:07 QuadCore-Mint pulseaudio[1077]: [autospawn] core-util.c: Home directory not accessible: Permission denied
Mar 11 14:50:07 QuadCore-Mint pulseaudio[1077]: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
Mar 11 14:50:07 QuadCore-Mint pulseaudio[1077]: [pulseaudio] main.c: Failed to acquire autospawn lock
and later
Mar 11 14:50:16 QuadCore-Mint pulseaudio[1769]: Failed to open module module-jack-source.so: module-jack-source.so: cannot open shared ob
Mar 11 14:50:16 QuadCore-Mint pulseaudio[1769]: Failed to open module "module-jack-source".
Mar 11 14:50:16 QuadCore-Mint pulseaudio[1769]: Module load failed.
Mar 11 14:50:16 QuadCore-Mint pulseaudio[1769]: Failed to initialise daemon.
and more
Mar 11 14:51:21 QuadCore-Mint pulseaudio[2377]: Failed to find a working profile.
Mar 11 14:51:21 QuadCore-Mint pulseaudio[2377]: Failed to load module "module-alsa-card" (argument: "device_id="2" name="usb-0499_1009-00
Mar 11 14:51:25 QuadCore-Mint pulseaudio[2377]: Failed to open cookie file '/home/colin/.config/pulse/cookie': No such file or directory
Mar 11 14:51:25 QuadCore-Mint pulseaudio[2377]: Failed to load authentication key '/home/colin/.config/pulse/cookie': No such file or dir
Seems you have a few permission issues going on there. Did you do something with pulse as root? It might have created config files in the wrong place with the wrong permissions.
/.pulse* ???
~/.pulse* ???
Modern version put them in:
~/.config/pulse/
But it may have be assigned to root. And maybe some /run/ and /sys/ type things, but those should clear with a reboot.
$ ls -al .config/pulse*
Baring customization deleting the configs and restarting pulse will fix a lot of those config permission issues.
I haven't knowingly done something with pulse as root .
I entered ls -al .config/pulse* and got
colin@QuadCore-Mint ~ $ ls -al .config/pulse*
total 56
drwx------ 2 colin colin 4096 Mar 8 23:12 .
drwxr-xr-x 41 colin colin 4096 Mar 10 23:31 ..
-rw-r--r-- 1 colin colin 32768 Mar 8 23:12 8441891e86e24d76b9616edf516d5734-card-database.tdb
-rw-r--r-- 1 colin colin 12288 Mar 8 23:12 8441891e86e24d76b9616edf516d5734-device-volumes.tdb
-rw-r--r-- 1 colin colin 696 Mar 8 23:12 8441891e86e24d76b9616edf516d5734-stream-volumes.tdb
Do you recommend I reinstall pulseaudio - if so do i need to get rid of any old config files - and where would they be?
I discovered that it is some sort of conflict between JACK and PULSEAUDIO. I eventually discovered that the program jackdbus was automatically starting ( and yet as far as I can tell, no program was using jack ).
I had a program called Cadence which was in the startup programs, which automatically started jackdbus. So I have stopped that from ever starting up jackdbus and now my pulseaudio seems to start working OK and consequently all the other programs using sound seem to work.
So I suppose my next question is... is it possible to get JACK and PA to 'work together in perfect harmony' (as the song goes) or is that just a pipedream?
jackdbus is jack2 it works fine, but conflicts with jack aka jackd (as far as ps output goes, basically the same app/process). It is quirky on my debian jessie system. I basically have to start/stop jackdbus and pulseaudio one or more times to have pulseaudio show up in qjackctl which is when you know it's now working.
Which starts pulseaudio as part of that effort. Actually starts with jack_control start. And this is when I check qjackctl to see if pulse showed up. Often times I have to $(pulseaudio --kill) and $(pulseaudio --start) to have it show up. But once it shows up, I'm using alsa, jackd, and pulse. And can do fancy things like the alsaequal plugin for a 10 band EQ. Or the calf plugin for a 30 band EQ. Although you have to do the rerouting / connections to bridge pulse to jackd and back to use the plugin (qjackctl or jack_* tools for CLI ways). One advantage of this route is that I can network audio with pulseaudio, so the EQ processing can be off my main machine and I only need one set of good speakers and one good audio interface.
Thanks Shadow7 for that comprehensive reply.
I have to confess I don't understand everything you've written but I'm getting there - slowly.
I don't use qjackctl ( should I be doing?) but I do have a program - cadence which allows me to control and configure jack
I've noticed (using System Monitor, looking at Processes) that when I start jack .. jackdbus says 'running and then PA says 'sleeping' .. and any program that was using PA eg a media player such as xplayer just stops producing any sound - and then if I stop jack then jackdbus says 'sleeping', PA says 'running' and any media player immediately starts producing sound again.
So that seems to be an 'either/or' situation - they're not really working together.
There's special configuration that is needed (not default for most distros) when using a pulseaudio over jackd (jackdbus) setup. If that is indeed what you want to be doing. By default most distros don't use jack.
Those "additions" so pulse uses jack. And users that didn't start pulse (or jack) can use the audio over networking. Plus not-local machines.
FILE:$HOME/.config/pulse/client.conf
Code:
default server = 127.0.0.1
So users that did NOT launch pulse can access pulse over the network(lo/loopback). With the non-local IP in that location for not-local machines.
FILE: /etc/pulse/client.conf
Code:
autospawn = no
This allows pulseaudio to die (stop) and stay dead. I tend the change my configuration depending on what I am doing. Pulseaudio can take a bit of RAM away from other tasks. And jack can take a bit of CPU resources. Plus other quirks when networking audio and the system clock times differ / drift. It's just nice to have options.
When I want to use alsa natively and ignore the frills, I comment out most of the configurations and change the .asoundrc to suit. Plus stopping pulseaudio, jackdbus, and whatever else is using what I want for other things. I might need those frills to record a video, but disabling them when editing the video can literally save days of processing time. Then again all of my machines are years olds, or spec towards that age.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.