http://wiki.rivendellaudio.org/index.php?title=Ubuntu_-_No_sound/sound_card_in_Rivendell_after_setup&feed=atom&action=historyUbuntu - No sound/sound card in Rivendell after setup - Revision history2024-03-28T14:57:29ZRevision history for this page on the wikiMediaWiki 1.26.4http://wiki.rivendellaudio.org/index.php?title=Ubuntu_-_No_sound/sound_card_in_Rivendell_after_setup&diff=85&oldid=prevHiggles: Created page with "'''Q:''' I just did a fresh install of Rivendell on Ubuntu (Lucid, Karmic, maybe earlier releases as well,( please add release names if you test this.)) but I have no sound in..."2018-03-12T15:39:58Z<p>Created page with "'''Q:''' I just did a fresh install of Rivendell on Ubuntu (Lucid, Karmic, maybe earlier releases as well,( please add release names if you test this.)) but I have no sound in..."</p>
<p><b>New page</b></p><div>'''Q:''' I just did a fresh install of Rivendell on Ubuntu (Lucid, Karmic, maybe earlier releases as well,( please add release names if you test this.)) but I have no sound in RDAirplay and in RDAdmin under Audio Resources it shows no sound cards. I have a [[Configuring_Rivendell_to_work_with_ALSA|/etc/asound.conf file]] setup correctly. What could possibly be wrong?<br />
<br />
<br />
<br />
'''A:''' It can happen that there will be a conflict between pulseaudio and the Rivendell daemons. They are trying to start around the same time and it seems that '''pulseaudio''' grabs the sound card then and before it can let it go Rivendell's Core Audio Engine (cae) is trying to find it too. It finds it busy or gets no response and assumes that there is no sound card and starts the daemons that way, thus you have no sound and no sound card shows up in RDAdmin under Audio Resources.<br />
<br />
You might think that a possible solution is to un-install pulseaudio. You reason that we are using Rivendell and '''pulseaudio''' is a audio sound system that Rivendell does not work with. '''asihpi''', '''alsa''', and '''jack''' are sound systems that it does work with. However, this will not work! Trying to remove the package '''pulseaudio''' means that you have to remove the package '''ubuntu-desktop''' which it depends on. It is the Ubuntu desktop system. This package depends on all of the packages in the Ubuntu desktop system. It is also used to help ensure proper upgrades, so it is recommended that it not be removed.<br />
<br />
You might think that you could just run a command like <br />
<pre>killall pulseaudio</pre><br />
and that would be the end of '''pulseaudio''' but it is setup in Ubuntu to start and auto spawn every time it gets killed.<br />
<br />
<br />
'''The Solution:''' Copy /etc/pulse/client.conf to '''~'''/.pulse/client.conf. You can do that with the following command in a terminal:<br />
<br />
<pre> cp /etc/pulse/client.conf ~/.pulse/client.conf</pre><br />
<br />
Then and change the line:<br />
<br />
<pre>; autospawn = yes</pre><br />
<br />
to<br />
<br />
<pre>autospawn = no</pre><br />
<br />
After this rivendell starts properly on every boot.<br />
<br />
'''Note: ~ in the path given above is an alias to the current linux users home directory. If the current linux user is fredg then you would copy the filed to /home/fredg/.pulse'''<br />
<br />
'''Note: You must remove the semicolon (;) from the beginning of the line to uncomment it and for the setting to be read.'''<br />
<br />
'''Note: You may need to create the .pulse directory if pulse audio has not done so to copy the file there. To do so under Ubuntu:'''<br />
<br />
<pre>mkdir ~/.pulse</pre><br />
<br />
You will want to kill pulseaudio after doing this especially if you have the box under '''Startup Applications Preferences''' under the '''Options''' tab labeled '''Automatically remember running applicaitons when logging out''' ticked. You can now do this by running:<br />
<pre>killall pulseaudio</pre><br />
<br />
You can then check if pulseaudio autospawning has been by running:<br />
<pre>ps -C pulseaudio</pre><br />
<br />
If you get back something similar to:<br />
<pre><br />
PID TTY TIME CMD<br />
17065 ? 00:00:02 pulseaudio</pre><br />
Then pulseaudio is still running, however if you get back:<br />
<pre><br />
PID TTY TIME CMD</pre><br />
Then all is well and pulseaudio is not running anymore.<br />
<br />
<br />
if Rivendell is currently running you will either need to restart the computer or just restart Rivendell by running the following in a terminal:<br />
<pre><br />
sudo /etc/init.d/rivendell/stop<br />
sudo /etc/init.d/rivendell start</pre><br />
<br />
<br />
I have tested this setting in the client.conf file on a Lucid and a Karmic machine and this does disable pulseaudio from starting or autospawning.<br />
<br />
pulseaudio can still be started manually if needed with:<br />
<br />
<pre>pulseaudio -D</pre></div>Higgles