[mythtv-commits] Ticket #4025: DVD Eject not working properly

MythTV mythtv at cvs.mythtv.org
Sat Sep 29 00:23:54 UTC 2007


#4025: DVD Eject not working properly
--------------------------------+-------------------------------------------
 Reporter:  skd5aner at gmail.com  |        Owner:  ijr    
     Type:  defect              |       Status:  new    
 Priority:  minor               |    Milestone:  unknown
Component:  mythtv              |      Version:  head   
 Severity:  medium              |   Resolution:         
  Mlocked:  0                   |  
--------------------------------+-------------------------------------------

Comment(by maverik044):

 As you have indicated /dev/scd0, you seem to be using a newer kernel.
 Newer kernels place all IDE/ATA devices under the SCSI/SATA driver model.
 Your harddrives will be /dev/sda even if they are ATA/IDE and not
 SATA/SCSI.

 In this model the CDROMs are handled by the SCSI driver rather than the
 older IDE CDROM driver.  The SCSI driver does not report the drive status
 properly if there is no media in the tray. Therefore myth will fail to
 determine if it should open or close the tray.

 When myth checks the CDROM status using ioctl with CDROM_DRIVE_STATUS, a
 SCSI managed CDROM will always return CDS_TRAY_OPEN when there is no media
 in the CDROM, whether the tray is open or closed.

 In your case, the CDROM is probably reporting CDS_TRAY_OPEN when the tray
 is closed with no media.  Myth may fail to open it thinking it is already
 open.

 If this is your problem, I suspect it is, the bug is in the kernel driver,
 not myth.  I've tried to find a way to have myth recognize this special
 case but have been unable to figure a way.  I plan to patch the
 kernel(http://lkml.org/lkml/2004/12/27/1) as I've given up trying to
 figure it out in myth.  As of 2.6.22 this problem still existed.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4025#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list