LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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, 01:17 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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, 10: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, 12:06 PM   #4
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 432
Blog Entries: 1

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

Rep: Reputation: 198Reputation: 198
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 24 04-12-2019 10:42 AM
tray icons showing on desktop instead of tray cjae Linux - General 3 09-21-2006 06:27 PM
CDROM drive antics - ejects tray on boot lrt2003 General 8 12-14-2004 12:30 AM
Things for KDE system tray in gnome system tray Boffy Linux - General 3 09-17-2004 07:56 AM
Cups says "Media tray empty!" but I have +50 sheets of paper in tray... r_jensen11 Linux - Hardware 8 09-07-2004 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration