LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Lock CDROM tray (https://www.linuxquestions.org/questions/linux-hardware-18/lock-cdrom-tray-592914/)

SmilinJoeFission 10-18-2007 10:53 PM

Lock CDROM tray
 
Hi All,
I have a really touchy laptop cdrom tray button that I always seem to hit when I move my computer (which I do frequently). So I was wondering if there is a way to lock the cdrom tray via a userspace command (like "echo 1 > /proc/ide/ide0/lock" or something) that I could throw in my /etc/rc.d/rc.local file to lock the tray at boot. According to /proc/sys/dev/cdrom/info, I should be able to lock the tray but I don't know how. Anyone have any ideas?

TIA

Simon Bridge 10-19-2007 01:17 AM

Keep a CD in there?
(If that doesn't lock it then the tray button is not subject to software control.)
Tape over the end of the laptop?

SmilinJoeFission 10-19-2007 10:21 AM

While the tape idea is a brilliant insight, for other interested in a better solution, here is a useful link:
http://lists.debian.org/debian-user/.../msg05673.html

mpyusko 10-19-2007 12:06 PM

cdrecord -lock

Simon Bridge 10-19-2007 05:30 PM

From wodim man page:
Code:

-lock        Load  the  media, lock the door and exit. This only works with a
              tray loading mechanism but seems to be  useful  when  using  the
              Kodak disk transporter.

... the door is supposed to lock when there is media loaded. But, like it said, could be useful. The cd-lock/unlock utility is quite cute though (smilin joe).


All times are GMT -5. The time now is 01:49 PM.