<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life &#187; pulseaudio</title>
	<atom:link href="http://blog.chris.szikszoy.com/tags/pulseaudio/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chris.szikszoy.com</link>
	<description>Bits and Pieces, as I see them</description>
	<lastBuildDate>Mon, 30 Aug 2010 20:14:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Another PulseAudio Gotcha &#8212; problems with hostnames, zeroconf, and RTP streams</title>
		<link>http://blog.chris.szikszoy.com/2009/01/another-pulseaudio-gotcha-problems-with-hostnames-zeroconf-and-rtp-streams/</link>
		<comments>http://blog.chris.szikszoy.com/2009/01/another-pulseaudio-gotcha-problems-with-hostnames-zeroconf-and-rtp-streams/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 22:33:29 +0000</pubDate>
		<dc:creator>Chris S.</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network audio]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[rtp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zeroconf]]></category>

		<guid isPermaLink="false">http://blog.chris.szikszoy.com/?p=41</guid>
		<description><![CDATA[I&#8217;m very happy to say that I&#8217;ve finally got my PulseAudio setup working.  Technically, it was &#8220;working&#8221; before, but I could never get any of the network functionality to work.  Using PADevChooser, I could &#8220;see&#8221; other hosts with PA installed under the server menu, but I could never move streams to other hosts across the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m very happy to say that I&#8217;ve finally got my PulseAudio setup working.  Technically, it was &#8220;working&#8221; before, but I could never get any of the network functionality to work.  Using PADevChooser, I could &#8220;see&#8221; other hosts with PA installed under the server menu, but I could never move streams to other hosts across the networks.  Also, the RTP sink would never quite work.  On some computers it wouldn&#8217;t even loopback to the local speakers.  Something was obviously wrong.<br />
<span id="more-41"></span><br />
After checking my system logs, I found something interesting.<br />
[code]<br />
Jan  9 11:51:43 chris-laptop pulseaudio[7116]: module-zeroconf-discover.c: Cannot construct valid device name from credentials of service 'tunnel.chris-desktop.local.alsa_output.pci_10de_59_sound_card_0_alsa_playback_0'.<br />
Jan  9 11:51:43 chris-laptop pulseaudio[7116]: module-zeroconf-discover.c: Cannot construct valid device name from credentials of service 'tunnel.chris-desktop.local.alsa_input.usb_device_46d_8b5_noserial_if1_sound_card_0_alsa_capture_0'.<br />
Jan  9 11:51:43 chris-laptop pulseaudio[7116]: module-zeroconf-discover.c: Cannot construct valid device name from credentials of service 'tunnel.chris-desktop.local.alsa_input.pci_10de_59_sound_card_0_alsa_capture_0'.<br />
Jan  9 11:51:43 chris-laptop pulseaudio[7116]: module-zeroconf-discover.c: Cannot construct valid device name from credentials of service 'tunnel.chris-desktop.local.combined'.<br />
Jan  9 11:51:43 chris-laptop pulseaudio[7116]: module-zeroconf-discover.c: Cannot construct valid device name from credentials of service 'tunnel.chris-desktop.local.rtp'.<br />
[/code]</p>
<p>It seemed pretty relevant, so I started hunting for anything I could find that seemed to explain just what these error messages meant.  After a shot search, I <a href="http://www.pulseaudio.org/ticket/284" target="_blank">found this</a>.  This seemed to be exactly the problem I was experiencing.  Sure enough, all of my computers have a &#8216;-&#8217; in their hostnames.   It was a little strange to me that it was marked fixed, but I figured it was worth it to find out whether or not this was what was causing pulse to die on the network.</p>
<p>Much to my surprise, after chaing the hostnames of my computers, pulse now works wonderfully!  I can seamlessly move streams between devices over the network, and the RTP sink now plays music on all computers (and even correctly loops back audio on the current computer)!</p>
<p>What I did to fix this was change the hostname of every computer that currently had a &#8216;-&#8217; in the hostname.  To do this, it was quite simple actually.  Debin/Ubuntu sets the computer&#8217;s hostname to whatever is in /etc/hostname on bootup.  To change the computer&#8217;s hostname, simply change the contents of this file.</p>
<p>[code]<br />
sudo nano /etc/hostname<br />
[/code]</p>
<p>Then save changes and exit. To change the computer&#8217;s hostname instantly, use this script:</p>
<p>[code]<br />
sudo /etc/init.d/hostname.sh start<br />
[/code]</p>
<p>You&#8217;ll also have to change another file as well.  Failure to change both of these could lock you out of your account and prevent you from using sudo!  On this next file, you&#8217;ll have to check the two lines at the top.  The first two lines should currently look like this:</p>
<p>[code]<br />
127.0.0.1    HOSTNAME<br />
127.0.1.1    OLD_HOSTNAME<br />
[/code]</p>
<p>All you need to do is change OLD_HOSTNAME to HOSTNAME.</p>
<p>More than likely, you&#8217;ll have to restart the pulseaudio server to register these changes.  Either logout or reboot, and hopefully, pulse will play nice with your network now!</p>
<p>More info on <a href="http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html" target="_blank">how to change hostnames in linux</a>.<br />
Another important note <a title="http://ubuntuforums.org/showthread.php?t=774029" href="http://" target="_blank">here as well</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chris.szikszoy.com/2009/01/another-pulseaudio-gotcha-problems-with-hostnames-zeroconf-and-rtp-streams/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Howto: Fix low system volume on Ubuntu 8.10 Intrepid</title>
		<link>http://blog.chris.szikszoy.com/2008/12/howto-fix-low-system-volume-on-ubuntu-810-intrepid/</link>
		<comments>http://blog.chris.szikszoy.com/2008/12/howto-fix-low-system-volume-on-ubuntu-810-intrepid/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 01:46:28 +0000</pubDate>
		<dc:creator>Chris S.</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.chris.szikszoy.com/?p=39</guid>
		<description><![CDATA[I recently installed Ubuntu 8.10 (the Intrepid Ibex) on my laptop.  I&#8217;m happy to say that the upgrade process from 8.04 to 8.10 went very well.  When I first installed 8.04 I created a separate partition for /home (there&#8217;s a great howto guide here).  This made the upgrade process so incredibly painless. After spending some [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed Ubuntu 8.10 (the Intrepid Ibex) on my laptop.  I&#8217;m happy to say that the upgrade process from 8.04 to 8.10 went very well.  When I first installed 8.04 I created a separate partition for /home (there&#8217;s a great <a href="http://welcometoubuntu.blogspot.com/2008/02/how-to-install-ubuntu-710-with-separate.html" target="_blank">howto guide here</a>).  This made the upgrade process so incredibly painless.</p>
<p>After spending some time reinstalling some programs, I discovered that PulseAudio finally worked on my laptop.  Even though Pulse was included in 8.04, it didn&#8217;t work on my laptop and I had to switch everything back to ALSA.  I played around with Pulse for a couple of minutes, setting everything up and then I started to notice something strange.  Even though my system volume was turned up to 100%, everything still seemed too quiet.  I tried changing the device in System &gt; Preferences &gt; Sound, but nothing seemed to help.</p>
<p>Running <em>alsamixer</em> in terminal only showed one mixer track &#8212; as it should if PulseAudio was enabled, and this read 100%.  After quite a bit of searching I found out what was wrong.  It turned out that one of the tracks (front) on the alsa hardware mixer was turned down to about 50%.  There&#8217;s no way to see this through the gui.  The only way to fix this is to run alsamixer in a terminal like this:</p>
<pre class="brush: bash">
$ alsamixer -D hw:0
</pre>
<p>This will bring up a bunch of bars representing all of the mixer tracks available on the hardware device.  After turning all of these up to 100% and exiting alsamixer (press ESC), everything was working perfectly again.</p>
<p>Hopefully this will save someone stuck in a similar situation from a few hours of headbanging.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chris.szikszoy.com/2008/12/howto-fix-low-system-volume-on-ubuntu-810-intrepid/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.10 &amp; PulseAudio</title>
		<link>http://blog.chris.szikszoy.com/2008/11/ubuntu-810-pulseaudio/</link>
		<comments>http://blog.chris.szikszoy.com/2008/11/ubuntu-810-pulseaudio/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 03:15:17 +0000</pubDate>
		<dc:creator>Chris S.</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.chris.szikszoy.com/?p=29</guid>
		<description><![CDATA[I recently installed Ubuntu 8.10 (The Intrepid Ibex) on my desktop computer and was pleasantly surprised to see that it didn&#8217;t have any problems loading the LiveCD.  I&#8217;ve been using Ubuntu since Gutsy (7.10) on my laptop, but the LiveCD would never boot on my desktop.  I&#8217;m not quite sure if it was the strange [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed Ubuntu 8.10 (The Intrepid Ibex) on my desktop computer and was pleasantly surprised to see that it didn&#8217;t have any problems loading the LiveCD.  I&#8217;ve been using Ubuntu since Gutsy (7.10) on my laptop, but the LiveCD would never boot on my desktop.  I&#8217;m not quite sure if it was the strange combination of two video cards, twin monitors, Nvidia and or SiI raid chips or what, but 8.10 was the first LiveCD that actually worked on my desktop.</p>
<p>After getting a chance to poke around and see what&#8217;s new, I&#8217;m pretty impressed.  Usability and stability is great.  All of my hardware worked right out of the box.  Installing Nvidia&#8217;s display drivers was so simple, just a couple clicks and a reboot, and now my multiple monitors work properly.  I was also surprised to see that my printer was installed without any interaction.  All I had to do was plug in the printer during install and the drivers were installed by default!</p>
<p><span id="more-29"></span></p>
<p>By far though, the one thing I&#8217;m the most impressed with is PulseAudio.  I currently have Hardy (8.04) on my laptop, and PulseAudio there is&#8230;. well for lack of a better word, complete and utter shit.  The only way I could get sound to work on my laptop at all was to completely remove anything remotely related to Pulse and set all applications to output directly to ALSA.  (Since doing that though, Hardy has been great for me.)</p>
<p>PulseAudio in 8.10 is quite a different story however.  It actually works!  By default, Ubuntu 8.10 does not ship with the auxilary PulseAudio controls and programs.  These include <em>padevchooser, pavucontrol </em>and <em>pavumeter</em>.  After installing these I was able to play around with the various features of PulseAudio.  I must say, I&#8217;m pretty excited about the future of GNOME and PulseAudio.  The ability to transfer streams to separate audio sinks and &#8216;per application&#8217; volume control are pretty cool.</p>
<p>I&#8217;ve also read that now that much of the ground-work for implementing PulseAudio into GNOME is done we will start to actually see some of these cool features.  Now that most applications are using PulseAudio directly, it&#8217;s possible to get the actual metadata from the audio stream.  This allows for things like transfering all VOIP calls to your headset instead of desktop speakers, and also muting all other audio sources when a VOIP call comes through.</p>
<p>One thing I would like to see more though is a more PulseAudio integrated gnome volume control applet.  Currently, the gnome volume control applet only controls the overall system volume.  I was searching through Ubuntu&#8217;s brainstorm website and I stumbled upon <a href="http://brainstorm.ubuntu.com/idea/7482/" target="_blank">this idea</a>.  It would be great if something like that was planned.  Some of the mockups show what the future could hold as well.  This particular one is my favorite.</p>
<p><a href="http://picasaweb.google.com/milan.krivda/GnomeMockups#5192542737460341154"><img class="aligncenter" title="Gnome Volume Control Applet mockup" src="http://lh6.ggpht.com/_JpXnrzAzps4/SA-eG8NbqaI/AAAAAAAAAHA/veJE5JSnb70/PulseAudio%20Volume%20Control%202.png" alt="" width="412" height="399" /></a></p>
<p>I haven&#8217;t found anything specific in the Gnome universe about what plans there are to further integrate PulseAudio, but hopefully something like the above can become a reality soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chris.szikszoy.com/2008/11/ubuntu-810-pulseaudio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

