Got lcdproc 0.5 installed so whats next ?

Linux support for Soundgraph iMON USB IR/VFD modules used in Ahanix, Silverstone, Uneed, Accent and other cases.

Moderator: Venky

Post Reply
daffydk
Posts: 8
Joined: Sun Apr 16, 2006 12:25 pm

Got lcdproc 0.5 installed so whats next ?

Post by daffydk » Mon Apr 17, 2006 5:20 am

well got the imon vfd installed with lcdproc 0.5 and it does output too the vfd display.
but each time i restart then i have to install it again before it works
thats alitle anoying
and i would realy like too have it work with mythtv (knoppmyth R5B7 )
so what do i do wrong and how do i fix it

Daffydk

( iam a neewbie )

poteenence

Post by poteenence » Mon Sep 11, 2006 6:27 am


Juzz
Posts: 1
Joined: Thu Nov 02, 2006 2:14 am

Post by Juzz » Tue Nov 21, 2006 4:58 am

With the LCDd package follows a file that you can put into your /etc/init.d dir, I seem to recall that it was named LCDd - or something.
In case you want to create the file yourself you can open up a terminal and do it like this:

Code: Select all

sudo kedit /etc/init.d/lcdd
and then copy and paste this:

Code: Select all

#!/bin/sh -e
#
# lcdd          Startup script for LCDd
#
#               Modified for autoconf
#               by Rene Wagner <reenoo@gmx.de>
#               Modified for lcd-server
#               by Joris Robijn <joris@robijn.net>
#               Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:      $Id: init-LCDd.debian.in,v 1.2 2002/05/28 12:48:05 reenoo Exp $

DESC="LCDd 0.5.0"

prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
# sbindir=${exec_prefix}/sbin
sbindir=/usr/local/sbin
etc=${prefix}/etc

LCDd=${sbindir}/LCDd
# configfile=${etc}/LCDd.conf
configfile=/etc/LCDd.conf

test -x ${LCDd} || exit 0

case "$1" in
start)
        printf "Starting $DESC:"
        # start-stop-daemon --start --quiet --background --exec ${LCDd} -- -s -f -c ${configfile}
        /usr/local/sbin/LCDd
        printf " LCDd"
        sleep 2
        su - mythtv -c "mythlcdserver -d"
        printf " & mythlcdserver"
        printf ".\n"
        ;;
stop)
        printf "Stopping $DESC:"
        # start-stop-daemon --stop --oknodo --quiet --exec ${LCDd}
        pkill mythlcdserver
        pkill LCDd
        printf " LCDd"
        printf ".\n"
        ;;
restart | force-restart)
#        $0 stop
#        sleep 1
#        $0 start
        printf "Restarting $DESC:"
        pkill mythlcdserver
        pkill LCDd
        sleep 1
        /usr/local/sbin/LCDd
        printf " LCDd"
        sleep 2
        su - mythtv -c "mythlcdserver -d"
        printf " & mythlcdserver"
        printf ".\n"
        ;;
*)
        printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
        exit 1
        ;;
esac

exit 0
Uhm, by the way I edited the file myself - because it wouldn't load properly otherwise (prolly me not getting the thing) - but at least it works.

and then after that you can make sure that it loads on system startup by doing this in a konsole:

Code: Select all

sudo update-rc.d lcdd defaults 90

Post Reply