* Locking CD tray w/o opening device
@ 2002-06-11 2:53 Nathan Neulinger
2002-06-11 3:20 ` Erik Andersen
2002-06-11 10:25 ` Andreas Roedl
0 siblings, 2 replies; 7+ messages in thread
From: Nathan Neulinger @ 2002-06-11 2:53 UTC (permalink / raw)
To: linux-kernel
With a 9 month old, going on 2, in the house, I've been made painfully
aware of the need to have some way to lock the CD-ROM tray. I saw a post
about some patches way back in 1996 to enable user-space control of
this, but haven't seen much in the way of tools to control it.
Is there any straightforward way of disabling the buttons on the CD and
locking all the time? I'm not averse to an ugly hack to 2.4.18+ source
if necessary.
Any suggestions?
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Locking CD tray w/o opening device
2002-06-11 2:53 Nathan Neulinger
@ 2002-06-11 3:20 ` Erik Andersen
2002-06-11 10:25 ` Andreas Roedl
1 sibling, 0 replies; 7+ messages in thread
From: Erik Andersen @ 2002-06-11 3:20 UTC (permalink / raw)
To: Nathan Neulinger; +Cc: linux-kernel
On Mon Jun 10, 2002 at 09:53:46PM -0500, Nathan Neulinger wrote:
> With a 9 month old, going on 2, in the house, I've been made painfully
> aware of the need to have some way to lock the CD-ROM tray. I saw a post
> about some patches way back in 1996 to enable user-space control of
> this, but haven't seen much in the way of tools to control it.
>
> Is there any straightforward way of disabling the buttons on the CD and
> locking all the time? I'm not averse to an ugly hack to 2.4.18+ source
> if necessary.
>
> Any suggestions?
Put in a CD and mount it....
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Locking CD tray w/o opening device
@ 2002-06-11 3:28 Hank Leininger
2002-06-11 5:00 ` Austin Gonyou
0 siblings, 1 reply; 7+ messages in thread
From: Hank Leininger @ 2002-06-11 3:28 UTC (permalink / raw)
To: linux-kernel
On 2002-06-11, Nathan Neulinger <nneul@umr.edu> wrote:
> Is there any straightforward way of disabling the buttons on the CD and
> locking all the time? I'm not averse to an ugly hack to 2.4.18+ source
> if necessary.
I'm not sure exactly what you mean. If there is a CD in the drive and
mounted, the eject button should be software-locked. Do you mean that this
does not happen for you? ...As long as it does, a stupid workaround would
be "leave a CD in the drive mounted all the time".
--
Hank Leininger <hlein@progressive-comp.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Locking CD tray w/o opening device
2002-06-11 3:28 Locking CD tray w/o opening device Hank Leininger
@ 2002-06-11 5:00 ` Austin Gonyou
2002-06-13 20:05 ` Jim Nelson
0 siblings, 1 reply; 7+ messages in thread
From: Austin Gonyou @ 2002-06-11 5:00 UTC (permalink / raw)
To: Hank Leininger; +Cc: linux-kernel
You could echo "1" >/proc/sys/dev/cdrom/lock
If you do this, even when a cd is *not* in the drive it will be locked.
For information like this, it might be best to open xchat, and head to
openprojects.net and join #linuxhelp. This is a good question, just
perhaps not right for the lkml?
:)
On Mon, 2002-06-10 at 22:28, Hank Leininger wrote:
> On 2002-06-11, Nathan Neulinger <nneul@umr.edu> wrote:
>
> > Is there any straightforward way of disabling the buttons on the CD and
> > locking all the time? I'm not averse to an ugly hack to 2.4.18+ source
> > if necessary.
>
> I'm not sure exactly what you mean. If there is a CD in the drive and
> mounted, the eject button should be software-locked. Do you mean that this
> does not happen for you? ...As long as it does, a stupid workaround would
> be "leave a CD in the drive mounted all the time".
--
Austin Gonyou <austin@digitalroadkill.net>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Locking CD tray w/o opening device
2002-06-11 2:53 Nathan Neulinger
2002-06-11 3:20 ` Erik Andersen
@ 2002-06-11 10:25 ` Andreas Roedl
1 sibling, 0 replies; 7+ messages in thread
From: Andreas Roedl @ 2002-06-11 10:25 UTC (permalink / raw)
To: linux-kernel
Hello!
Am Dienstag, 11. Juni 2002 04:53 schrieb Nathan Neulinger:
> With a 9 month old, going on 2, in the house, I've been made painfully
> aware of the need to have some way to lock the CD-ROM tray. I saw a post
> about some patches way back in 1996 to enable user-space control of
> this, but haven't seen much in the way of tools to control it.
>
> Is there any straightforward way of disabling the buttons on the CD and
> locking all the time? I'm not averse to an ugly hack to 2.4.18+ source
> if necessary.
What about the power and reset buttons?
Andi
--
Web: http://www.flood-net.de/
Mail: flood@flood-net.de
Phone: +49-(0)-30-680577-44
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Locking CD tray w/o opening device
2002-06-11 5:00 ` Austin Gonyou
@ 2002-06-13 20:05 ` Jim Nelson
2002-06-14 5:45 ` Jens Axboe
0 siblings, 1 reply; 7+ messages in thread
From: Jim Nelson @ 2002-06-13 20:05 UTC (permalink / raw)
To: linux-kernel
At 12:00 AM 6/11/02 -0500, you wrote:
>You could echo "1" >/proc/sys/dev/cdrom/lock
>
>If you do this, even when a cd is *not* in the drive it will be locked.
>For information like this, it might be best to open xchat, and head to
>openprojects.net and join #linuxhelp. This is a good question, just
>perhaps not right for the lkml?
Um, No. My /proc/sys/dev/cdrom/lock defaults to a 1, and the drive opens
when a disc is not present at the touch of the button.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Locking CD tray w/o opening device
2002-06-13 20:05 ` Jim Nelson
@ 2002-06-14 5:45 ` Jens Axboe
0 siblings, 0 replies; 7+ messages in thread
From: Jens Axboe @ 2002-06-14 5:45 UTC (permalink / raw)
To: Jim Nelson; +Cc: linux-kernel
On Thu, Jun 13 2002, Jim Nelson wrote:
> At 12:00 AM 6/11/02 -0500, you wrote:
> >You could echo "1" >/proc/sys/dev/cdrom/lock
> >
> >If you do this, even when a cd is *not* in the drive it will be locked.
> >For information like this, it might be best to open xchat, and head to
> >openprojects.net and join #linuxhelp. This is a good question, just
> >perhaps not right for the lkml?
>
>
> Um, No. My /proc/sys/dev/cdrom/lock defaults to a 1, and the drive opens
> when a disc is not present at the touch of the button.
Yeah, the above explanation of 'lock' is wrong. It merely controls
whether the tray should be locked when someone is using the CD-ROM. If
noone is using it, it will still be unlocked. There _is_ a var that
controls permanent locking, however it isn't exported through proc.
You'll have to use the CDROM_LOCKDOOR ioctl.
--
Jens Axboe
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-06-14 5:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-11 3:28 Locking CD tray w/o opening device Hank Leininger
2002-06-11 5:00 ` Austin Gonyou
2002-06-13 20:05 ` Jim Nelson
2002-06-14 5:45 ` Jens Axboe
-- strict thread matches above, loose matches on Subject: below --
2002-06-11 2:53 Nathan Neulinger
2002-06-11 3:20 ` Erik Andersen
2002-06-11 10:25 ` Andreas Roedl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox