Fix for Ubuntu's LCDproc-0.5.0-1
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! :)