I know hdparm to be able to lock / unlock a cdtray on an IDE device. Does that help?
On Sun, Nov 16, 2008 at 1:40 AM, Preetam <[EMAIL PROTECTED]> wrote: > Hi Robert, > thanks for the reply. > > I was looking for writing a small C program or modify mmc-tool to achieve > that, but I couldn't locate the MMC command that allows locking the tray. > The output of mmc-tool -C is as follows: > Mode sense 10 information > Reads CD-R media. > Lock state is unlocked. > PREVENT/ALLOW jumper is not present. > Loading mechanism type is 0: caddy type loading mechanism. > Maximum read speed is 10818 K bytes/sec (about 61X) > Number of Volume levels is 16183 > Buffers size for data is 61823 KB > Current read speed is 10531 KB > Maximum write speed is 256 KB > Current write speed is 45503 KB > > The mmc.h in the headers also does not show any such MMC > command. Atleast the device.h mentions of such a capability. > I'll look at MMC specs if I can find one. If anyone knows > the command, the help will be appreciated. > > -P Patil > > On Sun, Nov 16, 2008 at 12:51 AM, Robert William Fuller > <[EMAIL PROTECTED]> wrote: > > Preetam wrote: > >> > >> I need to disable the manual eject button on the CD drive, > >> irrespective of whether the drive is mounted or not (I have a 1-year > >> old who has developed fancy for the eject button). > >> > >> Could someone tell me if there is already a command to achieve this? > >> Some hints on writing such a script/program are also welcome, > > > > I looked into this once. I seem to recall that there is an MMC command > that > > does this. While there is no explicit API in libcdio to support locking > the > > drive, you can use the generic MMC API that libcdio exports to accomplish > > this. > > > > This probably doesn't help you much if you're not a C programmer. > > Unfortunately, I'm a little busy with graduate school, so I could not > hope > > to help you with this before Christmas break. > > > > Rob > > > > > > > > >
