This is a "plugin" for the Video Disk Recorder (VDR).

Written by:                  		 Morone
Additions by:				 Peter Dittmann <dilbert@freenet.de>

See the file COPYING for license information.

Description: This is a plugin for a Siemens Activy to control
the CD/DVD-Tray (open/close) but will work on other machines too.

Compile the plugin from the VDR root directoy with "make plugins".
Copy the Plugin from/to the right place , wherever you
store your other Plugins.
Call VDR with ./vdr -Ptrayopen .
If you use a script to start vdr, its a good choice to call the plugin on
last or first position .

Change your keymacros.conf to :

User1 @trayopen

Change your device in SETUP if your default one isn't /dev/cdrom !
Use the physical device that's used to mount all CD/DVD device related
file systems (e.g. ISO, cdfs. udf) if you want the automatic unmount to work.

CDAutoStart:

CD auto start uses vdrcd plugin to start disc playback.
With vdr < 1.3.32 this can not being used for discs containing vdr files.


Tray Button Lock:

Tray button will be locked (e.g. "child protection").
Due to a kernel bug in "cdrom" module this is only working with a disc inserted in the tray.
The disc can be any type, even a blank one.

There is a kernel bug in the module "cdrom" !
Most CD/DVD drives report CDS_TRAY_OPEN as long as no disc is inserted,
regardless of the tray position.
So CDS_TRAY_OPEN can't be used to set the tray position in the plugin.
The plugin only resyncs the tray status if a disc was inserted.

To verify this on your system I use the programm "status"
"status /dev/cdrom" displays position information of your drive.
There is a new deactivated define STATUSCHECK.
If check using "status" program discovers the drive does distinguish between
TrayOpen und closed tray without a disc	you can add a define STATUSCHECK
to enable the tray position check completely. 
Then tray buton lock will work also without a disc. 

-------------------------------------------------------------------------
bye

