LinHES Forums
http://forums.linhes.org/

Question Regarding R8 mythfrontend
http://forums.linhes.org/viewtopic.php?f=21&t=23897
Page 1 of 1

Author:  RacerX [ Sat Dec 07, 2013 4:27 pm ]
Post subject:  Question Regarding R8 mythfrontend

Currently i have three boxes

1.) Mythwelcome R8 Master BE/FE that works on the recording schedule
2.) Mythfrontend R8 FE
3.) Ach Server box for Storage (Library)

A lot of times the R8 Master BE/FE is off and I would prefer to use the R8 Frontend to access the Arch box Library via Xbmc

When R8 first came out I could run legacy mode and then Xbmc.sh and this was fine. Recently when I run legacy mode I'm confronted with the messsage "connecting to mythbackend" and it does not go away.

Is there way to handle this without starting up up the Mythwelcome Box?

Thanks

Author:  graysky [ Sat Dec 07, 2013 4:46 pm ]
Post subject:  Re: Qustion Regarding R8 mythfornend

No idea if there is a native solution to this but a simple script that pings the MBE and if a response is given, launches mythfronend or if no response is given launches xbmc would work. You'll have to set this to start at login obviously. I also don't know the paths that LH is using for programs so edit accordingly.

Something like:
Code:
#!/bin/bash
# edit to match the IP of your MBE
masterbackend=192.168.1.3

ping -c 1 $masterbackend &>/dev/null

if [ $? -ne 0 ]; then
 # server is down so launch xbmc
 /usr/bin/xbmc
else
 # server is up so launch mythfrontend
 /usr/bin/mythfrontend --logpath /tmp
fi

Author:  RacerX [ Sat Dec 07, 2013 5:21 pm ]
Post subject:  Re: Qustion Regarding R8 mythfornend

Super, here is the info

Code:
#!/bin/bash
# edit to match the IP of your MBE
masterbackend=192.168.1.4

ping -c 1 $masterbackend &>/dev/null

if [ $? -ne 0 ]; then
 # server is down so launch xbmc
 /usr/LH/bin/xbmc.sh
else
 # server is up so launch mythfrontend
 /usr/bin/mythfrontend --logpath /tmp
fi


How do kick it off at boot up?

Author:  graysky [ Sun Dec 08, 2013 5:07 am ]
Post subject:  Re: Qustion Regarding R8 mythfornend

RacerX wrote:
How do kick it off at boot up?


You need to figure out how LH does it... to disable that and replace it with that script. Have you looked in ~/.config/autostart for .desktop files that do it?

Author:  brfransen [ Sun Dec 08, 2013 9:48 am ]
Post subject:  Re: Qustion Regarding R8 mythfornend

RacerX wrote:
How do kick it off at boot up?

From http://linhes.org/projects/linhes/wiki/R8
Quote:
Frontend system, will run /etc/X11/autostart when starting up regardless of the windowmanger selected. If you need to start custom things for X, this is the place to put it.

Author:  RacerX [ Sun Dec 08, 2013 2:06 pm ]
Post subject:  Re: Qustion Regarding R8 mythfrontend

I looked for

Quote:
/etc/X11/autostart


do I need create it?

Code:
ls -l /etc/X11


Code:
total 20
drwxr-xr-x 2 root root 4096 Oct 28 22:32 Sessions
-rw-r--r-- 1 root root   71 Oct 12 15:39 WINDOWMANAGER
drwxr-xr-x 3 root root 4096 Feb 11  2013 xinit
drwxr-xr-x 2 root root 4096 Nov 16 13:36 xorg.conf.d
-rw-r--r-- 1 root root   36 Oct 13 01:21 XvMCConfig

Author:  graysky [ Sun Dec 08, 2013 4:02 pm ]
Post subject:  Re: Qustion Regarding R8 mythfrontend

RacerX wrote:
I looked for

Quote:
/etc/X11/autostart


do I need create it?


If it's not there then I can't see how that could be launching the frontend. Post the output of:
Code:
ls -l /home/mythtv/.config/autostart

Author:  RacerX [ Sun Dec 08, 2013 4:55 pm ]
Post subject:  Re: Qustion Regarding R8 mythfrontend

Code:
ls -l /home/mythtv/.config/autostart
ls: cannot access /home/mythtv/.config/autostart: No such file or directory


Code:
find / -name "autostart"
/usr/share/wm_data/GNUstep/Library/WindowMaker/autostart
/etc/xdg/autostart


It seems to me that it runs from
/etc/X11/Sessions/LinHES

Author:  jams [ Sun Dec 08, 2013 5:36 pm ]
Post subject:  Re: Question Regarding R8 mythfrontend

you can turn off the backend ping check in the service menu

Author:  RacerX [ Sun Dec 08, 2013 6:41 pm ]
Post subject:  Re: Question Regarding R8 mythfrontend

Quote:
you can turn off the backend ping check in the service menu


Sure you can but that doesn't stop the connect to "connecting to mythbackend" going for infinity

In the sql world (tcpip, named pipes) everything in available all the time. But in my world it's only as needed since I pay the bill. I really like the idea of the batch file from Graysky :D . It is simple and elegant. But figuring out how to get it in there seems challenging.

Author:  jams [ Sun Dec 08, 2013 7:59 pm ]
Post subject:  Re: Question Regarding R8 mythfrontend

well if it doesn't stop it thats a bug, when disabled it should skip the check completely and never perform it.
I'm referring to the msg "Waiting for connection to MythBackend", if thats not the one your referring to its a different story

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/