Subj : How to detect cdrom tray status (open or closed) To : comp.os.linux From : sybren Date : Wed Oct 06 2004 03:31 pm Hi all, I'm looking for a way to determine the status of my cdrom tray. The goal: to write a program that closes the tray when it's opened, and opens it if it's closed. If you know of a way to determine the tray status, please tell - I don't care if it's a difficult piece of assembly, a C function or a big program. Greetings, Sybren PS: The drive in question is a Philips DVDR824DP DVD +-R/RW burner. -- 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? .