Personal tools
You are here: Home Open Source && Programming && Life Fix for Ubuntu's LCDproc-0.5.0-1

Fix for Ubuntu's LCDproc-0.5.0-1 Fix for Ubuntu's LCDproc-0.5.0-1

Document Actions
Submitted by ironstorm. on 2006-10-01 00:16. Kubuntu/UbuntuLinuxMythTVOpen Source
Ubuntu Edgy now has LCDproc 0.5.0 and Myth 0.20 which can communicate using the LCDproc 0.5x protocol, unfortunately the Ubuntu package is a little broken. This post shows how to diagnose and fix it.

Ubuntu's build of LCDproc 0.5.0-1 broke my previously working LCDproc set-up...

Here's how I troubleshot and fixed it:

# -- This Side = Step tried     # -- This Side = What you should see if things work & what I got instead
sudo /etc/init.d/LCDd start # this should write "LCDProc Server" to the VFD display
ps aux | grep -i lcd # if it were working you'd see /usr/sbin/LCDd, in my case there was nothing
sudo /usr/sbin/LCDd # this failed for me complaining it couldn't find server/drivers/imon.so, this told me to look in etc
grep -i "server/drivers" /etc/* # found 'DriverPath=server/drivers/' /etc/LCDd.conf

locate imon.so # found that DriverPath should be '/usr/lib/lcdproc/'
# OR
dpkg -L lcdproc | grep imon.so # another (probably better way) to find what DriverPath should be

So the fix was to edit /etc/LCDd.conf like so:

--- LCDd.conf.orig      2006-09-30 23:54:12.000000000 -0400
+++ LCDd.conf 2006-09-30 23:54:31.000000000 -0400
@@ -76,7 +76,7 @@
# the driver modules and will thus not be able to
# function properly.
# NOTE: Always place a slash as last character !
-DriverPath=server/drivers/
+DriverPath=/usr/lib/lcdproc/

Incorrect DriverPath was the first problem.

The second issue prevents /etc/init.d/LCDd from correctly starting the lcdproc server...  it has to do with some command line switches passed to LCDd which should have some values after them, but the values are missing so LCDd bombs...  here's the patch for that one:

--- /etc/init.d/LCDd.orig       2006-10-01 01:20:56.000000000 -0400
+++ /etc/init.d/LCDd 2006-10-01 01:19:55.000000000 -0400
@@ -14,7 +14,7 @@
NAME=LCDd
DESC=LCDd
DESC="LCDd"
-DAEMON_OPTS="-s -f -c /etc/LCDd.conf"
+DAEMON_OPTS="-s true -f true -c /etc/LCDd.conf"

test -x $DAEMON || exit 0

Final step of restarting lcdproc `/etc/init.d/LCDd start`... 

We should be back in business! :)

 

Blog
« July 2008 »
Su Mo Tu We Th Fr Sa
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Categories:
Best Practices (0)
Cooking (2)
EeePC (1)
Embedded (3)
HDTV (2)
Health (1)
J2EE (1)
Java (6)
Linux (24)
Movies (1)
Music (3)
MythTV (10)
NSLU2 (2)
Not Tech (11)
Plone (2)
Politics (2)
QEMU (4)
Tomcat (1)
Tooling (4)
Travel (1)
VoIP (1)
Websphere (1)
Windows (6)
Zaurus (4)
 

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: