Subj : Re: How to detect cdrom tray status (open or closed) To : comp.os.linux From : Sybren Stuvel Date : Wed Oct 06 2004 06:21 pm Mihai Osian enlightened us with: > There is a CDROM_DRIVE_STATUS ioctl defined in > /usr/include/linux/cdrom.h. Perhaps it can help you. This is exactly what I need, but *ARGL* my drive reports the wrong information :( I reports "tray open" when it's closed without a disc. The CDROM_DISC_STATUS ioctl also returns CDS_NO_INFO in both cases (tray open / tray closed without disc) Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? .