[mythtv-users] Start FE from SSH

Nick Morrott knowledgejunkie at gmail.com
Wed Mar 28 19:11:21 UTC 2007


On 28/03/07, James Armstrong <james at thearmstrongs.org> wrote:
>
> >
> > Why not setup irexec and the powerbutton on your remote to launch the
> > frontend for you?
> >
> > from my .lircrc
> > ###########################################
> > # Start Myth
> > begin
> > prog = irexec
> > button = POWER
> > config = /usr/local/pvr/mythpowerbutton.sh
> > end'
> >
> >
> > contents of /usr/local/pvr/mythpowerbutton.sh
> > ###########################################
> > if !(ps -ef | grep mythfrontend | grep -v grep); then
> >
> >         /usr/bin/mythfrontend&
> >
> > else
> >         killall -9 mythfrontend
> >
> >
> > fi
> >
> >
> Does this still work when using the compile flag for mythfrontend to use
> lirc directly?

Yes, because this script doesn't use MythTV at all. You want to have
irexec running in the background and associate the POWER button to the
above script and irexec (and not to MythTV), this way the script will
start mythfrontend if it is not already running, and kill it if it is.

Nick
-- 
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list