<?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>One hand clapping &#187; LCDd</title>
	<atom:link href="http://warped.org/blog/tag/lcdd/feed/" rel="self" type="application/rss+xml" />
	<link>http://warped.org/blog</link>
	<description>Max Baker -- A Man with a Hand</description>
	<lastBuildDate>Mon, 12 Mar 2012 18:25:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Mythdora 10 / MythTV + Antec Fusion 430 VFD LCD + lircd + LCDd</title>
		<link>http://warped.org/blog/2009/11/22/mythdora-10-mythtv-antec-fusion-430-vfd-lcd-lircd-lcdd/</link>
		<comments>http://warped.org/blog/2009/11/22/mythdora-10-mythtv-antec-fusion-430-vfd-lcd-lircd-lcdd/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 05:47:22 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[antec]]></category>
		<category><![CDATA[LCDd]]></category>
		<category><![CDATA[lcdproc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lirc]]></category>
		<category><![CDATA[myth]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://warped.org/blog/?p=80</guid>
		<description><![CDATA[Problem This guide is how to setup the Antec Fusion 430 Case to work with Mythdora 10 and MythTV. I found a lot of guides on how to setup the drivers, but they were all out of date. Pieces There are three things you need to get running : lirc_imon kernel driver LCDd daemon mythlcdserver [...]]]></description>
			<content:encoded><![CDATA[<h1>Problem</h1>
<p>This guide is how to setup the Antec Fusion 430 Case to work with Mythdora 10 and MythTV.   I found a lot of guides on how to setup the drivers, but they were all out of date.</p>
<h1>Pieces</h1>
<p>There are three things you need to get running :</p>
<ol>
<li>lirc_imon kernel driver</li>
<li>LCDd daemon</li>
<li>mythlcdserver daemon</li>
</ol>
<p>All of these things came installed w/ Myth and didn&#8217;t require any additional patching or compiling.</p>
<p>To see the exact device we&#8217;re working with, run <strong>lsusb</strong> :</p>
<pre lang=sh>
Bus 003 Device 002: ID 15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller
</pre>
<p>This is all for the &#8220;Old&#8221; imon, or 1st generation, or &#8220;FFDC&#8221; version of the LCD device.</p>
<h2>1. LIRC lirc_imon kernel driver</h2>
<pre lang=sh>
yum install lirc lirc-libs
</pre>
<p>Edit /etc/modprob.conf and add this line :</p>
<pre lang=conf>
options lirc_imon display_type=1
</pre>
<p>The <strong>display_type=1</strong> option was not documented well, but that was the key in making the module work.  Without it I was seeing the following in the /var/log/messages after adding <strong>debug=1</strong> to the above.  I also was missing /dev/lcd0 even though the kernel driver was loading!</p>
<pre>
Nov 22 21:18:09 localhost kernel: lirc_imon: imon_probe: found IMON device
Nov 22 21:18:09 localhost kernel: lirc_imon: imon_probe: found IR endpoint
Nov 22 21:18:09 localhost kernel: lirc_imon: imon_probe: found VFD endpoint
Nov 22 21:18:09 localhost kernel: lirc_imon: imon_probe: device has no display
Nov 22 21:18:09 localhost kernel: lirc_imon: ir_onboard_decode: 1
Nov 22 21:18:09 localhost kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Nov 22 21:18:09 localhost kernel: lirc_imon: imon_probe: Registered iMON plugin(minor:1)
Nov 22 21:18:09 localhost kernel: lirc_imon: imon_probe: iMON device on usb&lt;3:2> initialized
</pre>
<p>That &#8220;device has no display&#8221; line is cured by the &#8220;display_type=1&#8243; option.   /var/log/messages now looks like this (with debug=1) :</p>
<pre>
Nov 22 21:21:55 localhost kernel: lirc_imon: Driver for Soundgraph iMON MultiMedia IR/VFD, v0.4
Nov 22 21:21:55 localhost kernel: lirc_imon: Venky Raju <dev @venky.ws>
Nov 22 21:21:55 localhost kernel: lirc_imon: imon_probe: found IMON device
Nov 22 21:21:55 localhost kernel: lirc_imon: imon_probe: found IR endpoint
Nov 22 21:21:55 localhost kernel: lirc_imon: imon_probe: found VFD endpoint
Nov 22 21:21:55 localhost kernel: lirc_imon: ir_onboard_decode: 1
Nov 22 21:21:55 localhost kernel: lirc_imon: vfd_proto_6p: 1
Nov 22 21:21:55 localhost kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Nov 22 21:21:55 localhost kernel: lirc_imon: imon_probe: Registered iMON plugin(minor:1)
Nov 22 21:21:55 localhost kernel: lirc_imon: Registering VFD with sysfs
Nov 22 21:21:55 localhost kernel: lirc_imon: imon_probe: iMON device on usb&lt;3:2> initialized
Nov 22 21:21:55 localhost kernel: usbcore: registered new interface driver lirc_imon
</dev></pre>
<p>At this point you should have a /dev/lcd0 and you can test it with this command : </p>
<pre lang=shell>
echo "hello world" > /dev/lcd0
</pre>
<p>OK, now that we have a working kernel driver, let&#8217;s move on to the LCD daemon</p>
<h2>2. LCDd Daemon</h2>
<ol>
<li>yum install lcdproc</li>
<li>Edit /etc/sysconfig/lcdproc/LCD.conf to look like this :
<pre code=conf>
[server]
Driver=imon
Bind=127.0.0.1
Port=13666

# Sets the reporting level; defaults to 2 (warnings and errors only).
#ReportLevel=3

# Should we report to syslog instead of stderr ? Default: no
ReportToSyslog=yes

# Sets the default time in seconds to displays a screen.
WaitTime=5

# User to run as.  LCDd will drop its root priviledges,
# if any, and run as this user instead.
User=nobody

# If yes, the the serverscreen will be rotated as a usual info screen. If no,
# it will be a background screen, only visible when no other screens are
# active.
ServerScreen=no

# The server will stay in the foreground if set to true.
#Foreground=no

DriverPath=/usr/lib/lcdproc/

# GoodBye message: each entry represents a display line; default: builtin
GoodBye=""
GoodBye=""

ToggleRotateKey=Enter
PrevScreenKey=Left
NextScreenKey=Right

[menu]
MenuKey=Escape
EnterKey=Enter
UpKey=Up
DownKey=Down

[imon]
Device=/dev/lcd0
Size=16x2
</pre>
<p>Note that you want the <strong>imon</strong> driver, not <strong>imon_lcd</strong> or any other one.
</li>
<li>Boot the driver
<pre lang=sh>
service LCDd restart
tail /var/log/messages
dmesg | tail
</pre>
</li>
</ol>
<p>At this point you should see the output of LCDd on the VFD display.    If not, rinse and repeat.</p>
<h2>3. mythlcdserver</h2>
<p>Follow <a href="http://www.mythtv.org/wiki/Mythlcdserver">these directions on mythtv.org</a> to turn on the LCD settings in MythTV from the front-end in the Appearance menu.   Restart the front-end and it should launch mythlcdserver.  If not, you can launch mythlcdserver as the same user as the front-end.</p>
]]></content:encoded>
			<wfw:commentRss>http://warped.org/blog/2009/11/22/mythdora-10-mythtv-antec-fusion-430-vfd-lcd-lircd-lcdd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

