[mythtv-users] Setting dynamic LCD goodbye message on shutdown.

Chris Simmons chris at simmons.titandsl.co.uk
Mon Aug 10 18:36:06 UTC 2009


I thought people might be interested in this, I've got a nasty hack 
which lets you dynamically update the goodbye message on shutdown.  It 
does appear to work ymmv etc :)

You'll need to look at your LCDd.conf and change <lineNumber> to the 
appropriate line numbers (or come up with some better sed than I did).  
My LCDd.conf reads...

85:  GoodBye=" Next Recording "
86:  GoodBye=" dynamic text     "

so <lineNumber> is 86 in the below for me.

#!/bin/bash
Date=`date -d @$1 +"  %a %l:%M %p  "`
Exp=<lineNumber>c\GoodBye=\"$Date\"
#echo $Exp
cp /etc/sysconfig/lcdproc/LCDd.conf /etc/sysconfig/lcdproc/LCDd.conf.backup
sed -i -e "$Exp" /etc/sysconfig/lcdproc/LCDd.conf
/sbin/service LCDd reload

I call the above with time_t (seconds since epoch).

It would clearly be nicer if the LCD telnet interface supported changing 
config options instead of this mingery, so that the backend could do 
this automagically when shutting down.

Strangely LCDd doesn't mention reload as an option but it appears to work.

Chris.



More information about the mythtv-users mailing list