On 1/5/06, <b class="gmail_sendername"><a href="mailto:sarvinc@fastmail.fm">sarvinc@fastmail.fm</a></b> &lt;<a href="mailto:sarvinc@fastmail.fm">sarvinc@fastmail.fm</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 05 January 2006 23:19, Tom Hines wrote:<br>&gt; Hello.&nbsp;&nbsp;After playing a DVD in MythTV I can't eject it with the eject<br>&gt; button on the drive.&nbsp;&nbsp;I have to get to a shell and type &quot;eject&quot;.&nbsp;&nbsp;How<br>
&gt; can I fix this?&nbsp;&nbsp;Thanks.<br>&gt;<br>&gt; --<br>&gt; Tom Hines<br>&gt; KnoppMyth<br>&gt; Via Epia M10K<br>&gt; Haupauge 250<br><br>Unfortunately I'm in the process of moving to another state so I can't give<br>the exact process.
<br><br>I have this same problem and just mapped a button to an event that calls<br>irexec to execute the eject program. This should go in your already<br>configured .lirc<br><br>Should look something like this:<br><br>begin
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button = RED<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prog&nbsp;&nbsp; = irexec<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeat = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config = eject<br>end</blockquote><div><br>
If it's stuck so bad that the button cannot eject it, you probably
won't be able to eject it as ordinary user with elect command either. I
have added a menu item which ejects CD and and does it as root using
sudo.<br>
<br>
In ~/.mythtv I copied dvdmenu.xml and added this to the end:<br>
<br>
&nbsp;&nbsp; &lt;button&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;type&gt;VCD_PLAY&lt;/type&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;text&gt;Open/Close&lt;/text&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action&gt;EXEC /usr/local/bin/cdreload&lt;/action&gt;<br>
&nbsp;&nbsp; &lt;/button&gt;<br>
<br>
cdreload is simple:<br>
#! /bin/sh<br>
sudo eject /dev/dvd<br>
<br>
and the user which runs myth has sudo rights to run eject.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">
mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Fedor G Pikus (
<a href="mailto:fpikus@gmail.com">fpikus@gmail.com</a>)<br><a href="http://www.pikus.net">http://www.pikus.net</a><br><a href="http://wild-light.com">http://wild-light.com</a>