View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Broke optical disks menu
PostPosted: Fri Aug 19, 2005 10:21 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
I added a button to my R5A16 optical_menu.xml which I think is a nice enhancement, and in 3 out of four boxes, the menu and the button work fine. One got broke. :(
When I select Optical Disks the error message is : "The menu file optical_menu.xml is incomplete"

Here is the button I added,

<button>
<type>DVD</type>
<text>Eject DVD</text>
<action>EXEC umount /dev/dvd;eject hdc</action>
</button>

I have checked, double checked for typos, even copied a working menu to replace the suspected file. Any hints?

If anyone adds this button (no warrenties) and it makes your machine appear to lock up, get the paper clip because the drawer is just stuck. As soon as the drawer opens all is well again. :)

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 20, 2005 9:42 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
What does the whole file look like? You did add this BEFORE the line that says
Code:
</mythmenu>
right?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 20, 2005 9:44 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi tjc

That cut right to the quick :) however am glad that you asked as it made me go dig deep for details. I did an ls -al on the file and noticed it was longer than a good file altho the text was the same. Tried a copy across network and came out same way. On a whim, copied from my install floppy and now works properly.

The only change to the file was to insert this code before the end of " optical_menu.xml" Even changed the <text>label to try again. It seems something may be hidden.

Thanks for the push as this now works (4 out of 4)
Mike

Bad.. ls -al /usr/share/mythtv/optical_menu.xml
-rw-r--r-- 1 mythtv mythtv 1870 Aug 20 00:44 /usr/share/mythtv/optical_menu.xml

<button>
<type>DVD</type>
<text>Eject Optical</text>
<action>EXEC umount /dev/cdrom;eject hdc</action>
</button>

</mythmenu>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 21, 2005 5:28 am 
Offline
Joined: Sat Feb 26, 2005 9:05 am
Posts: 160
Location: Ipswich, UK
That's quite a funkly little mod. It's working fine on my system, I just coppied:
Quote:
<button>
<type>DVD</type>
<text>Eject Optical</text>
<action>EXEC umount /dev/cdrom;eject hdc</action>
</button>

Into my /usr/share/mythtv/optical_menu.xml file.

I have to admit that being able to eject a dvd from the remote it ultimatly pointless, but I still like it :D and it was a nice little introduction into editing the mythtv menus.

Cheers

Mephi


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 21, 2005 9:56 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi Mephi,

Thanks for the feedback. I do a lot of that kind of stupid stuff but it is fun to play and sometimes I actually learn something. If you had two drives, you could put in two buttons, one for hdc & one for hdd :) It does really serve a purpose too as sometimes the manual eject won't work because the drive is still mounted.

Have a good day
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 8:07 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
mjl wrote:
Hi tjc
That cut right to the quick :) however am glad that you asked as it made me go dig deep for details.

Didn't mean to be cutting, only to get enough facts to diagnose the problem. The next step was to ask for a hex dump using hd to look for invisble characters that might be giving you grief. Standard debugging protocol.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 8:23 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi tjc,

Oh I know it wasn't meant to be mean so no hard feelings. The simple littlescript sort of perplexed me for a bit since I had rebuilt it a couple of times across the network. Once I did the physical copy from a floppy and all was ok, I too suspect I must have fat fingered in something less than hex 20.

Thanks for the pointers as it prompted a different approch.

If you have a moment, would see if you have an idea for this question?
http://mysettopbox.tv/phpBB2/viewtopic.php?t=5771

Thanks
Mike


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 59 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