LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-18-2007, 11:53 PM   #1
SmilinJoeFission
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 10-19-2007, 02:17 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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?
 
Old 10-19-2007, 11:21 AM   #3
SmilinJoeFission
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 10-19-2007, 01:06 PM   #4
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 371
Blog Entries: 1

Rep: Reputation: 38
cdrecord -lock
 
Old 10-19-2007, 06:30 PM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 16 02-15-2012 01:28 PM
tray icons showing on desktop instead of tray cjae Linux - General 3 09-21-2006 07:27 PM
CDROM drive antics - ejects tray on boot lrt2003 General 8 12-14-2004 01:30 AM
Things for KDE system tray in gnome system tray Boffy Linux - General 3 09-17-2004 08:56 AM
Cups says "Media tray empty!" but I have +50 sheets of paper in tray... r_jensen11 Linux - Hardware 8 09-07-2004 11:46 PM


All times are GMT -5. The time now is 03:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration