View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Dec 07, 2013 4:27 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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


Last edited by RacerX on Sun Dec 08, 2013 5:18 pm, edited 4 times in total.


Top
 Profile  
 
PostPosted: Sat Dec 07, 2013 4:46 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
PostPosted: Sat Dec 07, 2013 5:21 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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?


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 5:07 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 9:48 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
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.


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 2:06 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 4:02 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 4:55 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 5:36 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
you can turn off the backend ping check in the service menu


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 6:41 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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.


Top
 Profile  
 
PostPosted: Sun Dec 08, 2013 7:59 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu