[mythtv-users] Reboot of backend causes frontend to crash?

Brad Fritz brad-mythtv at fritzfam.com
Thu May 26 01:36:52 UTC 2005


Mark,

I have a Xebian + blackbox + MythTV CVS frontend and I also have
trouble acknowledging the backend restart dialogs.  After an
unsuccessful attempt at tracking down the root cause, I gave up
and implemented a workaround.  More inline...

On Wed, 25 May 2005 18:02:44 MST Mark Knecht wrote:

[..]
> I can
> still ssh in from a remote system and kill all the mythfrontend
> processes. This brings me to the Xebian desktop but using only the
> remote control how do I restart Myth?

There are probably better ways, but I use irexec bound to an unused
button (on a universal remote) to kill and restart the mythtv process
when necessary.  Here is a snippet from my lirc config file:

begin
    prog = irexec
    button = POWER
    repeat = 0
    config = (echo "Press again to stop MythTV."; echo "Press a third time to restart.") | osd_cat --delay 2 --pos top --indent 15 --color orange --shadow 3 --font lucidasanstypewriter-bold-24
    config = echo "Stopping MythTV..."| osd_cat --delay 2 --pos top --indent 15 --color orange --shadow 3 --font lucidasanstypewriter-bold-24 ; /usr/bin/killall -TERM mythfrontend ; /usr/bin/killall -9 mythfrontend
    config = /root/startMythfrontend
end

(Apologies for the long, unwrapped lines.)

The osd_cat stuff is fluff.  The config below should work too,
assuming lirc doesn't mind the redirects.  I have not tested it
myself.

begin
    prog = irexec
    button = POWER
    repeat = 0
    config = /usr/bin/killall -TERM mythfrontend ; /usr/bin/killall -9 mythfrontend
    config = nice -n 2 /usr/bin/mythfrontend >> /var/log/myth/mythfrontend.log 2>&1 &
end


>    Or is there some way I can restart mythfrontend from the ssh
> terminal on another computer but get it to display on the XBox's TV?

By default SSH redirects X output.  You can either:

  export DISPLAY=:0.0

before running the mythfrontend command or use the "-x" option to ssh.

HTH,
Brad



More information about the mythtv-users mailing list