|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Setting cdio_drive_cap_misc_tHello,
My apologies if this issue has already been discussed here. I've searched the list archives for any discussion related to this, but didn't find any mention. 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). Through the output of 'cd-drive' utility and the 'device.h' file, I see that the drive reports "Can disable manual eject : Yes". However, I couldn't find the API for setting the 'cdio_drive_cap_misc_t' capability that has the 'CDIO_DRIVE_CAP_MISC_LOCK' attribute. Could someone tell me if there is already a command to achieve this? Some hints on writing such a script/program are also welcome, Thanks, -P Patil |
|
|
Re: Setting cdio_drive_cap_misc_tPreetam 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 |
|
|
Re: Setting cdio_drive_cap_misc_tHi 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 <hydrologiccycle@...> 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 > > > |
|
|
Re: Setting cdio_drive_cap_misc_tI 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 <ityogi@...> 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 > <hydrologiccycle@...> 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 > > > > > > > > > |
| Free embeddable forum powered by Nabble | Forum Help |