<?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>S.G. Vulcan &#187; esekeyd</title>
	<atom:link href="http://www.sgvulcan.com/tag/esekeyd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgvulcan.com</link>
	<description>Silviu&#039;s tech blog. Resources and informations about linux, windows, symbian systems, networks, reviews, microcontrollers, and more.</description>
	<lastBuildDate>Wed, 08 Feb 2012 09:39:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>I have a linux Jukebox ! [2011 update]</title>
		<link>http://www.sgvulcan.com/i-have-a-linux-jukebox/</link>
		<comments>http://www.sgvulcan.com/i-have-a-linux-jukebox/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 19:30:04 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[blaupunkt]]></category>
		<category><![CDATA[esekeyd]]></category>
		<category><![CDATA[jukebox]]></category>
		<category><![CDATA[lcd-stuff]]></category>
		<category><![CDATA[lcdproc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mpc]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[numpad]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=462</guid>
		<description><![CDATA[Finally, after years of putting it away, after a few design changes and a fried motherboard I have a linux jukebox. Well, not a jukebox but more an internet radio. Check at the bottom for the latest updates. When I first had the ideea I noticed an old ~ &#8217;50s Blaupunkt Radio my father had in his basement. I investigated if the radio was worth restoring but the inside was rusted, the capacitors were long gone and most of the tubes were missing. It was more a case of rebuilding rather than restoring. I checked around the internet and saw that many models like this one existed, so it was not rare. And so, the radio was gutted and the insides went away. I cleaned and repaired the case as best as I could. The first ideea was to have a big harddrive inside, an amp and external speakers hooked to it. It worked like this for a while until the motherboard I used fried and so did the amp. The project was eventualy put aside. Anyways recently, I aquired an old Pentium III Compaq. By the case I could swear it was a small motherboard. It was NOT, and [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, after years of putting it away, after a few design changes and a fried motherboard I have a linux jukebox. Well, not a jukebox but more an internet radio.</p>
<p><strong>Check at the bottom for the latest updates.</strong></p>
<div id="attachment_463" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.sgvulcan.com/wp-content/uploads/2009/08/IMG_9095_i.jpg" rel="lightbox[462]"><img class="size-medium wp-image-463" title="Linux Webradio" src="http://www.sgvulcan.com/wp-content/uploads/2009/08/IMG_9095_i-300x200.jpg" alt="Linux Webradio" width="300" height="200" /></a><p class="wp-caption-text">Linux internet radio inside a vintage Blaupunkt radio case</p></div>
<p>When I first had the ideea I noticed an old ~ &#8217;50s Blaupunkt Radio my father had in his basement. I investigated if the radio was worth restoring but the inside was rusted, the capacitors were long gone and most of the tubes were missing. It was more a case of rebuilding rather than restoring. I checked around the internet and saw that many models like this one existed, so it was not rare. And so, the radio was gutted and the insides went away. I cleaned and repaired the case as best as I could.</p>
<p>The first ideea was to have a big harddrive inside, an amp and external speakers hooked to it. It worked like this for a while until the motherboard I used fried and so did the amp. The project was eventualy put aside.</p>
<p>Anyways recently, I aquired an old Pentium III Compaq. By the case I could swear it was a small motherboard. It was NOT, and also the custom compaq psu had very short wires, but I managed to fit it inside. Since I have a media center pc hooked to the tv and the surround with all the music on it I decided to change the original ideea and make it what it originally was: a radio.</p>
<p>So, I gutted an old set of very good sounding Altec Lansing computer speakers and installed the small amp and speakers inside. I also mounted the motherboard and psu inside. One small fan on a side does the job of cooling everything down. I use one of the buttons on the front for the amp and another one for the computer.</p>
<p>I gave up the harddrive from the original design for a compact flash &lt;-&gt; ide adapter and the system now boots from a 4 Gb compact flash card. I think I could have squeezed everything on a smaller card but I decided to do all the compiling in place and since cards are cheap I went for a big one. The adapter has space for a second card and, if I want I can fit a second, bigger card, to hold some music.</p>
<p>I have a usb numpad for control and the <a href="http://www.sgvulcan.com/4x20-lcd-screen-with-usb-interface/">usb lcd display</a> featured some time ago on this site for display.</p>
<p>Software:</p>
<ul>
<li><a href="http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki" target="_blank">mpd</a> for playback</li>
<li><a href="http://mpd.wikia.com/wiki/Client:Mpc" target="_blank">mpc</a> for mpd control</li>
<li><a href="http://lcdproc.omnipotent.net/" target="_blank">Lcdproc</a> and <a href="http://lcd-stuff.berlios.de/">lcd-stuff</a> for usb lcd display</li>
<li><a href="http://www.burghardt.pl/tag/keyboard/" target="_blank">esekeyd</a> for numpad control</li>
<li>a bunch of bash scripts to glue everything in place</li>
</ul>
<p>I hit a few problems:</p>
<ul>
<li>Event Music Player Client daemon does not work, at least with my keypad. So I had to use an external daemon &#8211; esekeyd with mpc to control mpd.</li>
<li>lcd-stuff does not display the Name tag (that would be the radio station name, just the artist and track name. Fortunately it has a configuration tag to use as a title for the screen &#8211; on every playlist change a bashscript modifies that configuration setting to reflect the radio station&#8217;s name and reloads lcd-stuff &#8211; it&#8217;s ugly but it works.</li>
<li>I didn&#8217;t find a way to save .pls and .m3u files and have them recognized by the mpd database. So a script is called at boot time (and also can be started from one of the keys on the keypad) to generate a playlist of the radio stations. Control is easy after that, it&#8217;s a matter of play/stop, next / prev</li>
<li>I wanted to have a way to shut down the system safely from the keypad. OTOH I didn&#8217;t want shutting down every time I hit the wrong key. But esekeyd doesn&#8217;t support combinations. So I had <strong>*</strong> create a file, <strong>/</strong> create a second one but only if the first file (created by *) existed and on backspace press verify if the two files exist and if yes poweroff.</li>
</ul>
<p>I&#8217;ll post soon more photos, the insides and the configuration files and bash scripts used.</p>
<p><strong>2011 Update</strong></p>
<p>It never functioned reliably and so I decided on rebuilding it once more <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>The Compaq Deskpro EN was reassembled and donated to charity.</li>
<li>I bought the cheapest intel motherboard with an atom processor.</li>
<li>With the motherboard I also bought a small, slim PSU which happened to have the loudest annoying fan I ever heard. Fortunately the motherboard and disk use small amounts of power so no heat is produced. I hooked the fan to 5v and now it&#8217;s quiet.</li>
<li>I got a good deal on a pair of Microlab powered speakers (were the last in stock, open box) so I hooked those up to the radio. It&#8217;s still possible to use the insternal speakers but why would you want to <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Used a 500Gb sata disk that I also had around.</li>
<li>Took the oportunity to update slackware, mpd and everything else to the latest versions.</li>
<li>Took out the LCD until I can find time to build it in a nice case</li>
<li>The usb numpad is still there but I&#8217;m having trouble finding a daemon that actually works between two reboots</li>
<li>I use Client175 for web control and also Sonata on n800 and DroidMPD on my wife&#8217;s tablet to control it. Having 500Gb it&#8217;s got it&#8217;s music back (not only internet radio).</li>
<li>Since playlist support seems to be better now I have each radio stored in a playlist that DroidMPD or Client175 can simply load.</li>
<li>The best thing is that there are no custom hackish scripts left that could break all the time. It&#8217;s just stock mpd, playlists and the clients. Oh, I also have the command line clients installed for when I ssh into it using my n900.</li>
<li>The only problematic thing left is the shitty usb wi-fi adapter I use (don&#8217;t know, might be the drivers) it&#8217;s slow and sometimes connection drops. I added <strong>ping -c1 GATEWAY_IP </strong>in cron every 2 minutes and this seems to help.</li>
</ul>
<p>Somebody in the comments asked for the configurations and scripts  The original ones, from the compact flash should still be in backups somewhere but I don&#8217;t see how they could help, as they point to old or discontinued versions.  (lcd-stuff comes to mind). The configuration I use now is as stock as one can get with mpd. Let me know if you have questions about it and also <strong><em>please</em></strong> recommend me a daemon that can listen for keystrokes from the usb keypad and it&#8217;s stable.</p>
<p>Have fun.</p>
<h1 class="ha"><span id=":4g" class="hP"> I have a linux Jukebox !</span></h1>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/i-have-a-linux-jukebox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

