All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vedran Rodic <vedran@vodatel.hr>
To: linux-ide@vger.kernel.org
Subject: Detecting CDROM Eject key press
Date: Wed, 06 Oct 2004 14:40:02 +0200	[thread overview]
Message-ID: <4163E7A2.9060402@vodatel.hr> (raw)

Hello

Can I detect that CDROM Eject key has been pressed when the cdrom is 
mounted and the CDROM door is locked?

This, together with kernel notifying me of CDROM status changes (cdrom 
has media, cdrom is empty) would completely solve the cdrom automount 
issues.

Userspace program then could detect that the eject key has been pressed, 
close files on the media, and do a clean unmount.


Thanks


Vedran Rodic

             reply	other threads:[~2004-10-06 12:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-06 12:40 Vedran Rodic [this message]
2004-10-11 10:08 ` Detecting CDROM Eject key press Vedran Rodic
2004-10-11 10:54   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4163E7A2.9060402@vodatel.hr \
    --to=vedran@vodatel.hr \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.