[mythtv-users] How do I eject the CD/DVD?

Fedor Pikus fpikus at gmail.com
Fri Jan 6 04:16:27 UTC 2006


On 1/5/06, sarvinc at fastmail.fm <sarvinc at fastmail.fm> wrote:
>
> On Thursday 05 January 2006 23:19, Tom Hines wrote:
> > Hello.  After playing a DVD in MythTV I can't eject it with the eject
> > button on the drive.  I have to get to a shell and type "eject".  How
> > can I fix this?  Thanks.
> >
> > --
> > Tom Hines
> > KnoppMyth
> > Via Epia M10K
> > Haupauge 250
>
> Unfortunately I'm in the process of moving to another state so I can't
> give
> the exact process.
>
> I have this same problem and just mapped a button to an event that calls
> irexec to execute the eject program. This should go in your already
> configured .lirc
>
> Should look something like this:
>
> begin
>         button = RED
>         prog   = irexec
>         repeat = 0
>         config = eject
> end


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.

In ~/.mythtv I copied dvdmenu.xml and added this to the end:

   <button>
      <type>VCD_PLAY</type>
      <text>Open/Close</text>
      <action>EXEC /usr/local/bin/cdreload</action>
   </button>

cdreload is simple:
#! /bin/sh
sudo eject /dev/dvd

and the user which runs myth has sudo rights to run eject.

_______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>



--
Fedor G Pikus (fpikus at gmail.com)
http://www.pikus.net
http://wild-light.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060105/13c550ee/attachment.htm


More information about the mythtv-users mailing list