View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Mar 07, 2007 12:01 am 
Offline
Joined: Sun Sep 24, 2006 5:50 pm
Posts: 18
First, a disclaimer: I am not a Linux expert, nor a clean coder. I'm just a dirty get-it-done kind of guy.

With that in mind, I have added some menu options to my install of KnoppMyth that have proven very helpful so that I don't have to hook a keyboard or mouse up to my box or VNC in or anything else. I can do it all from the menu.

First New Option: Restart Backend

This has proven invaluable in the latest install because of its occasional issue of failing to properly start the backend (unless this was fixed and I wasn't made aware).

You can add this option to any of the menus. I put it in the KnoppMyth menu (/usr/share/mythtv/knoppmyth.xml).

Here's the code to add:
Code:
   <button>
     <type>POWER</type>
     <text>Restart Backend</text>
     <action>EXEC /usr/bin/sudo /etc/init.d/mythtv-backend restart</action>
   </button>



Second New Option: Go to MythTV Setup (the one where you can configure the input sources and so forth)

This has proven valuable in only a few instances - mainly when the channel lineup has been changed. I also put this in the KnoppMyth menu (/usr/share/mythtv/knoppmyth.xml). I put a corresponding "Jump to Frontend" in the MythTV Setup menu (/usr/share/mythtv/knoppmyth.xml).

Here's the code for the menu item to go to the setup file:
Code:
   <button>
     <type>POWER</type>
     <text>MythTV Setup</text>
     <action>EXEC /etc/mythtv/gotosetup.sh</action>
   </button>


The code for /etc/mythtv/gotosetup.sh:
Code:
/usr/bin/sudo /etc/init.d/mythtv-backend stop
/usr/bin/sudo /usr/bin/pkill -9 mythfrontend
/usr/bin/mythtv-setup


Don't forget to
Code:
chmod +x /etc/mythtv/gotosetup.sh


Here's the code for the return type option in the MythTV setup menu:
Code:
   <button>
     <type>POWER</type>
     <text>Jump to Frontend</text>
     <action>EXEC /etc/mythtv/gotofrontend.sh</action>
   </button>


Code for /etc/mythtv/gotofrontend.sh:
Code:
/usr/bin/sudo /etc/init.d/mythtv-backend restart
/usr/bin/sudo /usr/bin/pkill -9 mythtv-setup
/usr/bin/mythfrontend


Don't forget to
Code:
chmod +x /etc/mythtv/gotofrontend.sh



I hope this helps someone. If anyone thinks that doing this the way I did will cause some type of problem (it works great for me), please let me know.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2007 4:49 am 
Offline
Joined: Fri Feb 03, 2006 11:36 pm
Posts: 63
Location: Melbourne
I got sick of going into the media library to watch recordings and videos so I made those options display above the "Watch TV" option on the main menu by copying the TV_WATCH_RECORDINGS and VIDEO_BROWSER entries from /usr/share/mythtv/library.xml to be the first entries in /usr/share/mythtv/mainmenu.xml


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu